Sign in Join
FPDoc Onlineexperiment

TField.ValidChars property

Member of TFieldpublicIn unit DB

Characters that are valid input for the field's content.

Declaration

pascal
property ValidChars: TFieldChars read FValidChars write FValidChars;

Description

ValidChars is a property that is initialized by descendent classes to contain the set of characters that can be entered in an edit control which is used to edit the field. Numerical fields will set this to a set of numerical characters, string fields will set this to all possible characters. It is possible to restrict the possible input by setting this property to a subset of all possible characters (for example, set it to all uppercase letters to allow the user to enter only uppercase characters. TField itself does not enforce the validity of the data when the content of the field is set, an edit control should check the validity of the user input by means of the IsValidChar function.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.