Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Problem
Message
From
02/07/2002 05:45:38
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00674342
Message ID:
00674349
Views:
19
Aaron,

I think this is simply because the field that you are in does not lose focus and update the value in the cell.

They are a number of ways this can be overcome, but one could be to force the focus to the process button before the click code runs. For example

PROCEDURE CLICK

IF NOT THIS.SetFocus()
RETURN
ELSE
*-- Do process code
ENDIF

RETURN

>I'm sure this is an easy one
>
>I have a grid wich is populated from a updatable view
>
>Don't usually like to use grids for data entry but in this case there is no other way to go
>
>The problem I'm having--
>
>The last field that i change on the grid doesn't get updated when I click a process button on the form unless i specifically click on the grid again although all others but the last one changed do .
>
>I'm not using data buffering- It seems to me that some grid method meeds to be ran to cause the last field changed to be updated
>
>I've tried refresh, doscroll, and click events on the grid and running a tablupdate command on the view from the command button, but the only thing that seems to work is that extra mouse click or changing records with the arrow keys.
>
>I would appriciate any advice on why grids behave this way and how to programatically deal with it
>
>Thanks in advance for your help
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform