Share via


Forms Property

An array to access individual forms in a form set. Not available at design time; read-only at run time.

Object.Forms(nIndex)

Property Values

  • nIndex
    Uniquely identifies a form in a form set.

Remarks

Use the Forms property to change the property settings of forms in a form set without using the Name property of the forms. You can use the Forms property in conjunction with the FormCount property to step through all the forms in a form set and perform an action. For example, the following code changes the captions of all the forms in a form set:

FOR x = 1 TO THISFORMSET.FormCount
   THISFORMSET.Forms(x).Caption = THISFORMSET.Forms(x).Caption;
      + "[Read Only]"
ENDFOR

See Also

FormCount Property | Objects Collection

Applies To: FormSet | _SCREEN