I found an issue with the above method when there are text fields in a query that are not the last columns in the resultset.
You get a SQL error Invalid Descriptor Index
Searching the web found this article which even though very old seems still pertinent.
http://forums.codeguru.com/showthrea...iptor-Index%92
The help needs to be updated to reflect this issue with a warning re text colums in result set
The same issue exists with SQLFetchRowValues