Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is error 2005?
Message
De
01/07/2002 14:52:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/07/2002 14:17:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00673016
Message ID:
00674061
Vues:
36
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform