Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict key Input

Status
Not open for further replies.

gforrest

Programmer
Apr 26, 2000
39
CA
Hi Gang,

Anyone know how I change this code to allow the use of the backspace key?

Thanks.

if not (Key in [Ɔ'..' 9']) then //Allow numeric characters only
Key := #0;
 
if not (Key in ['0'..'9', #8]) then Key:= #0;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top