Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Excl
Message
De
05/07/2002 09:49:58
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
05/07/2002 09:36:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00675569
Message ID:
00675599
Vues:
10
Hi Juliam,

if the code to check for the error is in a object, not in a prg, use the ERROR method instaed of ON ERRER
The ON ERROR statement will be ignored if an ERROR method is active.

Agnes
>Hi Allen,
>Yes, you can check if a table is opened excl without any error message.
>
>*Prior to opening the table, disable the normal error handling...
>ON ERROR ?""
>*Attempt to open the table...
>SELECT 0
>USE mytable EXCL
>IF EMPTY(ALIAS())
> WAIT WINDOW "Cannot get exclusive use!"
>ELSE
> *You have opened the table exclusive!
>ENDIF
>*Be sure to restore the error handler!
>ON ERROR
>
>Hope that helps,
>Julian
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform