Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a form not in focus
Message
De
05/11/2000 08:30:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00437475
Message ID:
00438108
Vues:
12
If you are asking how do I make sure another form is open to do something try

LOCAL i
FOR i = 1 TO _Screen.FormCount
IF _Screen.Forms(i).Name = 'frmName'
_Screen.Forms(i).DoMySpecialMethod()
EXIT && we found it, no more reasons to continue loop
ENDIF
ENDFOR

John


>Hi all,
>
>What is the best way to move focus to another form by coding? My application usually has multiple forms opened at the same time. Moreover I sometimes have to call a function from another form while working in another. How to refer to a form that is not in the focus?
>
>Thanks in advance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform