RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterImageField.WebImageHREF Method

Retrieves a URL for an external image file that contains the value of this field.

Pascal
function WebImageHREF(var AHREF: string): Boolean;
C++
__fastcall Boolean WebImageHREF(AnsiString AHREF);

WebImageHREF is called when server-side script uses the Image.AsHREF property. WebImageHREF returns the value of the AsHREF property (a URL that identifies the image of this field) if it is available as a simple file reference. If, instead, the field generates images dynamically in response to requests, then WebImageHREF returns false and the information needed to generate the image is supplied instead by the GetAdapterItemRequestParams method.  

AHREF returns the URL that identifies the image of this field. 

WebImageHREF returns true if it supplies a URL as the value of the AHREF parameter, false if the HTML form must request images using a set of request parameters instead. 

WebImageHREF delegates the task of providing an URL to the ImplWebImageHREF method. ImplWebImageHREF then obtains the URL by generating an OnGetHREF event. 

 

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