Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tableupate doesn't work for grid
Message
De
03/06/2003 12:26:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/06/2003 12:05:42
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00795710
Message ID:
00795756
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform