Loop and save the index in an incremental number array [message #686941] |
Mon, 06 February 2023 09:03  |
 |
Joy83
Messages: 6 Registered: February 2023
|
Junior Member |
|
|
Hello
I want to build an array of numbers ghat hold 31 value
From 1..2..3……….31
And I want to create a loop for counter in 1 to 31
And inside the loop I will do some calculations
Then save the value in the first array.
Something like
Var(counter)
When I put it this way I get error.
What is the best way to do it and save 31 values based on the position of the loop
Basically if the counter =1
Var(1)= my value here
If the counter =2
Var(2)= my value here
And so on
|
|
|
|
|
|
|
|
|
|
|