Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with MAIN program code
Message
De
10/10/2001 09:52:48
 
 
À
10/10/2001 00:04:35
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00566287
Message ID:
00566384
Vues:
17
-snip-
>
>This has been a problem most of the day. I originally put this in the MYINITIALFORM.LOAD but had problem with the aborting and grid references again. I really think it needs to be outside MYINITIALFORM but not sure quite where or how. In some other apps I have written, they open to a form that is a system menu. That makes things easier but this app is basically one form and doesn't need a menu for one single item.
>
>
>Suggestions?

How about this:
  • Make your system settings form modal, return a value in the Unload event that indicates if the user has populated the required fields.
  • Call your system settings form from your initial form's Load event, capturing the return value to a property of the form: "do form mysystem to this.ok"
  • In the Init event of the initial form, check the value of this.ok (returned from the system form) and return .f. if the returned value indicates that the system form was not populated. This will prevent the initial form from loading.

    Make sure you CLEAR EVENTS so that the app closes.
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform