Question mark

From QB64 Phoenix Edition Wiki
Revision as of 21:11, 20 April 2022 by BigRon55 (talk | contribs) (Created page with "A '''question mark''' can be used as a substitute shortcut to typing PRINT when creating code. ''Usage:'' ?"Hello world" ''Result:'' PRINT "Hello world" * When the IDE cursor moves to the next code line, the question mark is changed to PRINT and the prompt text and variable are spaced appropriately. * When an INPUT statement has no text, a question mark will appear before the input. * A semicolon after the INPUT prompt text will add a question mark afte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A question mark can be used as a substitute shortcut to typing PRINT when creating code.


Usage: ?"Hello world"


Result: PRINT "Hello world"


  • When the IDE cursor moves to the next code line, the question mark is changed to PRINT and the prompt text and variable are spaced appropriately.
  • When an INPUT statement has no text, a question mark will appear before the input.
  • A semicolon after the INPUT prompt text will add a question mark after the statement.


See also:



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link