ExecuteLimit

Top  Previous  Next

Call this procedure to import limit information from one or more files.

 

Specify fieldindex (0-based) or fieldname for fk = fkDBF. If fieldname is specified, it takes precedence.

 

For DBF format only:

Constant and factor are optional parameters with default values 0 and 1. If applied, the limit is calculated like this:

(value - constant) * factor

 

This allows you to directly read from a field which doesn't fit the 0..255 range, but recalculate on the fly.

If the calculated value is outside the range, you get an exception.

 

Syntax: ExecuteLimit(fieldindex: integer; fieldname: string; fk: TFileKind; constant, factor: double)

 

See also LimitFileIndex