Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know if a dbf file is in use by another user on
Message
De
26/07/2007 14:40:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/07/2007 07:38:25
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01243688
Message ID:
01243902
Vues:
23
>I am using vfp 6.0 sp3
>
>In the meanwhile I am testing this code and it appears to be working fine.
>
>
>onerror = on("error")
>noerror = .t.
>on error noerror = .f.
>use excl csf\tscmpms
>on error &onerror
>if noerror
> ...
> ...
> ...
>endif
>
>
>Thanks

Yeah, that is the best way. As Tore says, it is easier in VFP 9. But the point is, to get any resource outside the system, several things can go wrong, so in principle, you should have error checking.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform