Hi!
It looks like the setting focus in teh InteractiveChange of combobox does cancel the selecting. Use Valid event of the combobox that is more reliable - it is also fired for each selection, not only when focus goes out of combobox.
PS: Instead of setting focus to grid (.grdPreset.SETFOCUS), refresh it just by calling Refresh method of grid (.grdPreset.REFRESH)
HTH.
>Hi,
>
>
>Combobox.INTERACTIVECHANGE()
>
>WITH THIS
> THISFORM.RequeryLookup(.VALUE)
>ENDWITH
>
>THISFORM.RequeryLookup
>
>SELECT tblPreset
>
>WITH THIS
> .LOCKSCREEN = .T.
> .grdPreset.RECORDSOURCE = ""
>
> SELECT cDesc ;
> FROM tblPreset ;
> WHERE UPPER(Group) = UPPER(tcGroup) ;
> INTO CURSOR csrPreset
>
> .grdPreset.RECORDSOURCE = "csrPreset"
>
> .GRIDHIGHLIGHTER1.INIT()
> .grdPreset.SETFOCUS
> WITH .txtDesc
> .VALUE = ""
> .SETFOCUS
> ENDWITH
>ENDWITH
>
>
>
>Any ideas?
>
>Thank you
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.