RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.GetInputStyleType Method

Returns the style of the HTML control to use for editing this adapter field.

Pascal
function GetInputStyleType(const AAdapterMode: string): TAdapterInputHTMLElementType; virtual;
C++
virtual __fastcall TAdapterInputHTMLElementType GetInputStyleType(const AnsiString AAdapterMode);

GetInputStyleType returns the recommended type of control to use for editing this field's value in HTML forms. 

AAdapterMode indicates the current mode of the parent dataset adapter. It is one of the following values:

Value 
Mode 
Meaning 
Insert  
amInsert  
The control is to be used for entering a field value in a newly inserted record.  
Edit  
amEdit  
The control is to be used for editing the current field value.  
Browse  
amBrowse  
The control is to be used for read-only display.  
Query  
amQuery  
The control is to be used for entering a criterion to use in a generated query.  

In TBaseDataSetAdapterField, GetInputStyleType always returns htmliTextInput, indicating that the default control is a single-line edit control. Descendant classes override this to allow other control styles when appropriate. 

 

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