RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterInputField.TestValueChange Method

Checks whether a new value matches the current value of this field.

Pascal
function TestValueChange(AField: TField; const ANewValue: string): Boolean;
C++
__fastcall Boolean TestValueChange(TField AField, const AnsiString ANewValue);

TestValueChange compares the current value of a field with a new value, which is typically taken from a request message. Dataset adapter fields use this method internally when checking for changes or when updating the field value. 

AField is the field object whose value this adapter field represents. 

ANewValue is the field value from the request message, formatted as a string. 

TestValueChange returns true if ANewValue differs from the value of AField, false if it is the same as the value of AField. 

 

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