Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem exiting program
Message
De
02/12/2004 09:58:03
 
 
À
02/12/2004 09:36:06
Vernon Chambers
New York City Transit
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00966368
Message ID:
00966378
Vues:
7
Is Blah () return .T.? Are you return .F. from the Init of the form?

Also, with the code you posted, the form will close whatever I respond the the message box because THISFORM.Release is outside de IF. Code should look like this:
LOCAL nResponse

nResponse=MESSAGEBOX('Do you want to quit this application?',4+32,'Confirm action')
IF nResponse=6
    CLEAR EVENTS
    THISFORM.Release
ENDIF
RETURN
HTH

>I've a problem which probably requires a very simple solution. I've a form with the following code attached to an exit button:
>LOCAL nResponse
>
>nResponse=MESSAGEBOX('Do you want to quit this application?',4+32,'Confirm action')
>IF nResponse=6
>    CLEAR EVENTS
>ENDIF
>THISFORM.Release
>RETURN
>In my MAIN.prg I have;
>if blah()
>    DO myform
>    READ EVENTS
>ELSE
>    * DISPLAY ERROR MESSAGE
>ENDIF
>Why doesn't this properly work? Executable doesn't work either. Execution of 'blah()' works fine, however the form doesn't load.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform