Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Состояние AdoDataSet . [D7, MSSQL]


Enzo_Matrix ©   (2005-10-19 10:21:00) 

Как узнать, в каком состоянии находится AdoDataSet? Мне, например, надо узнать, находится ли он в состонии EDIT. Как это можно осуществить?


Enzo_Matrix   (2005-10-19 11:07:00) [1]


> З.Ы. Это был последний ответ тебе от меня на любой твой
> вопрос.


Ой блин испугал, "щас сотрусь".


Ega23   (2005-10-19 11:04:00) [2]


> А ты - тот самый "из ларца" ?!


Мороженое за него есть тоже я буду...  :о)


Ega23   (2005-10-19 11:03:00) [3]


> Да, вполне. Спасибо


В хелпе более читабельно, между прочим. И ещё много полезного есть. И ТЫ сделать это мог гораздо быстрее, а также мог помочь мне не тратить траффик на всяких ламеров, которые ленятся F1 нажать.

З.Ы. Это был последний ответ тебе от меня на любой твой вопрос.


Johnmen   (2005-10-19 11:02:00) [4]

>Ega23 ©   (19.10.05 10:58) [7]

А ты - тот самый "из ларца" ?!
:)))


Enzo_Matrix   (2005-10-19 11:00:00) [5]


> Удовлетворён?

Да, вполне. Спасибо


Ega23   (2005-10-19 10:58:00) [6]


TDataSetState type

Indicates the current operating mode of a dataset component.

Unit

Db

type TDataSetState = (dsInactive, dsBrowse, dsEdit, dsInsert, dsSetKey, dsCalcFields, dsFilter, dsNewValue, dsOldValue, dsCurValue, dsBlockRead, dsInternalCalc, dsOpening);

Description

TDataSetState represents the values that may be in the State property of a dataset component. TDataSetState indicates the current operating mode of that dataset component. The following table lists all possible values in the TDataSetState type and describes what they indicate in the State property:

Value Meaning

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.


Удовлетворён?


Johnmen   (2005-10-19 10:57:00) [7]

>Enzo_Matrix   (19.10.05 10:46) [5]

Есть такой мультик, в котором "двое из ларца одинаковых с лица".
А ты - тот самый Петя? :)))


Enzo_Matrix   (2005-10-19 10:46:00) [8]

Ой как нам трудно написать слово да или нет, конечно намного проще написать "А в хелп заглядывать не пробовал?". Я задал конкретный вопрос и хотел получить конкретный ответ.


Johnmen   (2005-10-19 10:43:00) [9]

State + F1


Ega23   (2005-10-19 10:43:00) [10]

Ну да, а значения у него какие бывают? что-то типа dsEdit?

А в хелп заглядывать не пробовал?


Enzo_Matrix   (2005-10-19 10:32:00) [11]

Ну да, а значения у него какие бывают? что-то типа dsEdit?


stone   (2005-10-19 10:27:00) [12]

State


Наверх

Титульная страница Поиск, карта сайта Написать письмо