It's not that I need to declare it as 14-1, but I need to insert variables into it so it will calculate the values at run time.
For example, this code works and gives me the correct result of 13.
+ Code SnippetnumberOfItems = 14
arraySize = numberOfItems-1
do
PRINT (arraySize)
SYNC()
loop
While this code gives me 0.
+ Code SnippetnumberOfItems = 14
arraySize as integer = numberOfItems-1
do
PRINT (arraySize)
SYNC()
loop
I'm trying to stick to a style of coding and that's not working out as much as I would like.