RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCharProperty.GetValue Method

Returns the property value formatted as a string.

Pascal
function GetValue: string; override;
C++
virtual __fastcall AnsiString GetValue();

GetValue formats the value of the property, formatted as a string. If the value is not available, GetValue raised an exception. 

As implemented in TPropertyEditor, GetValue returns the string "(unknown)". Descendant classes override this method to provide an appropriate value string or raise an exception. 

GetValue is the read access method of the Value property.

Note: To obtain an error string when the property value is unavailable rather than raising an exception, you can call the GetEditValue method. GetEditValue is protected, but can be called through the IProperty interface in code that is not a method of a descendant class.
 

 

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