Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Waiting on a Modeless form
Message
De
25/05/2005 08:21:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/05/2005 14:37:11
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01017199
Message ID:
01017465
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
>To All:
>
>Is there an elegant way to wait for a modeless form to finish before the code continues? It's a top-level calling a top-level form. The called form does some calculations and returns (or sets) some values.
>
>I can think of a way by pausing execution, but wondered if there were others.
>
>TIA,

1) Create a dummy in-top-level form (small and out of visible area). Call that passing modeless toplevel form's name. It calls toplevel form and provides 'modality'

2) A timer control which is enabled to track toplevel called. Code that should run after return should be in a different method. Timer calls that method and disables itself when toplevel unloads.

3) Put 'OnReturn' code to a custom method. Pass thisform to called toplevel. Called calls oCaller.OnReturn in unload.

All work in older VFP versions too.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform