Hi Bruce,
>Ok, let's see:
>
>Try this:
>
>lcValue = "IIF(" + alltrim(lbValue) + ",'N','Y')"
Have an error here (alltrim(.t.)) ???
This code:
if lbValue
lcValue = "'Y'"
ELSE
lcValue = "'N'"
ENDIF
Show the same result in the whole column. So, I think now I can forget about this idea...
>
>> 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...
I don't want to create this for one single form, I want to provide this functionality for our classes - our base form and our navigation bar class.
>> 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...
Thanks
If it's not broken, fix it until it is.
My Blog