Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is table open by another program?
Message
De
04/04/2004 19:48:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00892131
Message ID:
00892141
Vues:
22
>I just can't remember how to do this: How can I tell if a free table is in use (it's already open) by another program?
>
>Mel Cummings

I think I would just use error handling. Something like this:
local llError, lcError
llError = .F.
lcError = on("error")
on error llError = .T.
use MyTable exclusive
if llError
  MessageBox("Could not open the table MYTABLE, for some reason.")
endif
on error &lcError && restore previous ON ERROR
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform