Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run a form on top of a form
Message
From
01/07/1998 23:58:54
 
 
To
01/07/1998 18:34:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00113602
Message ID:
00113665
Views:
23
>I'm stuck again !!!! I have a customer maintenance form that runs fine from the menu. When I am in order entry and I want to add a customer on the fly I am trying to call the form. The problem is that it won't function like a new "read" as I would say in FPW 2.6. The form comes up just fine, but it never stops and waits, it goes to the next line in the code after "do form addcust". How can I emulate FPW 2.6 behavior of calling another screen on top of a screen ???
>
>I have tried this from the valid and lostfocus methods of my customer field. It looks something like this:
>
>CASE ll_add
> *-- User said yes to add customer
> thisformset.form1.enabled = .f.
> DO FORM addcust
> thisformset.form1.enabled = .t.
> *-- code here to load new info onto main screen
>
>When I step through the code it performs each line and keeps on going to the next object on my main screen, leaving my addcust form displayed on top of the main screen. I can use it's exit button to close it and stay on the main screen, but it does not perform like it should. It should come up and wait there, not go to the next line of code after DO FORM addcust. Both of my forms are modal. I have something similar to this in another program that works fine from the click method, but I need this in the valid or lostfocus.


Make the second form Modal.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform