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

25 lines
1.2 KiB
Plaintext

The '''DEFSNG''' statement defines all designated undefined variables AS [[SINGLE]] variables.
{{PageSyntax}}
:: DEFSNG firstletters
* The variable first letters can be from A-Z or any other range.
* You can also use commas for specific untyped variable first letters.
* Variables [[DIM]]ensioned as another variable type or that use type suffixes are not defined otherwise.
* DEFSNG is normally the Qbasic default assignment for undefined variables anyhow.
* '''Qbasic's IDE may add DEF statements before any [[SUB]] or [[FUNCTION]]. QB64(like QB) will change all variable types in subsequent sub-procedures to that default variable type without giving a [[ERROR Codes|&quot;Parameter Type Mismatch&quot;]] warning or adding the proper DEF statement to subsequent procedures! If you do not want that to occur, either remove that DEF statement or add the proper DEF type statements to subsequent procedures. May also affect [[$INCLUDE]] procedures!'''
* '''Warning: Qbasic keyword names cannot be used as numerical variable names with or without the type suffix!'''
''Example:'' DEFSNG A-D, S
''See also:''
* [[DEFINT]], [[DEFDBL]], [[DEFLNG]], [[DEFSTR]]
* [[_DEFINE]]
{{PageNavigation}}