RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEnumPropDesc.StringToValue Method

Maps a string representation of the property value to the integer value.

Pascal
function StringToValue(const S: string): Integer;
C++
__fastcall int StringToValue(const AnsiString S);

Use StringToValue to map the string representation of a property value used by an OLE control object to an integer value that is a more accurate representation of the property value. If the property value is not an integer, the integer associated with the string can be a pointer to the value. 

 

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