Return Sort of SQL-recordset

Return Sort of SQL-recordset

Postby Marc Vanzegbroeck » Wed Jan 30, 2013 2:43 pm

Hi,

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

I use
Code: Select all  Expand view
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 view
msginfo(oRs:sort)

but it is empty

Code: Select all  Expand view
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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 91 guests