>Hi Bruce,
>
>Same result... - blank grid.
Ok, let's see:
Try this:
lcValue = "IIF(" + alltrim(lbValue) + ",'N','Y')"
> My idea - return back to the control, which had focus before I clicking on one of my navigation buttons (set order, set filter, next, prev, search, etc.).
>
> I am not pretty sure that my idea is correct, because I need:
>
> 1) set PrevFocus of most of my controls LostFocus method (could it be done by one command?)
yes. you could create a form property that would hold the last control, and set it in the gotfocus, lostfocus, doesn't matter much, I guess, of each object...
>
> 2) In all my navigation buttons LostFocus (right? or it should be in the click event?) event place code
>
> If Not empty(PrevFocus)
> THISFORM.&PrevFocus..SetFocus()
> endif
>
> Am I right?
Yes, looks good, the Click would be the place for it.
>
> So, we need to change our classes this way, right? So, I have another question - how can I check that this property exists on my form? Because I can not assign if the property doesn't exist...
if type('thisform.myproperty') <> 'U', it exists, something like that...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.