Skip to main content

Set Property

Use this command to set a value on a pre-defined property of an object type variable.

Syntax:

SET PROPERTY ObjectVarName.Property = Value

where:

  • ObjectVarName is the name of tHe object variable.
  • Property is the property that has been created on the specified object variable to be set.
  • Value is the value to set.

Syntax example:

// Create a variable of type object

Create Variable TestObject as Object

  // Create properties of the object

CREATE PROPERTY TestObject.comments as String

CREATE PROPERTY TestObject.anyNumber as Num  

// Set properties of an object

SET PROPERTY TestObject.comments = "My comment"

SET PROPERTY TestObject.anyNumber = 777

Was this article helpful?

We're sorry to hear that.