validation in edit boxs

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

validation in edit boxs

 
0
  #1
Sep 18th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 41
Reputation: mrmike is an unknown quantity at this point 
Solved Threads: 0
mrmike mrmike is offline Offline
Light Poster

Re: validation in edit boxs

 
0
  #2
Oct 7th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

Re: validation in edit boxs

 
0
  #3
Oct 7th, 2005
Thank you for your help
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 41
Reputation: mrmike is an unknown quantity at this point 
Solved Threads: 0
mrmike mrmike is offline Offline
Light Poster

Re: validation in edit boxs

 
0
  #4
Oct 7th, 2005
if need the actual code let me know and i'll try to knock something up
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC