Important: The information in this document is obsolete and should not be used for new development.
Executing and Disposing of Scripts
To execute a script, your application must first obtain a valid script ID for a compiled script or script context. You can use either theOSALoad
function described in the preceding section or the optionalOSACompile
function described on page 10-47 to obtain a script ID.The
OSAExecute
function takes a script ID for a compiled script or script context and returns a script ID for a script value. TheOSADisplay
function converts a script value to text that your application can later display to the user. If theOSAExecute
function returnserrOSAScriptError
, you can use theOSAScriptError
function to get more information about the error.When your application no longer needs the script data associated with a specific script ID, you can use the
OSADispose
function to release the memory the script data occupies.
Subtopics
- OSAExecute
- OSADisplay
- OSAScriptError
- OSADispose