| Tutorial Chapter 10: Localization / Example: Localization | |
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.
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 
These strings will be replaced at runtime.
01 "customer.store_num"="Store No" 02 "customer.dealernummsg"="This is the dealer number" 03 "customer.store_name"="Store Name" 04 "customer.city"="City"