Compartir a través de


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)

Return Value

  • nIndex
    Uniquely identifies a form in a form set.

Remarks

Applies To: FormSet Object | _SCREEN System Variable

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

Reference

FormCount Property

Objects Collection

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)