Skip to main content
Version: 4.2.5

Using objects

Description

To use an object, you must define it as a variable in the Declare section. There are two types of objects:

  • Objects that can be created automatically when defining the variable.
  • Objects that can only be created as a return value from a property or a method.

If the object can be created when declaring the object variable, it has the Parameter setting Create Object automatically in the dialog.

The default setting for Create Object automatically is True (checked). We recommend changing the setting to False if you know that the content of the object variable will be sent as a return value from a property or method, since not having to create the object will be have a positive effect on performance.

Properties and methods

Each object is connected with a number of properties and methods. Different objects can take different properties and methods, depending on the purpose of the object. You set a property by using put_Xxx and read it by using get_Xxx.

In addition to the individual properties and methods on each object, there are some common properties and methods that may be used on all objects.

The user of an object can choose to perform custom processing when certain Events occur in an object. This custom feature is achieved by adding an association between an "Object Event" and a Script.

With Object Events, the user of the object can perform custom processing when certain events occurs in the object. This is achieved by adding an association between an Object Event and a Script Procedure. Object Events are configured in the Define object dialog under the Object Events tab. For an example of Object Events, see iCore HTTP ServerObject.

See Also

Define object
Assign object
Common properties and methods