Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BeforeRowColChange
Message
 
To
19/03/1998 06:15:26
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085562
Message ID:
00085619
Views:
39
>>>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.
>>Ben,
>>
>>Use the table level validation rule in the database, if you must allow editing in your grid.
>
>Jim,
>
>Thank you very much for your good suggestion. But validation rules are not flexible enough and do not apply to views and free tables. Is there any other way to emulate a row level validation in grids?
Ben,

You can set validation rules for views, but not for free tables. There is no other way to get validation ruels on a record basis in grids that is bulletproof. That is one of the many reasons that I NEVER allow editing in a grid. I woudl give the other reasons I don't allow edits in grids but it would exceed the length of a UT message and I'd get in trouble with Michel :-).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform