RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.NumbersOnly Property

Allows only numbers to be typed into the text edit.

Pascal
property NumbersOnly: Boolean;
C++
__property Boolean NumbersOnly;

Use NumbersOnly to prohibit entry of non-numeric characters in the textfield. Note, however, that a user can paste non-numeric characters in the textfield even when this property is set. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!