Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to enumerate all the free form tables in a directory
Message
De
23/10/1998 13:22:43
 
 
À
22/10/1998 18:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149629
Message ID:
00149915
Vues:
17
Puri,

I use a version of this code to pack my vcx, scx, frx, pjx files, as VFPs "Pack Project" doesn't clean them up properly.

private all like j*
set defa to data
jnFiles = ADIR(jaFiles, '*.dbf')

FOR jnX = 1 TO jnFiles
jcTblName = alltrim(jaFiles[jnX,1])
use &jcTblName. in 0 alias PackFile exclusive
Select PackFile
pack
use in PackFile
NEXT
set defa to ..


>Hi,
> Iam trying to write a script to pack all the free tables(i.e. the tables that are not in a DBC file) in a folder. If I have path of the folder, Is there any way in VFP to enumerate all the files in that folder? Can they be enumerated using a wild card? (like all the *.dbf files in the folder etc)
>
>I appreciate ur help.
>
>Thanks
>Puri
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform