Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining whether a table is in use before opening it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00279567
Message ID:
00279569
Vues:
13
What about:
llError = .F.
lcOnError = On("Error")
ON ERROR llError = .T.
USE Customer EXCLUSIVE IN 0
ON ERROR &lcOnError

IF llError
   MessageBox("Could not pack, table in use...")
ELSE
   SELECT Customer
   PACK
   USE
ENDIF
HTH
>Is there a function that determines whether a table is in use.
>
>What I need to acomplish is:
>
>if table_not_in_use()
> select 0
> use customer excl
> pack
> use
>else
> wait window 'Could not pack, table in use...'
>endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform