Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a method in an instance of VFP, from another
Message
De
06/04/2000 23:55:18
 
 
À
06/04/2000 12:12:26
Charles Richard
Nvo Management Systems
Boisbriand, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00356342
Message ID:
00356657
Vues:
14
Charles,

>What is required in terms of reference material to learn how to have an app determine if an instance of itself was already running when the user tries to open one of it's main forms, then second instance make the original instance open the form, and then quit.

Why not just keep it simple and prohibit starting the app if one instance is already running. Don't put "Clients" or "Invoice" as separate options on the Windows Start menu, if that's what you're doing.

Just have an option to start the main app, then put up a little form or toolbar that can stay up and accessible to let the user choose which forms to open.

Otherwise you're looking at having an app-level timer kicking off constantly in your first app checking some kind of message queue or log written to by your second VFP instance before it shuts down. Sounds messy.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform