Vcl.StdCtrls.TCustomEdit.NumbersOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property NumbersOnly: Boolean read FNumbersOnly write SetNumbersOnly default False;

C++

__property bool NumbersOnly = {read=FNumbersOnly, write=SetNumbersOnly, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomEdit

Description

Allows only numbers to be typed into the text edit.

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.

Code Examples