Subject | Re: Problem with Locate |
---|---|
Author | tremel@tremel-computer.de |
Post date | 2001-09-17T14:48:19Z |
> I get an error "invalid variant operation" in functionis
> TIB_BDataset.SysLocateRecord. When qry.FieldValues['Foerderernr']
> null then both KVal and FVal is unassigned. tmpResult becomes Trueby
> tmpResult := not (( VarIsEmpty( KVal ) or VarIsNull(The following fix does work for me:
> KVal )) xor
> ( VarIsEmpty( FVal ) or VarIsNull(
> FVal )));
>
> In the line
> tmpResult := tmpResult and ( KVal = FVal );
else begin // Tremel 17.9.01
if not (VarIsEmpty(KVal) and VarIsEmpty(FVal)) then
tmpResult := tmpResult and ( KVal = FVal );
end;