Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Validation of cells in a grid Posted by amyhibbs on 25 Feb 2002 at 7:46 AM
Hi

I need to validate cells in a grid so for example, in the first column, the user must enter an 8 digit number. If the user enters something else (like 'abc' for example) I want to show an error message or if the user enters '123' - ie. only 3digits long an error message appears when the user tabs along to the next cell. Does that make sense? I can't really find anyway to do it! HELP!!

Amy
Report
Re: Validation of cells in a grid Posted by cycord on 26 Feb 2002 at 1:00 AM
: Hi
:
: I need to validate cells in a grid so for example, in the first column, the user must enter an 8 digit number. If the user enters something else (like 'abc' for example) I want to show an error message or if the user enters '123' - ie. only 3digits long an error message appears when the user tabs along to the next cell. Does that make sense? I can't really find anyway to do it! HELP!!
:
: Amy
:
im not sure if this what you need but you can try this,,, click the table component twice then add all fields,,, on the field you want to validate choose EditMask then put the format template you want or on the OnChange property try validating the field to your choice



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.