OScript API/Built-in Package Index

Class: Script

A value of type Script contains the source (and if compilable, the compiled form) of OScript code. Script values are most often contained within OSpace object features, where they define the behavior of the various Livelink classes stored in OSpace objects.

Scripts are usually created using the Livelink Builder's Script Editor. They can also be created using the Compiler class's functions.

Script values can be executed by using the invocation operator. For example:

    Script  s = Compiler.Compile( 'Echo( "Hello World" )' )
    s()

 Copyright © 2023 OpenText Corporation. All rights reserved.