1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/Semicolon.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

30 lines
1.5 KiB
Plaintext

The '''semicolon''' is used in a [[PRINT]] statement to stop the screen print cursor immediately after the printed value.
''Usage:'' COLOR 13: PRINT &quot;Value =&quot;; value1; value2; value3
{{OutputStart}}{{text|1234 5678 9012|magenta}}{{OutputEnd}}
* Positive numerical values [[PRINT|printed]] will include a space before and after each value printed. Strings will not have spacing.
* Use the [[WRITE]] statement to print values with only commas between the values and no spacing.
* A semicolon can append the next print when used at the end of a [[PRINT]] statement.
* Use a semicolon after text that will be [[PRINT|printed]] on the last two text rows of a [[SCREEN (statement)|screen mode]] to prevent screen rolling.
* [[INPUT]] statements can use the semicolon '''before''' the text to prevent screen rolling. '''INPUT ; &quot;text or question&quot;; variable'''.
* A semicolon '''after''' the text will create a question mark and space after the [[INPUT]] text question. Use a comma for statements.
* '''NOTE: Semicolons can NOT be used to combine string variables in a string variable definition!'''
* Use the '''+''' [[concatenation]] operator to combine [[STRING|string]] variable definition values only!
* [[Semicolon]]s cannot be used in or following a [[WRITE]] statement!
''See also:''
* [[Comma]]
* [[PRINT]], [[PRINT USING]]
* [[WRITE]]
* [[INPUT]], [[LINE INPUT]]
* [[STR$]] {{text|(convert number to string)}}
* [[VAL]] {{text|(convert string to number)}}
{{PageNavigation}}