Formularabschnitt
Falls auf einen Formularabschnitt nur von einer Formulargruppe zugegriffen wird, stellen Sie sicher, dass der Formularabschnitt in den FormGroup-Abschnitt eingebettet ist. Falls auf einen Formularabschnitt von mehreren Formulargruppen zugegriffen wird, geben Sie den Formularabschnitt als höchste Ebene einer EGL-Datei an.
Syntax
Das folgende Diagramm stellt die Syntax eines Formularabschnitts dar:

Eigenschaften
- formName
- Gibt den Abschnittsnamen an.
- textForm
- Gibt an, dass das Formular ein Textformular ist.
- textFormProperty
- Eine Textformulareigenschaft.
- textFormField
- Ein Textformularfeld.
- printForm
- Gibt an, dass das Formular ein Druckformular ist.
- printFormProperty
- Eine Druckformulareigenschaft.
- printFormField
- Ein Druckformularfeld.
Beispiel
Im folgenden Beispiel wird ein Textformular angezeigt:
Form myTextForm type textForm
{
formsize= [24, 80],
position= [1, 1],
validationBypassKeys=[pf3, pf4],
helpKey="pf1",
helpForm="myHelpForm",
msgField="myMsg",
alias = "form1"
}
* { position=[1, 31], value="Sample Menu" } ;
* { position=[3, 18], value="Activity:" } ;
* { position=[3, 61], value="Command Code:" } ;
activity char(42)[5] { position=[4,18], protect=skip } ;
commandCode char(10)[5] { position=[4,61], protect=skip } ;
* { position=[10, 1], value="Response:" } ;
response char(228) { position=[10, 12], protect=skip } ;
* { position=[13, 1], value="Command:" } ;
myCommand char(70) { position=[13,10] } ;
* { position=[14, 1], value="Enter=Run F3=Exit"} ;
myMsg char(70) { position=[20,4] };
end
Im folgenden Beispiel wird ein Druckformular gezeigt:
Form myPrintForm type printForm
{
formsize= [48, 80],
position= [1, 1],
msgField="myMsg",
alias = "form2"
}
* { position=[1, 10], value="Your ID: " } ;
ID char(70) { position=[1, 20] };
myMsg char(70) { position=[20, 4] };
end