RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringProperty.SetValue Method

Responds when the user changes the value of the property.

Pascal
procedure SetValue(const Value: string); override;
C++
virtual __fastcall SetValue(const AnsiString Value);

The Object Inspector calls SetValue when the user has finished changing the property value. SetValue applies the value specified by the Value parameter to all components that it is currently editing. If the value can't be set, SetValue raises an exception that describes the problem.

Note: If the property is changed only through a dialog brought up by the Edit method, the Object Inspector does not call SetValue. Rather, the Edit method should handle the setting of the value on all components.
 

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