Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for loop varriable limit
#1
i get user input by a for loop until -999 is entered. i am limited to only 11 varriables.why. i shoud use an array,right?[/code]
Reply
#2
Why...? Because QB automatically allocates 10 variables when it sees a new array. Otherwise you need to DIM (shared?) it:
DIM SHARED a%(1 to 1000)
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)