Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tableupate doesn't work for grid
Message
From
03/06/2003 12:26:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/06/2003 12:05:42
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00795710
Message ID:
00795756
Views:
10
>It is the cell that focus is on that doesn't update
>IOW the field under the cursor doens't update,
>all other modified cells do update.

So it's not a grid problem :) Wouldn't update if it was a plain textbox control on form too.
Toolbar click doesn't cause a control to loose focus, IOW you're still in that cell.
A quick and dirty solution (Assuming al default grid controls):
if type('_Screen.ActiveForm.Activecontrol') = 'O' ;
 and !isnull(_Screen.ActiveForm.Activecontrol) ;
 and _Screen.ActiveForm.Activecontrol.BaseClass = 'Grid'
 With _Screen.ActiveForm.Activecontrol
 	With .Columns(.ActiveColumn).Controls(2)
 	 .Value = .Value
 	endwith
 endwith
 tableupdate(2,.f.,_Screen.ActiveForm.Activecontrol.Recordsource)
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform