Mirror

How to perform a Locate on multiple fields (Views: 100)


Problem/Question/Abstract:

Is it possible to locate a record in a TTable with matching two fields? For example for name='Peter' and age=25

Answer:

if mytable.locate('name; age', VarArrayOf([Variant(YourName),
  Variant(YourAge)]), [lopartialKey]) then
  { ... }

<< Back to main page