An array containing object references to all the components in a form.

Property of

Form, SubForm

Description

The elements array contains an object reference for each visual component in a form. Other types of objects, like data objects, are not included.

You can determine the number of components in the form by checking the elements array’s size property. Each element in the array can be addressed by its element number or by the name of the component.

The elements array is not a member of the Array class, but rather an ObjectArray class with specific capabilities for managing a list of objects. It does not support most of the methods of the Array class. The elements array is not meant to be changed directly, although it is safe to scan to get the object references for the components in the form.