Vote UpVote

Checking KeyPress is not the place to do your input validation

The Wiert Corner – I have seen too many projects over the years trying to do input validation by checking KeyPress. This is not limited to Delphi projects (C#, VB and other projects suffer from this just as much). Most of these projects suffer from these:: Much of the KeyPress logic logic in the UI byusing half-baked copy-pasted code fragments. They all fail missing important functionality (like paste, clear, Ctrl-key handling and such) either supporting or suppressing that functionality where needed If doing Delphi, then that code should be rewritten in a generic way based on examples like like these: ...
Favorite? Off-Topic? jpluimers @ 2017-09-19 07:04


Visits: 5477
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)