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:
00512150
Views:
29
I emptied thgew refresh, still got it
I put the refresh into a custom meth, still got it

I remove a sub-class of navigation buttons, and it's fine, but if I create a blank form and add the sub-class of navigation buttons, it doesn't happen

either way I don't get a error message, so I think it's a glich that could be fixed with a service pack


>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
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform