HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

162 Chapter4
Advanced Forms Design
SET
Date Type
Any date, regardless of the format of the source, is moved to the destination as dd/dd/dd,
as shown in Table 4-8. Thus, if a date is going to be placed into a field using a SET
command, the field must be at least eight characters long. The order depends on whether
the destination is specified as MDY, DMY, or YMD. With Native Language Support,
conversion from alphabetic months to the numeric destination month is language
dependent. For more information on Native Language Support, see Section 8.
Table 4-7. Automatic Formatting for Numeric Data
Source Destination
123 (DIG) 123 (DIGIT,length is 5)
123 (IMP2) 1.23 (NUM2,length is 4)
12.3 (NUM1) 12.3 (NUM,length is 6)
12.3 (NUM1) 12.30 (NUM2)length is 5)
12.3 (NUM1) 12. (NUM2,length is 3)
12.3 (NUM1) 1230 (IMP2,length is 4)
12.3 (NUM1) 123 (IMP1,length is 3)
+3357 (NUM) 335700 (IMP2,length is 6)
-3357 (IMP3) -3.4 (NUM1,length is 4)
001,000 (NUM) 1000.00 (NUM2,length is 7)
Table 4-8. Automatic Formatting for Dates
Source Destination
FEB 5, 1986 02/05/86 (defined as MDY)
2/5/86 86/02/05 (defined as YMD)
2,5,86 02/05/86 (defined as MDY)
February 5, 1986 05/02/86 (defined as DMY)
September 16, 1986 09/16/86 (defined as MDY)
Oct. 23. 1986 86/10/23 (defined as YMD)
October 23, 1986 23/10/86 (defined as DMY)