Ver Mensaje Individual
  #6  
Antiguo 28-05-2007
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
El estado de un Dataset no puede cambiarse puesto que la variable State, indica cual es su estado.

Es para consultar el estado de un Dataset en un momento dado.

Si haces:
Código Delphi [-]
Table1.Append; //estará en "Insert"
etc.

Cita:
dsInactive Dataset is closed, so its data is unavailable.
dsBrowse Data can be viewed, but not changed. This is the default state of an open dataset.
dsEdit Active record can be modified.
dsInsert The active record is a newly inserted buffer that has not been posted. This record can be modified and then either posted or discarded.
dsSetKey TTable and TClientDataSet only. Record searching is enabled, or a SetRange operation is under way. A restricted set of data can be viewed, and no data can be edited or inserted.

dsCalcFields An OnCalcFields event is in progress. Noncalculated fields cannot be edited, and new records cannot be inserted.
dsFilter An OnFilterRecord event is in progress. A restricted set of data can be viewed. No data can edited or inserted.
dsNewValue Temporary state used internally to indicate that a field component’s NewValue property is being accessed.
dsOldValue Temporary state used internally to indicate that a field component’s OldValue property is being accessed.

dsCurValue Temporary state used internally to indicate that a field component’s CurValue property is being accessed.
dsBlockRead Data-aware controls are not updated and events are not triggered when the cursor moves (Next is called).
dsInternalCalc Temporary state used internally to indicate that values need to be calculated for a field that has a FieldKind of fkInternalCalc.
dsOpening DataSet is in the process of opening but has not finished. This state occurs when the dataset is opened for asynchronous fetching.

Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita