Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling another form from current form
Message
De
21/12/1999 01:03:54
 
 
À
01/11/1999 21:03:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284853
Message ID:
00306557
Vues:
21
Hi Edward,

I found this thread because I was searching on how to release a form from within another form. Neither forms were part of a class. I found the code below and and used it and it worked great. I just don't know WHY???

My code looks like this:

For Each oForm In _SCREEN.Forms
IF oForm.Name=="startup"
oForm.release()
Endif
Endfor

I don't see how when I say oform.release, that vfp knows which form I'm wanting to release.??? Or maybe it's coming to me now. Does oForm hold a reference or something to my form, and if so how? Still confusing. . . Can you help me a bit here? Oh and thanks again.

-Rick

>You can search through _SCREEN.Forms collection to get the form reference:
>
>For Each oForm In _SCREEN.Forms
> IF oForm.Name=="FormA"
>  oForm.Mytimer.Enabled=.F.
> Endif
>Endfor
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform