Visual RPG 9.0 Language Reference  

Form Variables

A Form Variable is a variable that you declare to gain access to a form's properties, methods, and controls. Each form variable can refer to one instance of a form.

There are two types of form variables you can declare in your program:

Typed

A form variable that can only refer to one type of form. When you create form programs in the IDE, you give a name to the form by setting the Name property for the form in the property window (If you don't set the name, one is set for you initially as Form1, Form2, etc.). This name is the form type name. The form type name can be used on various commands such as DCLFLD, DCLDSFLD, and DCLARRAY.

Generic

A form variable that can refer to any type of form. It is declared using the *FORM type on the DCLFLD, DCLDSFLD, and DCLARRAY commands.

See Also

Typed Form Variables
Generic Form Variables
DCLFLD
DCLDSFLD
DCLARRAY