RouteFileRecordAdd
Previous  Top  Next

Function RouteFileRecordAdd(numsections: integer; attributes: string): integer;

After all fields has been defined, one record at a time can be added. Specify the number of sections and all the attributes as a string.

The attributes string contains the values for all fields in one operation. This is a comma-delimited string and if the string holds any floating point numbers these has to be with "." as decimal point. Date fields are supplied as YYYYMMDD. String fields must be enclosed with quotes. If you need a quote inside the string, use a double quote. Logical fields are supplied as true ("T", "t", "Y" or "y") or false ("F", "f", "N" or "n").

If numsections=0, you will get a null object for that record and you don't have to call function RouteFileRecordAddSection afterwards. This is perfectly legal and can be used when creating driving directions, where you want to add lines to the description, but without a geographical part.

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