Someone has an example of the use of a recorset with xbrowse

User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Post by leandro »

thanks nageswaragunupudi :D

Thank you very much for the help. It works of marvel.

But have I another question?

Since I do to update the recorset. for example that wants to change the order that estan showing the consultation.

The initial recorset is:

Code: Select all

oVar   := "SELECT * from colores order by CODIGO"
TRY
  oLamcla:oRsColore:=tOleAuto():New("ADODB.RecordSet")
CATCH oError
  MsgStop( "No se ha podido crear el RECORDSET !","Error de Datos" )
END

oLamcla:oRsColore:CursorLocation  := adUseClient //adUseServer
oLamcla:oRsColore:LockType        := adLockOptimistic
oLamcla:oRsColore:CursorType      := adOpenKeyset
oLamcla:oRsColore:Source          := oVar
oLamcla:oRsColore:ActiveConnection( oLamcla:oServer )
But I want to update the recorset with the following consultation:

Code: Select all

oVar   := "SELECT * from colores order by NOMBRE"
Since I do it?

In advance thank you for the answer.
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

After reading the recordset in any order, whenever you want to change the order of the recordset, simply say :

Code: Select all

oRs:Sort := "NOMBRE"
oBrw:Refresh()
Now please confirm to me that your browses even with empty recordsets are working with the above code I gave you? If you confirm, we shall draft a neat replacement and suggest to Mr Antonio to incorporate in the next release
Regards

G. N. Rao.
Hyderabad, India
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

working...

Post by leandro »

Clear friend that if it of the recoset I work perfectly with the example that gave me. Thanks :D

With regard to it of the update of the recorset ... since I do to do filters or searches inside the table?
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

>
With regard to it of the update of the recorset ... since I do to do filters or searches inside the table?
>

you can
Regards

G. N. Rao.
Hyderabad, India
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Post by leandro »

jajajajaja Not understan that I must do jajajaja
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
Post Reply