Qbasicnews.com
April 09, 2020, 06:12:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: for loop varriable limit  (Read 1312 times)
Diroga
Been there, done that
*****
Posts: 1087


« on: August 24, 2003, 03:25:51 AM »

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]
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #1 on: August 24, 2003, 08:27:07 AM »

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)
Logged

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!