Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BeforeRowColChange
Message
From
20/03/1998 08:59:11
 
 
To
19/03/1998 23:57:53
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085562
Message ID:
00085940
Views:
36
>>>In a VFP grid, how can we carry out a row level validation as the browse...valid... in FP2.6? When BeforeRowColChange fires, there is no way to know whether the user is changing row or column. Checking the lastkey is not feasible because the column/row change may be caused by a mouse click.
>>
>>But you can catch row change using both BeforeRowColChange and AfterRowColChange.
>
>Edward,
>Thank you for your response. When AfterRowColChange fires, we have already moved into a new column (or row). The When event (may be irreversible) of the control in the new column (or row) has already been fired. Even new record may has aleardy been added.

Then you probably should rethink your algorithms and e.g. make validations, adding records,etc. in AfterRowColChange event.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform