Previous topic

UniScript.Call2

Next topic

updf_close_storage

This Page

UniScript.LoadΒΆ

Loads a UniScript file.

ret = UniScript.Load(ssFile)

Return Value

ret

Parameters

ssFile

ssFile is the ic file name.

Example

The following example uses the UniScript-Server as a compiler for ic files. The file test.ic is compiled the ICL file is loaded and a function from the library is invoked.

// File d:\test.ic
def test()
{
    MessageBox("Hello");
}
// File d:\testload.ic
def TestLoad()
{
    us = CreateObject("UniScript32");
    us.Call("config", "ErrorOutput", 4);
    us.Load("d:\test.ic");
    us.Call("saveiclib", "d:\test.icl", "test");
    loadiclib("d:\test.icl");
    test();
}

id-518343