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/MKL$.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

28 lines
893 B
Plaintext

The '''MKL$''' function converts a numerical value to a [[LONG]] value represented as a 4 byte [[ASCII]] character [[STRING]].
{{PageSyntax}}
:: 4byte_string$ = MKL$(long_value&amp;)
* The long integer number value is converted to four ASCII characters. To prove this try: PRINT MKL$(12345678).
* The numerical data usually uses less bytes than printing the LONG number to a file.
* [[LONG]] Integer values can be from -2147483648 to 2147483647.
* A 10 digit long number can save 6 bytes using MKL$.
* [[CVL]] can convert the value back to a [[LONG]] numerical value.
* [[LONG]] numerical variable values [[PUT]] into a [[BINARY]] file are automatically placed as an MKL$ [[ASCII]] string value.
''See examples:''
* [[SAVEIMAGE]]
* [[SaveIcon32]]
''See also:''
* [[CVL]], [[CVI]], [[CVS]], [[CVD]]
* [[MKI$]], [[MKS$]], [[MKD$]]
* [[_CV]], [[_MK$]]
* [[Bitmaps]]
{{PageNavigation}}