RouteFileFieldAdd
Previous  Top  Next

Function RouteFileFieldAdd(fieldname: string; fieldtype,fieldwidth,decimals: integer): integer;

Call this function once for each attribute field defined in function RouteFileCreate.

Fieldtype is a number from 1-7:
1: Char
2: Integer (signed 32-bit)
3: Smallint (signed 16-bit)
4: Decimal
5: Float
6: Date
7: Logical

The TAB and MIF format supports all of them, while the SHP format maps type 2, 3 and 5 to type 4.

Fieldwidth and decimals are only relevant for some field types (1 and 4).

Possible error codes: -10 -30 -31 -40
ActiveX / VCL / CLX component: RWcalc