Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do form name somevar
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01339511
Message ID:
01339515
Vues:
11
I usually pass the form reference to the form that needs it, e.g.

do form mySecondForm with thisform

in the Second Form Init
lparameters toCalledBy

thisform.oCaller = toCalledBy
in the button's click
if vartype(thisform.oCaller) = 'O'
   thisform.oCaller.somebutton.SetFocus()
endif
>from form1 a execute form2 (CL_NEW)
>
>DO FORM CL_NEW NAME newCl
>
>From form2 a execute form 3
>
>From form 3 button.click I execute:
>newCl.ende1.setfocus
>THISFORM.RELEASE
>
>
>But is says: object not found newCl
>
>I remember have done this before
>What can be wrong ?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform