SIMPOL Documentation

wxautomation1

Description

A wxautomation1 object provides access to OLE2 automation for Windows™ applications. All automation code is sent as string data to the target program.

Type Tags

None

Object Value

wxautomation1.new()

Description

Creates a new wxstatusbar object.

Prototype

wxautomation1.new ( string createinstance, string getinstance, integer error )

Parameters

ParameterDefault valueType nameDescription
createinstance.nulstring This parameter must be named. Use it to create a new instance of the OLE2 out of process server, for use in the code.
getinstance.nulstring This parameter must be named. Use it to get access to an already existing instance of the OLE2 out of process server, for use in the code.
error.nulinteger Specifies an object which is used to output any error code generated during creation of the wxautomation1 object. If error is not specified or is .nul then any error which occurs during object creation will halt the program. If an error object is specified and an error occurs during object creation then the error code is output into that object and the new methods returns .nul.

Properties

PropertyTypeDescription
_type(*) This property is provided for use by the user to attach any object of any type to the type in which this property is provided.
__type(*) This property is provided for use by the user to attach any object of any type to the type in which this property is provided. It has the additional feature of being marked with the resolve keyword, so that object resolution can continue down this property.
typetype Specifies the wxautomation1 type object.

Methods

callmethod()

Description

Calls the specified method of the associated automation object.

Prototype

wxautomation1var.callmethod ( string method, integer error, type(=) )

Parameters
ParameterDefault valueType nameDescription
method.nulstring A string containing the name of the method to be called.
error.nulinteger Specifies an object which is used to output any error code generated during the execution of the function. If error is not specified or is .nul then any error which occurs during function execution will halt the program. If an error object is specified and an error occurs during function execution then the error code is output into that object and the methods returns .nul.
.nultype(=) This will be a parameter being passed to the method. Any number of these can be included as unnamed parameters.

getobject()

Description

Retrieves a property of an automation object as a new automation object.

Prototype

wxautomation1var.getobject ( string property, integer error, type(=) )

Parameters
ParameterDefault valueType nameDescription
property.nulstring A string containing the name of the property from which a new automation object should be retrieved.
error.nulinteger Specifies an object which is used to output any error code generated during the execution of the function. If error is not specified or is .nul then any error which occurs during function execution will halt the program. If an error object is specified and an error occurs during function execution then the error code is output into that object and the methods returns .nul.
.nultype(=) This will be a parameter being passed to the help define the object that is being retrieved. Any number of these can be included as unnamed parameters.

getproperty()

Description

Retrieves the named property value from the automation object.

Prototype

wxautomation1var.getproperty ( string property, integer error, type(=) )

Parameters
ParameterDefault valueType nameDescription
property.nulstring A string containing the name of the property to be retrieved.
error.nulinteger Specifies an object which is used to output any error code generated during the execution of the function. If error is not specified or is .nul then any error which occurs during function execution will halt the program. If an error object is specified and an error occurs during function execution then the error code is output into that object and the methods returns .nul.
.nultype(=) This will be a parameter being passed to help define from where to retrieve the value. Any number of these can be included as unnamed parameters.

putproperty()

Description

Assigns the value passed into the target property of the associated automation object.

Prototype

wxautomation1var.putproperty ( string property, integer error, type(=) )

Parameters
ParameterDefault valueType nameDescription
property.nulstring A string containing the name of the property to be assigned.
error.nulinteger Specifies an object which is used to output any error code generated during the execution of the function. If error is not specified or is .nul then any error which occurs during function execution will halt the program. If an error object is specified and an error occurs during function execution then the error code is output into that object and the methods returns .nul.
.nultype(=) This will be a parameter being passed to help define where to assign the value. Any number of these can be included as unnamed parameters.