WR INSERT FIELD
version 6.7 (Modified)
WR INSERT FIELD (area; table; field{; numFormat{; dateFormat{; timeFormat}}})
Parameter | Type | Description | |
area | Longint | 4D Write area | |
table | Integer | Table number | |
field | Integer | Field number | |
numFormat | String | Numeric format | |
dateFormat | Integer | Number of the date format | |
timeFormat | Integer | Number of the time format |
Description
The WR INSERT FIELD command inserts a reference to a field into area, replacing any selected text. The field is described by the table and field numbers. You can also specify the display format of inserted numeric, Date or Time fields.
The numFormat optional parameter indicates the format of numeric fields (i.e., Real, Integer, or Longint). It can contain any numeric display format, whether it exists or not (for example, "###,##"). Put an empty string when this parameter is not appropriate, or omit it if the following two parameters have been omitted.
The dateFormat optional parameter indicates the format of Date type fields. It must contain a number that indicates an existing date format. Put 0 when this parameter is not appropriate, or omit it if the following parameter has been omitted.
Otherwise, use the following 4D constants, found in the "Date Display Formats" theme:
Date format | Constant (value) |
<No date> | wr no date format (0) |
1/6/00 | System date short (1) |
Thu, Jan 6 2000 | System date abbreviated (2) |
Thursday, January 6 2000 | System date long (3) |
01/06/2000 | Internal date short special (4) |
January 6, 2000 | Internal date long (5) |
Jan 6, 2000 | Internal date abbreviated (6) |
01/06/2000 | Internal date short (7) |
The timeFormat optional parameter indicates the format of Time type fields. It must contain a number indicating an existing time format. Put 0 when this parameter is not appropriate or omit it.
Otherwise, use the following 4D constants, found in the "Time Display Formats" theme:
Time format | Constant (value) |
<No time> | wr no time format (0) |
HH:MM:SS | HH MM SS (1) |
HH:MM | HH MM (2) |
HH hours MM minutes SS seconds | Hour Min Sec (3) |
HH hours MM minutes | Hour Min (4) |
HH:MM AM PM | HH MM AM PM (5) |
See Also