Return Sort of SQL-recordset

Post Reply
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Return Sort of SQL-recordset

Post by Marc Vanzegbroeck »

Hi,

Does anyone know how the return the sort-field of a recordset?

I use

Code: Select all | Expand

oRs = CREATEOBJECT( "ADODB.Recordset" )
oRS:cursortype :=1
oRs:cursorlocation :=3
oRs:locktype := 3
oRs:open('select * FROM klanten ORDER BY naam',ADO_SQL_Connectionstring)
 


I have try

Code: Select all | Expand

msginfo(oRs:sort)

but it is empty

Code: Select all | Expand

msginfo(oRs:Source)

is returing the complete command. I could do a at() and seek of the position of 'ORDER BY', and find it so, but I was wondering if it could be easyer

Thanks
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Post Reply