1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/Underscore_1000000000.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

27 lines
974 B
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:24:47}}
An '''underscore''' can be used at the end of a line of code to continue a code line to the next line.
''Usage:'' IF x + y > 500 AND x + y < 600 THEN_
:::PRINT x + y
* '''Only QB64 keywords can use a leading underscore! Leading underscores are reserved for QB64 procedure names only!'''
* The underscore can be anywhere after the code on that line to continue the code to the next line in QB64.
* Multiple underscores can be used for the same line of code in QB64 only.
* Underscores can be used in the middle of variable, sub procedure or [[CONST|constant]] names.
* '''The underscore is NOT compatible with QBasic! The QBasic IDE will remove or move code with leading underscores!'''
* In [[PRINT USING]] an underscore can precede a formatting character to display that character as text in a template [[STRING]].
''See also:''
* [[Colon]], [[Comma]], [[Semicolon]]
* [[IF...THEN]]
{{PageNavigation}}