Property Value Constants

Previous pageReturn to chapter overviewNext page


For features such as the Replace Components constant property specifiers and the Rename Components "Other Properties" default values, you can specify constant values as strings that get converted into property values at runtime.  Here are the basic types of properties that can be set using these constant specifiers:


Ordinals: Integers, Int64, Extended, and other ordinal values can be specified by specifying the integer or float value, such as '557' or '5.57'.
Strings: Short strings, long strings, unicode strings, and wide string properties can be set just as expected, by entering normal strings such as 'Value', 'OK', etc.  In some cases, you can specify an empty string using two single quotes, like this: ''.
Enums: You can set an enum by specifying either the ordinal value or string name of the enum value such as 'mbNo' or just '1'.
Sets: Sets modifications can be entered such that all of the members are defined using syntax such as '[akLeft,akTop]' or 'akLeft,akTop'.  To remove a set member, use a minus sign, similar to '-akBottom', and to add members do the same with a plus sign: '+akBottom'.
Variants: Specify the value using either a string notation or an ordinal/float value, similar to the above.
Boolean: Specify either 'True', '1', 'False', or '0'.


Other published property types such as tkMethod, tkInterface, tkDynArray, tkClass, tkArray, tkRecord, and tkUnknown are not supported.


Note: Some IDE versions have a bug that does not allow you to set boolean and enum properties on VCL.NET components.  WinForms components are also not supported.