Page 1 of 1

lxNearest unknown

Posted: Mon 19 Apr 2010 15:25
by softbox
I try to use LocateEx to find nearest record with the lxNearest option but for some reason the compiler doesn't know the option.

uses
..., MemDS, VirtualTable;
.
.
.
tbLightData.LocateEx('Angle', angle, [lxNearest]);


Have anyone tried to use TMemDataSet.LocateEx?

Uffe

Posted: Wed 21 Apr 2010 09:17
by Dimon
To solve this problem you should add the MemData unit to the uses clause of the unit where the error arises.