-Why does a question mark appear whenever I have a variable right after a semicolon on an INPUT line like this: INPUT "Name:"; name$
Is that really the question you wanted to ask, or did you want to know how to get rid of the question mark?
-Why ever use GOTO instead of GOSUB. If it's the same thing except GOSUB has support for the RETURN Statment?
If you *don't* RETURN then the return location remains on the stack. Eventually you will run out of stack space. E.g.
-What's the best way to define variables? Using the DIM function or characters ($,%,&,!,#)? Or does it depend on something specific?
Do what you prefer. As a general rule, DIM-style declarations are preferable for larger codebases or code that you are likely to use/modify many times.
Many languages (such as C, C++, C#, Java) require/encourage DIM-like declaration. Many others, particularly scripting languages (such as PHP, Python, Ruby) allow variables to take any type so declarations do not make sense. Perl has something vaguely related to QB's type suffixes. Haskell on the other hand is very particular about types however can figure out and check most of the types for you!
There's clearly a lot of choice. Some tools are better for certain tasks, of course. As you get more experience with larger projects you will appreciate this more.
-Why do certain commands like CHR$ have a "$" character at the end of it, why can't it be just CHR?
In Visual Basic, it is just CHR. (At least in the versions I've used.) So it's a choice of the language designers. Solitaire and Clippy have already explained what the $ signifies.
|Response Title||Author and Date|
|It's past your curfew. Your should have been back to the forum weeks ago.||on Oct 7|
|...||Negative on Oct 10|
|It's an input feature...||on Oct 10|
|Probably historical reasons||on Oct 11|