RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterImageField.GetAdapterImage Method

Returns an interface that can be used to access the Image property of this adapter field.

Pascal
function GetAdapterImage: TComponent;
C++
__fastcall TComponent * GetAdapterImage();

GetAdapterImage provides the implementation of the Image property on this adapter field. This method is called automatically when server-side script references the Image property. The resulting interface can then be used to obtain the value of the image. 

GetAdapterImage checks the Mode property of the parent adapter for this field. If the parent dataset adapter is in insert mode or query mode, GetAdapterImage returns nil (Delphi) or NULL (C++), because there is no current value to the image field (it does not currently represent the value of a graphic field in the adapter's dataset). Otherwise, GetAdapterImage returns self (Delphi) or this (C++), so that the WebSnap application can obtain the current image for this field. 

 

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