Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the SqlRowCount() function from the ODBC API
Message
 
To
01/03/2004 09:42:43
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00882028
Message ID:
00882333
Views:
14
Jim,

Everything I know about SqlRowCount() I learned in kindergarden...

no, that's not right...

I learned it from Anatoily Mogylevets in thread 810276

In summary,

DECLARE SHORT SqlRowCount IN ODBC32 INTEGER StatementHandle, INTEGER @RowCountPtr

*** get the "actual" handle, vs the VFP handle
m.lhActual = SQLGetProp(m.lhVFP_Handle, "ODBChstmt")

*** pass the "tally" memvar into SQLRowCount() by reference
m.lnTally = -1
SQLRowCount(m.lhActual, @lnTally)

This information, with modifications, also applies to SQLExecDirect().

Regards,
Thom C.
Previous
Reply
Map
View

Click here to load this message in the networking platform