Script only to Input Numbers in Delphi
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
If not(Key in['0'..'9',#8]) then Key:=#0
end;
Description:
This script is placed on the component "Edit1" on "Events: onkeypress"
So the data can be input only NUMBERS only, while the letter could not
Diposting oleh
Unknown
di
05.32
|
Jumat, 09 Maret 2012
| | Kirimkan Ini lewat Email BlogThis! Bagikan ke X Berbagi ke Facebook
Label:
Delphi
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar