Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long name from activecontrol.
Message
From
06/04/2000 01:38:10
 
 
To
06/04/2000 01:32:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356102
Message ID:
00356107
Views:
14
>>_screen.activeform.activecontrol.name
>>returns: grid1
>>But what i want is
>>_screen.form.pageframe1.page1.grid1
>
>Something like (not tested, off my melon):
>
>
lcControl = _screen.activeform.activecontrol.name
>loControl = _screen.activeform.activecontrol
>do while not compobj(loControl, _screen.activeform)
>    loControl = loControl.Parent
>    lcControl = loCOntrol.Name + '.' + lcControl
>enddo
>?lcControl
>
>You can replace the form name with _screen.activeform if you want, but I don't see how good it is, you still have an object reference.

I have tested.
Its work perfect.
Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform