Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Packing give Error 111, pls help
Message
De
28/12/2003 22:29:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/12/2003 22:12:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00862410
Message ID:
00862414
Vues:
15
Other reasons why PACK might not work: 1) The table is read/only, 2) There is not enough disk space.

To avoid the VFP error, and perhaps put your own error, you can use ON ERROR:
local lcOnError, llError
lcOnError = on("error") && save previous ON ERROR
IF USED("mytable") AND ISEXCL("mytable")
   SELECT mytable
   on error llError = .T.
   PACK     <-------- this part is giving error
   on error &lcOnError  && restore previous ON ERROR
   if llError
      MessageBox("Unknown error during PACK.")
   endif
   USE IN mytable
ENDIF
You can also use aerror() to get more specific information about the last 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
Répondre
Fil
Voir

Click here to load this message in the networking platform