Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run a form on top of a form
Message
De
13/07/1998 13:40:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00113602
Message ID:
00116855
Vues:
21
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform