Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SOS on Building Executables
Message
De
06/03/2003 00:51:47
 
 
À
05/03/2003 22:00:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00761926
Message ID:
00761989
Vues:
20
>Hello Guys,
>
>I am having problem building my projects into executables.
>
>The problem I encountered are when I try to run the exe file it runs and it closes immediately. I think the problem with this is I'm not using the READ / CLEAR Events command (I realy don't know to use these command help here too). SOme suggest set windowtype to Modal but again the problem is the previous form do not closes even if I issue Thisform.Release.
>
>So guys can you help me with three things (for Novice Foxpro user).
>
>1. How Use Read / Clear Events and where to Issue it.
>2. How can I use Modal property and at the same time Close the previous form when I call on another form.
>3. If I sucessfully created and exe file can more than one user use it at the same time (if I mapped the drives)
>
>Thanks for the Help!

Well, I can answer item 1.

Put the statement "Read Events" immediately after your program calls the menu. If you are working directly with a form, then put it immediately after the statement that calls the form. The companion statement "Clear Events" should be placed before you issue a Cancel or Quit statement. Finally if you are using a program to call the menu or the form, then put "Read Events" immediately after you make the call to the menu or the form and the "Clear Events" just before the Cancel or Quit statements . These statements need to be used only once during the whole program. Note that those statements should not have quotes, I put them in to separate them from the rest of the text.

You probably know this, but, the purpose of those statements is to enable your application to accept input. If the application does not have this, it will go its merry way to the end, and that seems to be the behavior you are seeing now.

Someone else will chip in for items 2 and 3. Good luck to you.
=========================
PabloSr, Still Learning!
DevDBFox
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform