Difference between revisions of "MC-Basic:LOADGLOBAL$"

From SoftMC-Wiki
Jump to: navigation, search
Line 52: Line 52:
 
* [[MC-Basic:LOAD|LOAD]]
 
* [[MC-Basic:LOAD|LOAD]]
 
* [[MC-Basic:LOAD$|LOAD$]]
 
* [[MC-Basic:LOAD$|LOAD$]]
* [[Axystems:MC-Basic:LOADGLOBAL|LOADGLOBAL]]
+
* [[MC-Basic:LOADGLOBAL|LOADGLOBAL]]
  
 
[[Category:Axystems:MC-Basic:Task Control|LOADGLOBAL$]]
 
[[Category:Axystems:MC-Basic:Task Control|LOADGLOBAL$]]
 
}}
 
}}

Revision as of 08:38, 22 May 2014

This terminal command loads a global library from the Flash Disk into RAM . In the process, the program is checked for syntax errors. Syntax errors are written to the TRN.ERR file, which may be retrieved to see which errors occurred. Only libraries without syntax errors may be executed .

The StackSize optional parameter sets the size of local (Dim) variables’ stack. It’s value is a actually a floating point multiplier of an internal basic stack size.  This basic stack size is the lowest size allowed for local data stack (when size multiplier is 1), whereas the highest value depends on the amount of freememory available.

Syntax

LoadGlobal$ <global library name> {StackSize = <stacksize multiplier>}

Availability

All versions

Type

< global library name >: String.

< stacksize multiplier >: 1 to MaxDouble

Range

< global library name >: The global library must exist on the Flash Disk

<stacksize multiplier>:1 to MaxDouble

Default

< stacksize multiplier >:1

Scope

Terminal only

Limitations

The only limitation is free memory space. The largest block of free memory may be queried using the SYSTEM.MAXMEMBLOCK query.

Examples

LoadGlobal$ “LIBRARY1.LIB”

Or

Common shared Str1 as string

Str1 = “LIBRARY1.LIB”

LoadGlobal$ Str1

See Also