Pregunta No 1 Para Amigo Daniel

Pregunta No 1 Para Amigo Daniel

Postby ruben Dario » Fri Mar 02, 2012 9: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
User avatar
ruben Dario
 
Posts: 1064
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Pregunta No 1 Para Amigo Daniel

Postby Daniel Garcia-Gil » Fri Mar 02, 2012 9: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
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 126 guests