2009. szeptember 15., kedd

How to perform a Locate on multiple fields


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
  { ... }

Nincsenek megjegyzések:

Megjegyzés küldése