Watch, Follow, &
Connect with Us

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

ID: 16738, Restrict TStringGrid to Numbers (C++ Builder)

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 C++Builder, Version 3.0  to 5.0 1197 downloads
Copyright: Commercial use requires permission

Size: 9,937 bytes
Updated on Fri, 19 Oct 2001 12:49:45 GMT
Originally uploaded on Thu, 18 Oct 2001 16:36:05 GMT
SHA1 Hash: 3B41402B0A5FB7B62B332B81A7F92E8A48F73AAC
MD5 Hash: EC0EF59CCFCB5B739089895DAEA224DE

    Explore the files in this upload

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