Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program executing
Message
De
18/04/2005 11:22:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01005064
Message ID:
01005806
Vues:
18
>Cetin,
>
>I still cannot get this to work but I was very interested in how the Read Events and Clear events work. My program has 2 procedures which are called using do commands:
>
>
>Do this
>Do that
>
>proc this
>     ............
>endproc
>
>proc that
>     ............
>endproc
>
>
>Above is a typical structure I have. How do I ensure that 'Do That' is not executed until 'Do This' has finished?
>
>Many Thanks

Neil,
Read events/Clear events approach might not work for all the parts but works very well if you're doing things like asking a username/pw at startup. ie:
* Consider you have a login form like this - this form is NOT modal
* Form Init
* ... any init code
this.Show
read events

* Form OK/Cancel or whatever button that'd release form click
thisform.Hide
clear events

* Main code
*.... initialization any code
Local frmLogin
DO form login name frmLogin
oApp.oCurrentUser = frmLogin.oUserInfo && Save oCurrentUser to oApp custom object
frmLogin.Release
Release frmLogin
If IsNull( oApp.oCurrentUser ) && If not a valid user just shutdown
  Return
endif

Do MainMenu.mpr
*or
Do Form MainForm

Read Events
* Cleanup code ...
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform