Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete empty tables
Message
De
23/02/2005 16:44:08
 
 
À
23/02/2005 11:11:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00989602
Message ID:
00989858
Vues:
17
How about this?
SET DEFAULT TO GETDIR( )

LOCAL aFileList
DIMENSION aFileList(1)
ADIR(aFileList,"*.dbf")

IF ALEN(aFileList) < 2
   RETURN .F.
ENDIF

FOR i = 1 TO ALEN(aFileList, 1)

   SELECT 0
   cTable = aFileList[i, 1]
   USE (cTable)
   iRecords = RECCOUNT()
   USE

   IF (iRecords = 0)
      DELETE FILE (cTable)
   ENDIF
ENDFOR
Jim Philippi

quando omni flunkus moritati
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform