1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 16:45:53 +00:00
QB64-PE/internal/help/FRE.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.2 KiB
Plaintext

The '''FRE''' function returns the amount of Memory available in bytes to running programs.
{{PageSyntax}}
:: memory = FRE(string_expression$)
:: memory = FRE(numerical_expression)
*'''[[Keywords currently not supported by QB64|Currently NOT supported in QB64!]]'''
* Any string expression returns the size, in bytes, of free string storage space.
* Also compacts the free string storage to a single block of memory.
* 0 returns the same value as using a string expression above.
* -1 returns the size of the largest non-string array in bytes that could be dimensioned.
* -2 returns the amount of stack space, in bytes, available to a running program.
* Any other numerical value returns the size of the next block of string memory storage space.
''Example:''
{{CodeStart}} '' ''
' {{Cl|$DYNAMIC}}
PRINT &quot;Sizes in bytes before dimensioning arrays: &quot;; {{Cl|FRE}}(&quot;&quot;), {{Cl|FRE}}(0), {{Cl|FRE}}(-1), {{Cl|FRE}}(-2)
{{Cl|DIM}} Array(100, 100), Text$(5000)
PRINT &quot;Sizes in bytes after dimensioning arrays: &quot;; {{Cl|FRE}}(&quot;&quot;), {{Cl|FRE}}(0), {{Cl|FRE}}(-1), {{Cl|FRE}} (-2) '' ''
{{CodeEnd}}
''Notes:'' Sizes returned may vary by computer used. FRE(-2) must be used in a running program!
{{PageNavigation}}