Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check to see if a table on a network drive is in use
Message
De
10/06/2003 11:05:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/06/2003 10:57:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00798363
Message ID:
00798405
Vues:
37
>Adjusted to restore previous ON ERROR setting...

OK, thanks... I was too lazy to figure out these details.

>
>>
>>I think it is easier to check "after you open it", that is, use error handling. For instance:
>>
>>
>>local llFileError, lcOldError
>lcOldError = on("error")
>>ON ERROR llFileError = .T.
>>use MyTable
>>ON ERROR &lcOldError
>>if llFileError
>>  MessageBox("Can't open table.")
>>else
>>  (Continue processing)
>>endif
>>
>>
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