Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing Grid Navigation
Message
From
15/07/1998 21:35:01
Richard Hackett
Dr Dick's Software Inc
Edmonton, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Preventing Grid Navigation
Miscellaneous
Thread ID:
00117952
Message ID:
00117952
Views:
40
Hi

I'd like to prevent the user navigating away from a record in a parent grid while the form is in editmode. This grid class is for use in a class library. This can be achieved in single-user systems by storing the recordnumber before going into editmode and checking RECNO() in AfterRowColChange(), then navigating back there. However the problems of user updates, delete conflicts etc. on multi-user systems are formidable.

I don't want to fiddle with the When() method of every textbox and column in my applications,and unless I use a builder 100% of the time it is tiresome to edit every object within every grid. In other words, I expect to use the base VFP header and textbox classes in grids at least some of the time. If I used custom classes for these 100% of the time, perhaps I could return .F. in When() if we're on the wrong record and everything might be OK. But that is quite a committment.

Any other ideas?? How can I write code into the When()s of certain contained objects at runtime, should I expect a new answer with the control of events in VFP 6.0...

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform