showresultset Function
Syntax
V showResultSet(P rs )
Arguments
- rs
Pointer
Description
Quick preview of records in an AlphaDAO resultset. (Shows a max of 100 records).
Example
The showResultSetFunction() is a useful utility function to quickly show data in an AlphaDAO resultset. It is typically used in the Interactive window, or while debugging code. Here is an example of an Interactive window session:
dim cn as sql::Connection cn.open("::Name::sqlserver2012_northwind") dim sql as c = "select * from customers where city = 'london'" cn.PortableSQLEnabled = .t. ?cn.Execute(sql) = .T. dim rs as sql::ResultSet rs = cn.ResultSet showResultSet(rs)
After you have called the showResultSet() function once to show a resultset, you cannot call it a second time to show the same resultset without first executing the query again. That's because AlphaDAO resultsets are 'forward only'.