Function LimitCreate2(FileID: integer; filename, fieldname: string; fieldindex: integer): integer;
From the specified filename a file is created, which holds information about limits on links. See description here: Limits
FileID is a number from 1-9 and defines the output filename: Output will be a file named "limit1.bin" - "limit9.bin".
A maximum of 9 such restrictions can be created in files and a maximum of 9 of these can be loaded into memory at a time.
The file should be of type DBF (version 3) or DAT file (part of a TAB file).
In the case of a DAT file, the corresponding TAB file needs to be present.
If you supply fieldindex=0, the fieldname will be used. If you supply a fieldindex (1..) it will be used for reading from the file.
If the field, you are pointing at, is a floating point field, it will be rounded.
If any value is negative or >255, it will be set to 0.
Filename should include a fully qualified path.
The generated file simply holds the values from the input file and so it is possible to write directly to this file if needed. It consists of 8-bit signed integers. You may even create the file from scratch yourself, if that suits you better, but you miss being able to encrypt the file.
Examples:
LimitCreate2("roads.dbf","",1)
> Use first field from roads.dbf file.
LimitCreate2("roads.dat","maxheight",0)
> Use field maxheight from roads.dat file. File roads.tab needs to be present.
See also LimitCreate
Possible error codes: -20 -22 -30 -32 -40 -43
Versions: Standard Pro
ActiveX / VCL / CLX component: RWnetBase