Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning absolute name of object
Message
From
16/06/2000 06:25:43
 
 
To
16/06/2000 06:09:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00381253
Message ID:
00381258
Views:
17
>Does anybody know how to return the absolute name of a control on a form ?
>
>For example, thisform.activecontrol.name will return the name of the control that currently has the focus, rather like _curobj. However, if that object is a member of a container, or perhaps it's on a pageframe, only name of the control itself is returned, and not the entire dynamic name.
>
>So, if I place a text box called 'tbx1general1' on a pageframe called 'pgf1general1', and then in the gotfocus() of 'tbxgeneral1' I executed 'wait thisform.activecontrol.name window', I would expect to see 'tbx1general1'. However, I would actually like to see 'thisform.pgf1general1.tbx1general1'.
>
>Any ideas ??????????
>
>Regards
>
>Derek
Hi Derek.

Try sys(1272)

SYS(1272, oObjectName)

for example :

SYS(1272,_screen.activeform.activecontrol)
or
SYS(1272,thisform.activecontrol)

Cemal.
Previous
Reply
Map
View

Click here to load this message in the networking platform