General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only