Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long name from activecontrol.
Message
De
06/04/2000 11:06:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/04/2000 10:02:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00356102
Message ID:
00356280
Vues:
17
>>>>I want know the name of the activecontrol.
>>>>When i try
>>>>
>>>>_screen.activeform.activecontrol.name
>>>>
>>>>returns: grid1
>>>>
>>>>But what i want is
>>>>
>>>>_screen.form.pageframe1.page1.grid1
>>>>
>>>>Is there a way to do this programmaticly
>>>>
>>
>>Oops, I think I just sent an empty message. Sorry. Anyway, try SYS(1272) for what you're looking for:
>>
>>lcControl = SYS(1272, oObject)
>>
>>Tamar
>Thanks Tamar.
>Mike Helland show me a good solution.
>But his code is 6 line lenght.
>Your solution is only one line.


Yes but beware Cemal this would return the reference up to the form only and form would have the name set in its name property (Added instance number if createobject() style used). ie :

do form myForm && Form.name = "frmMyForm"
do form myForm && Form.name = "frmMyForm"
do form myForm && Form.name = "frmMyForm"
* Move on controls on all forms and watch sys(1272,sys(1270)) in debugger
You would see all beginning with "frmMyForm."
frmMyForm.MyContainer.Mygrid
You should stuff frmMyForm with _screen.ActiveForm
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform