Board index » delphi » Locate not locating and findkey not finding
P.S.Bell
![]() Delphi Developer |
Sun, 23 Nov 2003 19:11:59 GMT
Locate not locating and findkey not finding
I am using Locate but it doesn't seem to work:
The following code snippets all fail to find an existing record This seems a pretty vital function which cannot afford to be QuotevTemp:=dm.SourceSourceRef.Value; QuoteQuote>> sTemp:=dm.SourceSourceRef.AsString; .. QuoteQuote>> sTemp:=dm.SourceSourceRef.AsString; dm.A_book.Locate('AddressNo',dm.SourceSourceRef.AsString,[]) .. QuoteQuote>> if not dm.A_book.FindKey([dm.SourceSourceRef.Value]) >> Quote>> nTemp:=dm.SourceSourceRef.Value; and Quote>> sTemp:=dm.SourceSourceRef.AsString; and Quote>> if not dm.A_book.FindKey([dm.SourceSourceRef.AsString])>> Pat Bell |