newObjects-logo.gif (1024 bytes) ScriptManager2 reference
LoadEngine method

Loads and initializes new empty script engine for the script language specified.

variable = object.LoadEngine(script_engine_name)

variable boolean true if the operation was successful and false if not
object ScriptManager2 Previously created ScriptManager2 object
script_engine_name string Name of script engine - JScript, VBScript etc.

Remarks:

Method fails if a script engine is already initialized. When initializing the object for the first time (after creation) you must first call this method before any calls to the script control methods. When reusing component method will return error if the previously loaded engine (and script) is not closed (see Close).

Names of the script engines.

Active script engines are registered as a regular COM components in the registry. In other words name of the script engine is program id of the engine component. On the nearly all 32-bit Microsoft Windows platforms you can suppose that JScript (Name is JScript) is available. VBScript (name is VBScript) is available in most cases too - but note that in the later versions of the Internet Explorer it is optional in the some of the installation presets. Encoded versions of the script languages provided by the Microsoft are JScript.Encode and VBScript.Encode but they are not included in any popular package - thus do not relay on their existence on every machine. For more information about Microsoft Active Scripting languages see http://www.microsoft.com/scripting .

There are other script languages provided by 3-d parties - such as ActivePerl and ActivePyton - http://www.activestate.com . One good starting point for searching information abot scripting languages (not just active scripting) is http://www.ddj.com/topics/altlang/ on the Dr.Dobb's site.

See also:

C++ Helper SCPHOSTCLNT::LoadEngine method

newObjects Copyright newObjects 2001-2005