Topic: Numeric entry only

How can one force entry of numbers only in a textbox? Thanks

Re: Numeric entry only

Property NumbersOnly:
http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=576&download=0

Post's attachments

Attachment icon numbersonly.png 11.82 kb, 260 downloads since 2015-01-29 

Dmitry.

Re: Numeric entry only

Thanks Dmitry. Im stuck with version 1.42 for testing purposes. Any other way?

Re: Numeric entry only

You should create event OnKeyPress for textbox

procedure Form1_Edit1_OnKeyPress (Sender: string; var Key: Char);
begin
    if not (Key in ['0'..'9']) then Key:=#0;
end;
Dmitry.