CODBCStmt.SetPosmethod
Sets the cursor position in a rowset and allows an application to refresh data in the rowset or to update or delete data in the result set.
Syntax
FUNCTION SetPos (BYVAL wRow AS SQLSETPOSIROW, BYVAL fOption AS SQLUSMALLINT, BYVAL fLock AS SQLUSMALLINT) AS SQLRETURN
Parameters
| Name | Description | |
|---|---|---|
wRow | Position of the row in the rowset on which to perform the operation specified with the fOption argument. If wRow is 0, the operation applies to every row in the rowset. | |
fOption | Operation to perform: SQL_POSITION, SQL_REFRESH, SQL_UPDATE, SQL_DELETE. | |
fLock | Specifies how to lock the row after performing the operation specified in the Operation argument. SQL_LOCK_NO_CHANGE, SQL_LOCK_EXCLUSIVE, SQL_LOCK_UNLOCK. |
Description
Sets the cursor position in a rowset and allows an application to refresh data in the rowset or to update or delete data in the result set.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:689
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class