Promotic

CursorType - property of the AdoRecordset object

Description:
Returns or sets the cursor type of the AdoRecordset object.
 
Only a setting of adOpenStatic is supported if the CursorLocation property is set to adUseClient. If an unsupported value is set, then no error will result; the closest supported CursorType will be used instead.
Syntax:
Long CursorType
Values:
-1 - adOpenUnspecified Does not specify the type of cursor.
0 - adOpenForwardOnly (Default) Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance when you need to make only one pass through a Recordset.
1 - adOpenKeyset Uses a keyset cursor. Like a dynamic cursor, except that you can't see records that other users add, although records that other users delete are inaccessible from your Recordset. Data changes by other users are still visible.
2 - adOpenDynamic Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn't support them.
3 - adOpenStatic Uses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Adding, changes, or deletions by other users are not visible.
Note:
Property access for read and write.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var nCursor = oRs.CursorType;   // Reading from the property
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.