How i do to find in RecordSet?

How i do to find in RecordSet?

Postby goosfancito » Tue Nov 16, 2010 3:52 pm

Hi!,
I need find value in a recordset.
oRs:Find( "CliDes LIKE '"+cBuscar+"*'",,1)


When i run my aplication it show error:
ADODB.RecordSet/6 DISP_E_UNKNOWNNAME: FIND
Args:
[ 1] = C cliDes LIKE 'd*'
[ 2] = U
[ 3] = N 1


Pueden por favor darme una mano. gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: How i do to find in RecordSet?

Postby Adolfo » Tue Nov 16, 2010 8:53 pm

Goosfancito

Try doing a orcs:movefirst() before calling FIND


Greetings from Chile

Adolfo
;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
User avatar
Adolfo
 
Posts: 860
Joined: Tue Oct 11, 2005 11:57 am
Location: Chile

Re: How i do to find in RecordSet?

Postby Enrico Maria Giordano » Tue Nov 16, 2010 8:54 pm

Try also

Code: Select all  Expand view
oRs:Find( "CliDes LIKE '"+cBuscar+"%'",,1)


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How i do to find in RecordSet?

Postby goosfancito » Tue Nov 16, 2010 9:17 pm

continue with error!

i try with movefirst before.
i try with change * for %
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: How i do to find in RecordSet?

Postby Enrico Maria Giordano » Wed Nov 17, 2010 10:48 am

Please take the time to make a reduced and self-contained sample yet showing the problem.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How i do to find in RecordSet?

Postby Rick Lipkin » Wed Nov 17, 2010 2:42 pm

Just an obvious question .. you are defining CliDes in your Select statement ? as in Select field1,field2,field3,CliDes .... or Select * ??

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 107 guests