Message
From
22/02/2010 09:17:17
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01449866
Message ID:
01450211
Views:
60
>>>>Hi,
>>>>
>>>>I am trying to stop user to go to another page when he has not filled in one of the text box in the current page. I wrote some code at the activate events of other page like if (textbox value) is empty, pgframe.page1.activate but it is not working.
>>>>
>>>>Can somebody give me idea ?
>>>>
>>>>Thanks in advance.
>>>
>>>I think we were achieving this functionality by using NODEFAULT in Page.Activate if it was not the last active page.
>>
>>Or couldnt he like...put the "stopping code" if textbox.empty in the button or whatever he is using to load the form.Most likely a button right?so deactivate the button till this.x has a vaule
>
>Right, but it would not prevent switching to a new page and this was the main intent.
>
>But I'm happy that you already started to help other people with your ideas!
lol why woudnt it stop from going to a page
the button has the code do form test

and in the refresh on the form ( the form being the form with the button to the next form)
u could have the code not too activate the button that calls the next form UNLESS the given criteria is met
Previous
Next
Reply
Map
View