RAD Studio VCL Reference
IActionFieldValues.ValueOfField Method

Returns the current value for a specified field.

function ValueOfField(const AName: string): IActionFieldValue;
__fastcall IActionFieldValue ValueOfField(const AnsiString AName);

ValueOfField returns the value that the HTTP request provides for a specified field. Use ValueOfField to access a field value by name rather than by index. 

AName is the name of the field whose value you want. 

ValueOfField returns an interface for reading the value, as it was after any edits the user made to the HTML form. If the current HTTP request does not include a field with the specified name, ValueOfField returns nil (Delphi) or NULL (C++). 


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