Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping changes in Grid cells
Message
De
12/11/2003 21:40:56
 
 
À
12/11/2003 16:26:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00846055
Message ID:
00849390
Vues:
47
Dorris,

I cannot understand how events that will not fire on one machine will work correctly on another. Are the OSs the same on both machines?

The .ActiveRow property of the grid is, at best, fragile. The grid uses it for its own purposes, not for yours. The best course is to use RECNO( .RecordSource ). This will get you the actual row number.

In my grids I add a .CurrentActiveRow property in the Init() method using .AddProperty() and update it with .CurrentActiveRow = RECNO( .RecordSource ) in the .AfterRowColChange() event. That way I always have a current row number without trying to depend on ActiveRow, which as you have found out, may or may not be accurate.

Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform