Saludos al forum
Alquien por casualidad tiene toda la documentacion con el uso de cada uno de los Metodos.
Como hago una busqueda de un registro especifico de un query. Algun Ejemplo
Saludos al forum
Alquien por casualidad tiene toda la documentacion con el uso de cada uno de los Metodos.
Como hago una busqueda de un registro especifico de un query. Algun Ejemplo
oDbf:Filter := "variable = 'abc'" // exactly like ADO
// OR
oDbf:SetFilter( "variable='abc'" )local nAge, cState
nAge := 40
cState := "NY"
oRs:SetFilter( "state = ? .and. age >= ?", { cState, nAge } )
// ....
// later
// ....
cState := "WA"
nAge := 50
oRs:ReFilter( { cState, nAge } )Please see
You can read the complete documentation.
References to WIKI are also given here
&
Gracias G. N. Rao.
Te cuento no me funciona. Ni con seek ni setfilter o locate. No busca el registro
Lo hago asi
oDbf:SetFilter( xfind )
if oDbf:EOF()
fiarc := 0
endif
Pero usando ADO si funciona,
Te pregunto que libreria se requiere para usar este recurso.
Solamente Adicione libmysql.lib, tambien Adicione libmariadb.lib
Por curiosidad he visto una libreria mysqlclient.lib tu sabes como se usa.
I tell you it doesn't work for me. Neither with seek nor setfilter or locate. It does not search the registry.
I do it like this
oDbf: SetFilter (xfind)
if oDbf: EOF ()
fiarc: = 0
endif
I ask you what library is required to use this resource.
Just add libmysql.lib, also add libmariadb.lib
Out of curiosity I have seen a mysqlclient.lib library you know how it is used.
#include "fivewin.ch"
function Main()
local oCn, oRs
oCn := FW_DemoDB()
oRs := oCn:RowSet( "SELECT FIRST,STATE,AGE,SALARY FROM customer" )
oCn:Close() // Let us close connection and see if filters still work
XBROWSER oRs SHOW SLNUM TITLE "CUSTOMER : NO FILTER"
oRs:SetFilter( "UPPER( ? ) $ UPPER(FIRST) .AND. STATE = ? .AND. AGE > ?", { "en", "NY", 30 } )
oRs:GoTop()
XBROWSER oRs SHOW SLNUM TITLE "CUSTOMER : " + oRs:cFilterExp
oRs:ReFilter( { "o", "WA", 40 } )
oRs:GoTop()
XBROWSER oRs SHOW SLNUM TITLE "CUSTOMER : " + oRs:cFilterExp
return nil

