Re: return statement

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tuesday 16 April 2002 02:15 am, you wrote:
>
> I have a Windows program where I am checking several fields and if the
> fields are not entered, I want to tell the user to input the data in the
> field and then proceed to the next field. If the user does not like what he
> has entered he can change it and leave the other fields as entered. I have
> these several input statements in a procedure. If the field needs to be
> entered the program seems to return to the starting point  at the beginning
> of the procedure, and does not return just to the statement being executed.
> Is this is what is happening, or is there a way to force it to return to
> the statement?

You'll have to show us the code for the procedure you mention above. 
It's a bit confusing, since there shouldn't be any "input statements" in 
a Windows program. 

In general, however, you should check the fields when the user 
leaves the last field, or better, when she clicks on an "OK" button, 
signifying that all the necessary data has been entered. Your validation 
routine checks the contents of each entry field, and if invalid, sets focus 
to that field (and perhaps opens a message box explaining what needs to 
be done).

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu