Skip to content

Declaring New Properties

DataFlex supports the creation of new properties inside an object declaration statement. These properties are referred to as object-properties. Object-properties are unique to the object they are being declared in and are not shared by other objects of the same class.

The following example demonstrates how you can define a new property within an object declaration statement:

Object oOK_Button is a Button
    Set Location to 20 90
    Set Label to "OK"
    Property Integer piClickCount 0
End_Object

Refer to Properties in the Classes section for more information.