Questions Regarding flags, END IF, and the INPUT command:

by Negative (no login)

 

Questions Regarding flags, END IF, and the INPUT command:
Sorry for the mass amount of questions, and thank you for the previous answers, but i got more =]

-What is a flag, same thing as a Boolean?
-I seen in a lot of QBasic code, they don't always use the END IF command after IF. Is this correct? If so when should you use the END IF command and when not?

-Whenever I use the INPUT command like this: "INPUT a%", and on the Output screen I type in text it gives me the "Redo from start" error. However when I type in "d" or "e" it doesn't give me an error, instead it reacts like if you'll type in numbers.

-Having multiple variables after the INPUT command causes problems:
CLS
INPUT A, B, C
It gives me the "Redo from start" error no matter what i type (numbers or text), why? I believe I tried this and it worked before..

Posted on Oct 14, 2010, 7:35 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
Some more answers:Solitaire on Oct 14
 i modified the first example a bitMichael Calkins on Oct 27
Re: sorryArtelius on Oct 15
 Where?Negative on Oct 28
  Re: Where?Pete on Oct 28

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement