1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 19:05:54 +00:00
QB64-PE/internal/help/Quotation_mark.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

24 lines
1.3 KiB
Plaintext

A '''quotation mark''' delimits the start and end of a literal [[STRING]] value.
''Usage:'' string_value$ = &quot;This is a text STRING.&quot;
* The quotation mark must delimit the ends of a string or text prompt in a [[PRINT]], [[WRITE]], [[INPUT]] or [[LINE INPUT]] statement.
* The IDE may add a missing quotation mark at the end of a [[SUB|statement]] or [[FUNCTION|function]].
* [[LINE INPUT]] allows quotation marks to be entered as user input. The [[LINE INPUT (file statement)]] can transfer quotation marks.
* Quotation marks should be used when [[comma]]s are used in a literal [[WRITE]] or [[INPUT (file statement)]] text string.
* To insert quotation marks in a [[PRINT]] statement insert [[CHR$]](34) using string [[concatenation]] or [[semicolon]]s.
* String values can be [[concatenation|concatenated]] or added using the plus ([[+]]) operator. Cannot be used to combine numerical values!
* Concatenation MUST be used when combining literal [[STRING|string]] values in a variable definition.
* String values can be combined with other string or numerical values using [[semicolon]]s or [[comma]] tabs in a PRINT statement.
* Literal [[DATA]] strings do not require quotation marks unless the value is a keyword, uses commas or has end spaces.
''See also:''
* [[STRING]], [[PRINT]], [[WRITE]]
* [[CHR$]], [[LINE INPUT]]
{{PageNavigation}}