Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with PACK Command
Message
De
09/06/2004 04:19:56
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
09/06/2004 03:50:27
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00911564
Message ID:
00911572
Vues:
23
If the USE fails and your error handler isn't handling it properly or the user chooses to ignore, they'll get that error when the PACK fires.

BTW, PACK does a REINDEX automatically, if there were any deleted records.

>One of my users is getting the message "No Table is open in the current work area". I am looking through all of the files in the database and issuing the PACK command. Does anyone know why I would get this error message?
>
>	countdbfs = ADIR(dbfarray,CURDIR()+'\data\*.dbf')
>	FOR stepx = 1 TO countdbfs
>		THISFORM._progressbar1.UPDATE((stepx/countdbfs)*100)
>		THISFORM.label2.CAPTION = ALLTRIM(dbfarray(stepx,1))
>		use_string = SYS(5)+CURDIR()+'\data\'+ALLTRIM(dbfarray(stepx,1))
>		SELECT 0
>		USE &use_string EXCL
>		PACK
>		REINDEX
>		USE
>	NEXT
>
>Thanks!
>
>Randy Wessels
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform