form.per - the form specification file
The form specification file uses the LABEL
form item type to display
the text associated with the form fields containing data from the customer
database table. LABEL
item types contain read-only values. The
TEXT
of the LABEL
form items contain Localized
Strings. The COMMENT
attribute of an EDIT
item is also a
Localized String.
Form
form.per:
01
SCHEMA
custdemo
02
03
LAYOUT
04
GRID
05
{
06
[lab1 ] [f01 ]
07
08
[lab2 ] [f02 ]
09
10
[lab3 ] [f03 ]
11
}
12
END
--grid
13
END
-- layout
14
15
TABLES
customer
16
17
ATTRIBUTES
18
LABEL
lab1: TEXT
=%"customer.store_num";
19
EDIT
f01 = customer.store_num,
20
COMMENT
=%"customer.dealermsg";
21
LABEL
lab2: TEXT
=%"customer.store_name";
22
EDIT
f02 = customer.store_name;
23
LABEL
lab3: TEXT
=%"customer.city";
24
EDIT
f03 = customer.city;
25
END
-- attributes
Note:
- Lines
06
and18
: The form contains aLABEL
, lab1; theTEXT
of theLABEL
is a Localized String,customer.store_num
. - Line
20
: TheCOMMENT
of theEDIT
f01 is a Localized String,customer.dealermsg
. - Lines
08
and21
: TheTEXT
of theLABEL
lab2 is a Localized String,customer.store_name
. - Lines
10
and23
: TheTEXT
of theLABEL
lab3 is a Localized String,customer.city
.
These strings will be replaced at runtime.
The string file entries associated with this form
You can view the translations for the Localized Strings in the form in the
progstrings.str string source
file.
01
"customer.store_num"="Store No"
02
"customer.dealernummsg"="This is the dealer number"
03
"customer.store_name"="Store Name"
04
"customer.city"="City"