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:
00228494
Views:
16
> Same result... - blank grid.

And if you comment out that part of the code, the grid appears fine?


> In my mind I already created something - I can add Property - "PrevFocus" and assign this property
>
> PrevFocus=this.name in each control LostFocus event ?
>
> So, in this case I can do on my navigation bar controls LostFocus event
> thisform.&PrevFocus..SetFocus() - right?
>
> But may be here is better and simpler solution?
>
>>>
>>>For example, I have form with 3 grids and navigation bar. I seat on second grid, then I click next button of my navigation bar. I want to return focus on second grid now. How can I do that?
>>
>>thisform.grd2.setfocus && or whatever you name the grid

I'm not sure how much flexibilty you want, maybe you could use Controls() collections in form, page, etc....if you need more flexibility than that, maybe you're on the right track with your idea...

Also, I don't usually recommend using Valid, but it has the ability to move backward using negative numbers...
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