Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run a form on top of a form
Message
From
13/07/1998 13:40:24
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00113602
Message ID:
00116855
Views:
22
Just wanted to say thanks, this works great !!!!!!


>>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
>>
>
>Jace,
>
>VFP is behaving exactly as it should. Your Customer form is non-modal, that means it does not keep focus until it is released, so once the form has astarted code execution continues after the line that ran the form.
>
>One way to solve this is to add a Parameter statement to the beginning of the customer form's Init that you can use to determine if the form should be modal or non-modal. In your code from the invopice pass the value of .T.
>
>DO FORM Customer WITH .T.
>
>In the INit of customer code like this;
>
> PARAMETERS plModal
> THISFORM.WindowType = IIF(plModal,1,0)
Previous
Reply
Map
View

Click here to load this message in the networking platform