Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid doesn't refresh
Message
From
23/12/1996 09:32:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00015614
Message ID:
00015882
Views:
32
>>Normally Refresh should work in your case. Just check couple things:
>>1. Make sure that grid RecordSource (not ControlSource) is table.field.
>>2. You can use Nodefault in Valid event to support needed SetFocus().
>>3. If it still doesn't work but manual mouse clicking saves the situation you can click programmatically using MOUSE command. I use it sometimes not for standard but Active-X controls.
>
>
>Thank you for your suggestions. The third option worked but i can't get the cursor to return to the text field. i used Nodefault in the valid method and then setfocus.
>
>In desperation i added
> go bottom
>and holy cow it worked! The grid is finally refreshed, and i feel refreshed also :)

To return mouse you could call MOUSE command again:
nMouserow=MROW(thisform.name,3)
nMousecol=MCOL(thisform.name,3)
MOUSE CLICK AT .... && click on grid
MOUSE AT nMouserow,nMousecol && return mouse without clicking
*** also you can hide/show mousepointer here
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform