version 6.0
DR Place field (area; tableNum; fieldNum; format; location) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| tableNum | Integer | Table Number | |
| fieldNum | Integer | Field Number | |
| format | String | Format to be used (not used if fieldNum is of | |
| type Picture) | |||
| location | Integer | 0 = Normal, 1 = Centered, 2 = Origin | |
| Function result | Longint | Object ID |
Description
The command DR Place field returns the ID number of the object created by inserting the fieldNum field from the tableNum Table. The object should be of type Picture if it is a Picture field and of type Text in all other cases. DR Place field works like the Insert Field menu item, except that it allows you to choose the location of the field inside area.
If location equals 0, DR Place field places the field at the point of the last mouse click in the 4D Draw area.
If location equals 1, DR Place field centers the field in the visible portion of the 4D Draw area.
If location equals 2, DR Place field places the field at the origin, that is, at the point with coordinates (0,0).
For information on determining a table or field's number, see the example for DR INSERT FIELD.
See Also