Data.DB.TField.ValidChars

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ValidChars: TFieldChars read FValidChars write FValidChars;

C++

__property TFieldChars ValidChars = {read=FValidChars, write=FValidChars};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

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

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.

See Also