Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00595411
Message ID:
00596011
Views:
29
Hi!

There are no such possibility. As far as I know, data session is switched automatically as soon as VFP start to run code from the object. Data session is switched to the session which was current during that object creating. Exception are forms with private data sessions and session object that creates its own data session.

>>Vlad,
>>
>>Ok, I'm getting close. I took 100% of the code out of the grid and no luck. What I did find is that the way I'm calling my two procedures to set the key is causing the problem. I created two methods on the form and through my menu call "_screen.activeform.method1" and "_screen.activeform.method2". It doesn't work this way but if I create 2 command buttons on the form that call the methods, it works perfect. Is there another refresh that I have to do or a reason why I can't call a forms methods from a menu?
>>
>>Jeff
>
>Jeff,
>
>The methods called from the Menu are they in a different file - if so then there is a strong possibility that the code is being executed in the wrong data session and so on the wrong table.
>
>HTH
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #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.
Previous
Reply
Map
View

Click here to load this message in the networking platform