Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding to _Screen.ActiveForm
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01107535
Message ID:
01107543
Views:
19
You can BINDEVENT to a property, it acts like an access method.

>
>>BINDEVENT(_vfp,"ActiveForm",o,"HandleEvent")
>
>
>Tamar,
>
>ActiveForm is not an event.
>
>Try this one:
>
>o=CREATEOBJECT("TestBind")
>o1=CREATEOBJECT("form")
>o1.Name = "FirstForm"
>o1.Caption = "First"
>o1.Show()
>
>o2=CREATEOBJECT("Form")
>o2.Name = "SecondForm"
>o2.Caption = "Second"
>o2.show()
>
>FOR EACH oform IN _screen.Forms
>	BINDEVENT(m.oform,"Activate",o,"HandleEvent")
>NEXT
>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform