Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 14501, Restrict TStringGrid to Numbers (Delphi)

by Scott Miller Email: Anonymous


This program shows how to restrict a TStringGrid to numbers via the OnKeyPress, OnSetEditText, and OnGetEditText events.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 2.0  to 5.0 1518 downloads
Copyright: Commercial use requires permission


Size: 7,353 bytes
Updated on Fri, 19 Oct 2001 12:46:58 GMT
Originally uploaded on Wed, 08 Mar 2000 16:19:41 GMT
SHA1 Hash: D8E8642CE46BE447E42EDC4DBEEFA9B960053A3A
MD5 Hash: 489B19A4C30CB6B08D22B9CCDA90ABD7

    Explore the files in this upload

Description
This program shows two different methods for restricting a String Grid (TStringGrid) to numbers only.

METHOD ONE: Trap non numeric keys via the OnKeyPress event.

METHOD TWO: Use the OnSetEditText and OnGetEditText events
to "roll back" any changes that result in a value that is
not a number.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03