Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive Remove Directory
Message
 
 
À
10/12/1999 17:25:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00302015
Message ID:
00302127
Vues:
28
Mike,

You also HAVE to have LOCAL I

>
>
FUNCTION RemoveDirectory
>lParameters dirpath
>local entries, aRemDirs[1]
>dirpath = addbs(dirpath)
>
> Dele file (dirpath+"*.*")
>  entries = adir(aRemDirs,dirpath+"*.*","D")
>  If entries >= 0
>    for i = 1 to entries
>      If !Inlist(aRemDirs(i,1),".","..")
>        RemoveDirectory(dirpath+aRemDirs(i,1)+"\")
>      Endif
>    Next
>  Endif
>  RD (dirpath)
>Return && RemoveDirectory
Any luck?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform