Dollar Sign: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The '''$''' is used to denote Qbasic Metacommands or as a STRING variable type suffix. ''Usage:'' $INCLUDE: 'QB.bi' * $STATIC denotes that all arrays can only be dimensioned once using DIM. * $DYNAMIC denotes that all arrays can be redimensioned using REDIM ONLY. * $INCLUDE includes a BI file or Qbasic Library in a program. The file name requires a comment before and after the name. * The string variable suffix MUST be used if...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
The '''$''' is used to denote Qbasic [[Metacommand]]s or as a [[STRING]] variable type suffix.
The '''$''' is used to denote QBasic [[Metacommand]]s or as a [[STRING]] variable type suffix.




 
{{PageExamples}}
''Usage:'' $INCLUDE: 'QB.bi'
: $INCLUDE: 'QB.bi'
:
: text$ = "Hello World!"




{{PageDescription}}
* [[$STATIC]] denotes that all arrays can only be dimensioned once using [[DIM]].
* [[$STATIC]] denotes that all arrays can only be dimensioned once using [[DIM]].
* [[$DYNAMIC]] denotes that all arrays can be redimensioned using [[REDIM]] ONLY.
* [[$DYNAMIC]] denotes that all arrays can be redimensioned using [[REDIM]] ONLY.
* [[$INCLUDE]] includes a BI file or Qbasic Library in a program. The file name requires a comment before and after the name.
* [[$INCLUDE]] includes a BI file or QBasic Library in a program. The file name requires a comment before and after the name.
* The [[STRING|string]] variable suffix MUST be used if the variable is not dimensioned in a DIM statement. The statement can also set a fixed string [[LEN|length]].
* The [[STRING|string]] variable suffix MUST be used if the variable is not dimensioned in a DIM statement. The statement can also set a fixed string [[LEN|length]].




''See also:
{{PageSeeAlso}}
 
* [[DIM]], [[REDIM]]
* [[DIM]], [[REDIM]]
* [[Metacommand]]
* [[Metacommand]]

Latest revision as of 00:30, 29 January 2023

The $ is used to denote QBasic Metacommands or as a STRING variable type suffix.


Examples

$INCLUDE: 'QB.bi'
text$ = "Hello World!"


Description

  • $STATIC denotes that all arrays can only be dimensioned once using DIM.
  • $DYNAMIC denotes that all arrays can be redimensioned using REDIM ONLY.
  • $INCLUDE includes a BI file or QBasic Library in a program. The file name requires a comment before and after the name.
  • The string variable suffix MUST be used if the variable is not dimensioned in a DIM statement. The statement can also set a fixed string length.


See also



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