RAD Studio VCL Reference
IActionFieldValues.OrigValueOfField Method

Returns the original value of a specified field.

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

OrigValueOfField returns the value of a specified field as it was when the HTML form was first presented to the end user (before the user made any changes). Use OrigValueOfField to access a field value by name rather than by index. 

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

OrigValueOfField returns an interface for reading the original value, as it was stored as a hidden field in the HTML form. If the current HTTP request does not include a field with the specified name, or if the HTML form did not store an original value for this field as a hidden field, OrigValueOfField returns nil (Delphi) or NULL (C++). 


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