Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About screen .
Message
 
À
05/05/1999 06:21:33
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00214288
Message ID:
00215372
Vues:
31
Hi Jacky,

A couple of "Dumb" questions for you :)

When you build the EXE, are there any errors? Especially, undefined... (I have forgotten to check "Display errors" before and gotten burned.)

If I understand you, what you are trying to to is have the user confirm that they want to exit the application when the press exit. Is the "leave" form defined as MODAL? I have had trouble in EXEs with non-Modal forms that worked fine in the development environment. If non-Modal is called in an EXE, sometimes (and I can't remember exactly when - I think when no READ EVENTS is in effect) the form will load and close so fast you can't even see it! I wonder if this is masking the true error.

I noticed that you said you call the form as follows:
set path to curdir()
do form leave1
mainform.release()

2 more questions:)
What is curdir()? Is it the directory of the EXE? Or has your application (or Windows shortcut) changed directory to the data directory or somewhere else?

Is "mainform" defined? As a variable, I mean. When I close a form I do a ThisForm.Release()
Also, CLEAR EVENTS because I use a startup program like Nancy does.

HTH,
Bill Armbrecht
VFP MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform