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 } )
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
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 13 guests