943,819 Members | Top Members by Rank

Ad:
Sep 18th, 2005
0

validation in edit boxs

Expand Post »
Hi,
I've setup a form with several edit boxes and with a button to add the text in the edit boxes to be saved in a file. I've tryed to put a validation check in the program:

When the user press' the "Save" button, it checks if the edit boxes have text in it, if so it saves it, but if the edit box is blank/empty then it brings up a message box telling the user all fields must be filled in.

Could some please help me out.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
satrix36 is offline Offline
20 posts
since Aug 2005
Oct 7th, 2005
0

Re: validation in edit boxs

set a flag to be true
use a for next loop to check all editboxes and ensure if something is entered
if a box has nothing in it set the flag to be false
when exit loop, check if flag is true/false, if true save details, if false flash message on screen
Reputation Points: 11
Solved Threads: 0
Light Poster
mrmike is offline Offline
41 posts
since May 2005
Oct 7th, 2005
0

Re: validation in edit boxs

Thank you for your help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
satrix36 is offline Offline
20 posts
since Aug 2005
Oct 7th, 2005
0

Re: validation in edit boxs

if need the actual code let me know and i'll try to knock something up
Reputation Points: 11
Solved Threads: 0
Light Poster
mrmike is offline Offline
41 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Graphics in console mode?
Next Thread in Pascal and Delphi Forum Timeline: Automated number





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC