Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnFieldChange and OnRowChange in grid
Message
From
12/03/2004 15:24:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/03/2004 14:48:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00885527
Message ID:
00885786
Views:
9
>>You can bind any code of yours to BeforeRowColChange(), and there use the >grid's RowColChange property to see what changed - row, column or both.
>
>Do you mean ActiveColumn and ActiveRow property?
>I didn't see RowColChange property - I use VFP6.0

The RowColChange property was added in 7 - with a very good reason, to solve problems like yours. You mentioned "how to bind events" - so I thought you are using bindevent() - which is VFP8. If you're using some binding scheme of yours, well, good luck - I can't think of a way to keep track of this.

You can track your recno(), but in BRCC you're still sitting on the same record and don't know what will the next record be. You have the nIndex parameter in BRCC, but that's also the currently active column, not the next one. You may store it somewhere and store the current recno() too, and then in ARCC compare them with the new ones - but then you're already on the new record, and if you're row buffering, the update is passed already.

Maybe grid.valid() would be a place to try something. I haven't, but I figure it should run after BRCC and before ARCC.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform