>Hi,
>
>I declare grid, for example:
>
>SqlString = [SELECT ... INTO CURSOR cstring'
>&SqlSalyga
>thisform.grid1.RecordSourceType=1
>thisform.grid1.Readonly=.T.
>thisform.grid1.RecordSource = 'cstring'
>thisform.grid1.show
>
>Now I need declare GotFocus() function, for example:
>
>thisform.grid1.column1.text.GotFocus()...
>
>I not use classes.
>I declare GotFucus in grid1 object, but when use code shown above, gotfocus not work.
>
>Realy need help.
First why not :
thisform.grid1.RecordSource = SqlString
Gotfocus() ? Do you mean setfocus() in fact ? What do you want to do ? Call gotfocus code or set focus to thisform.grid1.column1.text ? Note that your code just calls gotfocus code but it is only run and doesn't set focus to thisform.grid1.column1.text.
Cetin