Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is error 2005?
Message
From
01/07/2002 14:52:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
01/07/2002 14:17:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00673016
Message ID:
00674061
Views:
27
>Well, I found out that if the table or tables in the dataenvironment have been opened EXCLUSIVELY somewhere else, then Error 2005 occurs!
>
>Is this what Error 2005 is? If so, how could I trap it?

Nah, 2005 is something you usually get when you try to assign a value of a wrong type to a base-level property, or an impossible value - but mostly you get 1881 ir 1732; you may even get a 46 (just try to assign .textbox.taborder=32342).
I've never really had a 2005, that really sounds like it's catching the few cases not covered by these three.

Anyway, I'm not sure catching the situation when someone's got your tables open exclusively is high on anyone's priority lists. You assume the user has a config.fpw where exclusive=on, and that the user is likely to run the app twice (or have more users on the network) - but then you're dealing with the power user who can wreak havoc to your app anyway. Or you're assuming your user has VFP installed and is likely to open the tables from VFP - that's another power user you can't do much against.

The actual solution would be to hand this error to your general error handler to log it, and quit the app gracefully. If someone else has a table open exclusively, there's not much else you can do, anyway.

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