Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get fullname of a activecontrol?
Message
 
To
28/01/2003 23:25:09
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00746529
Message ID:
00746531
Views:
20
>Helo all!
>I have got a problem, that is to get fullname (with its name parents) of a activecontrol. For example, the name of activecontrol that is activating is a grid1, and its fullname can get : "nameform.namepageframe.namepage.namecontain.grid1".
>How to get it?
>Please help me!
>Canh

Canh,

The code below may help,

Doug

*-- Determine the full path of the current control
LOCAL lcSys18, lcParent
lcSys18 = SYS(18)
lcParent = 'THIS'

DO WHILE .T.
      lcParent = lcParent + '.Parent'

      IF TYPE(lcParent) = 'O'
        lcSys18 = &lcParent..Name + '.' + lcSys18
      ELSE
        EXIT
      ENDIF
ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform