How use locate with more than one field ?

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
jorgecostabr
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.01.2010, 21:09

How use locate with more than one field ?

Post by jorgecostabr »

Hi, How can i use the function locate on zquery with more than one field? I try to use the same way that i use frequently whith the vararrayof but it not work ok.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi,

It *should* work te same way it does with other datasets, I believe. So please give us a sample of the code (and corresponding database in form of a create+insert script) showing the problem.

Also, please don't forget to mention zeoslib and compiler version you're working with.

Mark
Image
jorgecostabr
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.01.2010, 21:09

Post by jorgecostabr »

Sorry,
I´m using Zeos 6.6.4 and Delphi 2009. The source code that i tried is:
If zQuery.Locate('field1;field2;Field3',VararrayOf[(text1,text2,text3)], [])

the same way that i used with component IBquery.
KDeveloper2
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 12.01.2010, 08:41

Post by KDeveloper2 »

try this:

zQuery.Locate('field1,field2,Field3',VararrayOf([text1,text2,text3]), [])

otherwise i think you should use Zeos 7 for Delphi 2009
klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

Post by klchin »

Sorry, wong info

Regards,
KL Chin
Post Reply