Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long name from activecontrol.
Message
De
06/04/2000 01:38:10
 
 
À
06/04/2000 01:32:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00356102
Message ID:
00356107
Vues:
19
>>_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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform