|
Contents | Previous | Next | Subchapters |
| Syntax |
lightexe(file, fun) |
lightexe | |
| See Also | light restrictions , load and save |
Example
clear
large = novalue
function example() begin
global large
large = fill(0, 1, 100000)
end
save large.omx
Then in O-Matrix Light you can execute
the function example as follows
file = "large.omx"
fun = "example"
lightexe(file, fun)
Then at the Command line you enter
coldim(large)
O-Matrix will respond
100000
Note that this is more than the
number of elements allowed in
the normal mode for O-Matrix Light.
All pending files on the input stack
are removed when light execution mode is entered.
That is all commands that follow your call to
lightexe are not executed.
For example, if the file temp.oms contains the
commands
file = "c:\omwin\large.omx"
fun = "example"
lightexe(file, fun)
print "lightexe done"
the print command will not be executed.
If you are not running
O-Matrix Light
,
you can remove the restriction on including files
by calling lightexe with no arguments; i.e.,
lightexe
lightexe command,
all of the windows, dialogs, and toolbar are set to their initial state; i.e.,
the dialogs are dismissed,
the default windows are visible and empty,
and the toolbar is enabled.