FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Pregunta No 1 Para Amigo Daniel
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Pregunta No 1 Para Amigo Daniel
Posted: Fri Mar 02, 2012 09:27 PM

Saludos.

Daniel.
Pregunta No 1
Que diferencia hay entre
oQry = oServer:Query( "SELECT * FROM clientes limit 20" )
y
oQry = TDolphinQry():New( "SELECT * FROM test", oServer )

Pregunta No 2
Veo que Locate y Find Funcionan Igual Me corriges si me equivoco..
En la Sintaxis del codigo Locate y Find que indica cuando dices .F. o .T. (Que efecto hace)
? If( ( nRec := oQry:Locate( {"AARON","EDDY"}, {"first","last"}, , , , .F. ) ) > 0, "Found", "No found" ) + Str( nRec )
? If( ( nRec := oQry:Find( {"AARON","EDDY"}, {"first","last"}, , , , .T. ) ) > 0, "Found", "No found" ) + Str( nRec )

Gracias

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Pregunta No 1 Para Amigo Daniel
Posted: Fri Mar 02, 2012 09:48 PM
ruben Dario wrote:Daniel.
Pregunta No 1
Que diferencia hay entre
oQry = oServer:Query( "SELECT * FROM clientes limit 20" )
y
oQry = TDolphinQry():New( "SELECT * FROM test", oServer )


ninguna

ruben Dario wrote:Pregunta No 2
Veo que Locate y Find Funcionan Igual Me corriges si me equivoco..
En la Sintaxis del codigo Locate y Find que indica cuando dices .F. o .T. (Que efecto hace)
? If( ( nRec := oQry:Locate( {"AARON","EDDY"}, {"first","last"}, , , , .F. ) ) > 0, "Found", "No found" ) + Str( nRec )
? If( ( nRec := oQry:Find( {"AARON","EDDY"}, {"first","last"}, , , , .T. ) ) > 0, "Found", "No found" ) + Str( nRec )


http://forums.fivetechsupport.com/viewtopic.php?p=104998#p104998

Continue the discussion