>>>>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