Vcl.StdCtrls.TEdit.NumbersOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property NumbersOnly: Boolean read FNumbersOnly write SetNumbersOnly default 0;

C++

__property NumbersOnly = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TEdit

Description

Allows only numbers to be typed into the text edit.

Vcl.StdCtrls.TEdit.NumbersOnly inherits from Vcl.StdCtrls.TCustomEdit.NumbersOnly. All content below this line refers to Vcl.StdCtrls.TCustomEdit.NumbersOnly.

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