Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retreive path one directory up
Message
De
12/04/2004 18:44:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00894269
Message ID:
00894271
Vues:
8
>I am trying to get the path of one directory up from my current path. If I issue ?FULLPATH(curdir()) then I get the following:
>
>
>H:\test1\test2\
>
>
>how can I get one directory up as follows:
>
>
>H:\test1\
>
>
>
>
>thank
>Nick

Hi Nick,

How about this ?
cDir = fullpath(curdir())
cDir = left( cDir, rat('\', cDir, 2) )
HTH
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform