Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap cannot update the cursor error?
Message
 
To
28/05/2004 01:47:58
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00908040
Message ID:
00908116
Views:
22
>i put my tables in the network, which have security permissions per type of user.
>
>when i try to log in with a user who is not permitted to write to the file, i get error cannot update the cursor.
>
>how can i trap this? pls help. TIA.

If it's VFP8, one way to do this would be to wrap the writing operations into TRY... CATCH structure and trap for corresponding errors.
If the user has no permission to write to the folder, it is possible to place just one check when user logs in. In TRY... CATCH structure try to create the text file in the data folder. If the attempt fails, then the user has no required permissions. Of course the actual implemetation depend on what kind of permissions your user groups have.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform