Difference between revisions of "MC-Basic:IMPORT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:IMPORT to MC-Basic:IMPORT: Global renaming of Axystems: namespace into (Main):)
 
(2 intermediate revisions by the same user not shown)
Line 40: Line 40:
 
|SEE ALSO=
 
|SEE ALSO=
 
* [[MC-Basic:FUNCTION ... END FUNCTION|FUNCTION ... END FUNCTION]]
 
* [[MC-Basic:FUNCTION ... END FUNCTION|FUNCTION ... END FUNCTION]]
* [[Axystems:MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]]
+
* [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]]
* [[Axystems:MC-Basic:SUB ... END SUB|SUB ... END SUB]]
+
* [[MC-Basic:SUB ... END SUB|SUB ... END SUB]]
  
[[Category:Axystems:MC-Basic:Libraries|IMPORT]]
+
[[Category:MC-Basic:Libraries|IMPORT]]
 
}}
 
}}

Latest revision as of 09:16, 22 May 2014

Imports a library file into a task. To use a subroutine defined in a library file, the .lib file must first be imported at the top of the program and then called by one of its defined subroutines.

Syntax

Import <lib file name>

Availability

All versions

Scope

Task or Library

Limitations

Library must be loaded into memory (using load command).

Examples

Import lib1.lib

Program
        call lib1sub(5)                                      'call one of lib1 subroutines

End Program

See Also