DR Place field

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Place field (area; tableNum; fieldNum; format; location) Longint

ParameterTypeDescription
areaLongint4D Draw area
tableNumIntegerTable Number
fieldNumIntegerField Number
formatStringFormat to be used (not used if fieldNum is of
type Picture)
locationInteger0 = Normal, 1 = Centered, 2 = Origin
Function resultLongintObject 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

DR INSERT FIELD.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next