RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBAdapt.TDataSetAdapterMode Enumeration

TDataSetAdapterModes identifies the possible modes of a dataset adapter.

Pascal
TDataSetAdapterMode = (
  amInsert,
  amEdit,
  amBrowse,
  amQuery
);
C++
enum TDataSetAdapterMode {
  amInsert,
  amEdit,
  amBrowse,
  amQuery
};

TDataSetAdapterModes is the set of modes available for a dataset adapter. Each mode represents what a user can do using an HTML form built while the dataset adapter is in that mode. 

The following table lists the possible modes:

Mode 
Meaning 
amInsert  
The current record represents a newly inserted record to be added to the dataset. The end user supplies the values for all fields in the new record.  
amEdit  
The current record is an existing dataset record that the user can modify.  
amBrowse  
The user can view the data in the dataset but not modify it.  
amQuery  
The user is supplying a filter condition to specify a set of database records. Each value that the user enters must be matched by the fields in the resulting dataset.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!