RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterImageField.GetDisplayStyleType Method

Returns the HTML display style type for this adapter field.

Pascal
function GetDisplayStyleType(const AAdapterMode: string): TAdapterDisplayHTMLElementType; override;
C++
virtual __fastcall TAdapterDisplayHTMLElementType GetDisplayStyleType(const AnsiString AAdapterMode);

GetDisplayStyleType returns the best way to display 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 field value is to be used for entering a value in a newly inserted record.  
Edit  
amEdit  
The field value is to be used for editing the current field value.  
Browse  
amBrowse  
The field value is to be displayed in a read-only manner.  
Query  
amQuery  
The field value represents a criterion to use in a generated query.  

In TBaseDataSetAdapterField, GetDisplayStyleType returns htmldImage, indicating that the value should appear as an image. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!