Advantage TDataSet Descendant
Returns the long value for this handle set with a call to AdsSetHandleLong.
function AdsGetHandleLong : Longint;
Returns the value set for this handle in a previous call to AdsSetHandleLong. This function allows one value to be stored for this handle. The value stored is up to the user’s discretion. The Advantage Client Engine does not use the value for any operation, but simply stores it. The value is readable for as long as the handle is valid.
function TForm1.GetHandle( oTable : TAdsTable ) : Longint;
begin
Result := oTable.AdsGetHandleLong;
end;