The following constants can be used anywhere in macros or scripts in place of the actual values.
If you are retrieving the value of a property or parameter, scripts or macros will return the integer value, whereas Inspector will display the constant equivalent.
When using constants in the script editor, each constant must be prefaced by nl.
Cursor Type constant (macro editor) |
Cursor Type constant (script editor) |
Value |
Description |
DBOpenDynamic |
nlDBOpenDynamic |
2 |
Use a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed. |
DBOpenForwardOnly |
nlDBOpenForwardOnly |
0 |
Use 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. |
DBOpenKeyset |
nlDBOpenKeyset |
1 |
Use 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. |
DBOpenStatic |
nlDBOpenStatic |
3 |
Use a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible. |
DBOpenUnspecified |
nlDBOpenUnspecified |
-1 |
The cursor type is unspecified. |
© 2004-2021 looksoftware. All rights reserved.