Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catch 22
Message
De
21/05/1999 13:28:28
 
 
À
21/05/1999 12:43:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00221090
Message ID:
00221472
Vues:
13
>>>I have a new situation that I am trying to put together a smooth strategy for.
>>>
>>
>>I am curious... do you want the application form to come up either way? Or, you want the registry to come up as Top Level?
>
>I wouldn't mind the application form coming up and showing, as long as the settings form had to be completed before accessing it.
>
>
>>My advice would be, don't call the Registry form from the Init, call it from another method (do) in your app object.
>>
>>So, your main.prg would be something like...
>>public goApp
>>goApp = create('cApplication')
>>
>>if vartype( goApp ) == "O"
>>if goApp.Do
>>read events
>>endif
>>endif
>>
>>Then your do could do something like...
>>local llRetVal
>>llRetVal = This.CheckRegistrySettings()
>
>
>Ok, but what now? When the registry settings aren't ok, what happens?

The CheckRegistrySettings would return False... llRetVal would get a value of false... do, goApp do would return false... read event would never be hit and the app would just fall out the bottom of main, once main.prg is gone, goApp would be released and your Ap would close.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform