Solved

Edit

Posted on 2001-08-28
4
157 Views
Last Modified: 2010-04-06
is there a property or method for edit box that let users write only numeric characters (in editbox).
(i don't want to use MaskEdit)
0
Comment
Question by:ntony
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
ITugay earned 20 total points
Comment Utility
Hi ntony,

procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  if not (Key in ['0'..'9',#8,',']) then
    Key := #0;
end;
0
 
LVL 1

Author Comment

by:ntony
Comment Utility
task it worked
0
 
LVL 9

Expert Comment

by:ITugay
Comment Utility
fine...
0
 

Expert Comment

by:grini
Comment Utility
Nu stiu omule si lasa-ma in pace
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now