Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & Memo and other problems...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227549
Message ID:
00228551
Views:
16
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform