Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read and Clear EVENT
Message
De
29/10/1999 00:17:19
 
 
À
29/10/1999 00:14:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00283607
Message ID:
00283610
Vues:
8
Hi John,

I think what you have wrong here is running Login from frmMain.Activate. Why not run Login standalone and, depending on the value returned, run frmMain?
DO FORM frmLogin TO lOK
IF lOK
   DO frmMain
ENDIF
>Hi,
> I have a top level form called frmmain. When frmMain.ACTIVATE, I will DO FORM frmLogin. frmLogin is a modal form and it will return a value. If the value return is .T., frmLogin will be release. If it is .NULL. the application will be terminate. I face a problem that all of the form were released but the APPLICATION IS NOT TERMINATED PROPERLY, (the command windows is not appear after CLEAR EVENT, need to cancel it manually). The following is my code:
>
>

>main.prg
>
>DO FORM frmMain
>READ EVENT
>
>frmMain.ACTIVATE
>
>IF .NOT. llLogin
> DO FORM frmLogin TO llLogin
> IF .NOT. llLogin
> THIS.RELEASE
> ENDIF
>ENDIF
>
>frmMain.DESTROY
>CLEAR EVENT
>
>
>Anything goes wrong here?
>
>Thank you
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform