Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form name somevar
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01339511
Message ID:
01339515
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform