RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.ValidChars Property

Specifies the characters that can be included in the text representation of the field's value.

Pascal
property ValidChars: TFieldChars;
C++
__property TFieldChars ValidChars;

Set ValidChars to restrict the characters that can be validly entered as part of the text representation of the field's value. ValidChars is used by the IsValidChar method to determine whether a character typed into a data-aware edit control can make up part of the field's value. Unlike the EditMask property which specifies which characters can appear in specific positions, ValidChars limits the characters that can appear anywhere in the field's value. 

TField initializes ValidChars to include all characters. Numeric descendants of TField change the default value to include only the characters that can make up a numeric value. Applications can change this value to restrict the character set for a field in other ways or to allow characters that are not permitted by default. 

 

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