Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh not refreshing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510014
Message ID:
00511329
Views:
30
Hi Stephen,

One more try:
1. Create a new custom method for this form, say, RefreshMyData
2. Move all code from the refresh to this new method (Refresh would be now in it's default state).
3. Run the form and see, if the problem still exists (you didn't call this new method for now, so no updating checkboxes would happen).

If the problem still exists, it's not in your code, but either in navigation button code or in VFP itself.

Otherwise we narrow down the problem to this particular code. In navigation button Navigate method put
dodefault()
thisform.RefreshMyData()
See, if problem appears. If yes, you have to examine code in this method carefully and make changes.

Let's hope, this message would be a little helpful... :)


>Well nothing made a bit of difference
>
>I can cheat and do
>_screen.windowstate = 1
>_screen.windowstate = 0
>
>and everything looks fine, but you see a minimize then a restore, so it looks like the program is having a seizure
>
>
>>Stephen,
>>
>>I didn't quite understand which of my questions you were responding to.
>>
>>Did you try adding a command button with the lockscreen=.f. and refresh?
>>
>>One more thing..
>>Something that has got me a few times and sounds similar is to do with Setfocus()
>>If you do a setfocus in the middle of a method, VFP seems to go directly to that object - without running the remainder of the code after the SF command.
>>I noticed there is a Refresh after a setfocus in your add button... try swapping them over
>>
>>HTH
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform