AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
CursorOptions (Property)
 
OLE DBConectores NativosDisponible solo con estos tipos de conexión
The CursorOptions property is used to manage the type of cursor used for a connection (Native Connectors, OLE DB, etc.). You can:
  • Find out the type of cursor used for a connection (Native Connectors, OLE DB, etc.).
  • Define the type of cursor used for the connection (Native Connectors, OLE DB, etc.). In this case, when you open a file that uses an open connection, that connection will be closed and reopened with the new parameters.
Remarks:
Ejemplo
MyConnection is Connection
// Describe the connection
MyConnection.User = "USER"
MyConnection.Password = "PASSWORD"
MyConnection.Server = "MYSERVER" 
MyConnection.Database = "Database"
MyConnection.Provider = hAccessHFClientServer
MyConnection.Access = hOReadWrite
MyConnection.ExtendedInfo = "Extended information"
MyConnection.CursorOptions = hCursorServer

HOpenConnection(MyConnection)
Sintaxis

Finding out the type of cursor Ocultar los detalles

<Cursor type> = <Connection used>.CursorOptions
<Cursor type>: Integer constant
Returns the cursor type used. This parameter can correspond to one or more of the following constants:
Location of cursors
hClientCursorCursor managed by MDAC. Generally, it offers more features than a server-side cursor. A client-side cursor is always static.
hServerCursorCursor managed by the database. This cursor can easily reflect changes made to data by other users.
Type of cursor
hDynamicCursorThis cursor offers many features, but consumes a lot of memory. This cursor supports all types of scrolling. You can access all insert, update and delete operations made by other users.
hForwardOnlyCursorThis cursor is fast and consumes little memory. The cursor can only move forward and be scrolled from the first to the last record. Changes made by other users are not visible.
hOpenKeysetCursorThis cursor handles a fixed set of records. Only the key of each record is stored and not the actual record (consumes less memory). Deleted records cannot be accessed. Changes made by other users are visible (but added records are not).
hStaticCursorMakes a copy of all query records in memory (high memory consumption). All types of scrolling are supported.
Lock modes
hReadOnlyCursorThe record set manipulated cannot be modified.
hOptimisticCursorThe record is locked when it is updated
hPessimisticCursorThe record is locked as soon as it is edited.

Note: If no constant has been specified in the HDescribeConnection function or in the connection, this parameter is set to 0.
Attention: Not all OLE DB providers or Native Connectors support all cursor types.
<Connection used>: Character string or Connection variable
Name of the connection used. This name is defined:

Modifying the type of cursor Ocultar los detalles

<Connection used>.CursorOptions = <Cursor type>
<Connection used>: Character string or Connection variable
Name of the connection used. This name is defined:
<Cursor type>: Integer constant
Returns the cursor type used. This parameter can correspond to one or more of the following constants:
Location of cursors
hClientCursorCursor managed by MDAC. Generally, it offers more features than a server-side cursor. A client-side cursor is always static.
hServerCursorCursor managed by the database. This cursor can easily reflect changes made to data by other users.
Type of cursor
hDynamicCursorThis cursor offers many features, but consumes a lot of memory. This cursor supports all types of scrolling. You can access all insert, update and delete operations made by other users.
hForwardOnlyCursorThis cursor is fast and consumes little memory. The cursor can only move forward and be scrolled from the first to the last record. Changes made by other users are not visible.
hOpenKeysetCursorThis cursor handles a fixed set of records. Only the key of each record is stored and not the actual record (consumes less memory). Deleted records cannot be accessed. Changes made by other users are visible (but added records are not).
hStaticCursorMakes a copy of all query records in memory (high memory consumption). All types of scrolling are supported.
Lock modes
hReadOnlyCursorThe record set manipulated cannot be modified.
hOptimisticCursorThe record is locked when it is updated
hPessimisticCursorThe record is locked as soon as it is edited.

Caution: Not all OLE DB providers or Native Connectors support all cursor types..
Observaciones
The CtCursorOptions property is used to get the type of cursor used in a connection. This property is kept for backward compatibility. It is recommended to use the CursorOptions property.
Ver también
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 06/12/2024

Señalar un error o enviar una sugerencia | Ayuda local