ZQuery Locate

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
nostradumbass
Junior Boarder
Junior Boarder
Posts: 27
Joined: 22.05.2008, 23:54

ZQuery Locate

Post by nostradumbass »

Using:
Delphi 2007 Enterprise
Zeos DBO 6.6.6 Stable
Firbird 2.1

Have ZQuery with SQL property set to:

Code: Select all

SELECT 
 ORDERID,
 ORDERNAME
FROM ORDERS_LIST ( :ORDCMPSTATUS ); 
IndexFieldNames property set to:

Code: Select all

ORDERID Asc
where ORDERS_LIST is a stored procedure in the database. ORDERID field is indexed in the source table.



In Delphi code:

Code: Select all

with datamod.ZQRY_ORDERS_LIST do
    if Locate('ORDERID', VarArrayOf([OrderID]), []) then
      showmessage('found!');
Is not working!!

Is it because the source is a stored procedure and not a table?
Post Reply