Qbasicnews.com

Full Version: for loop varriable limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
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)