Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping changes in Grid cells
Message
From
12/11/2003 21:40:56
 
 
To
12/11/2003 16:26:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00846055
Message ID:
00849390
Views:
37
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform