Referencing collections bound to forms or grids

WinStudio provides a shorthand notation for referencing collections that are bound to a form or a grid. The form's primary collection is referred to as [objects]. The form's first secondary collection is referred to as [objects2]; the form's second secondary collection is referred to as [objects3]; and so on.

This notation is also used to reference individual properties from these collections. A property on the primary collection is referenced as [object.] property_name; a property on the first secondary collection is referenced as [object2.] property_name; and so on.

Subcollections are referenced by a subcollection property of the parent collection. The parent collection is referenced using the notation mentioned already. For instance, a property in a subcollection of the form's primary collection would be referenced by [object.] subcollection_name.property_name.

関連トピック