Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long name from activecontrol.
Message
From
06/04/2000 11:06:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/04/2000 10:02:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356102
Message ID:
00356280
Views:
13
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform