Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Get Last Directory Name
Message
 
À
19/03/2013 14:24:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01568796
Message ID:
01568799
Vues:
50
>I have some Path as
>
>F:\US\Newyork\123.txt
>F:\Canada\otawa\12234.ps
>F:\India\City\Delhi\Noida\1.ps
>
>I want to extract Newyork,Otawa, and Noida from the above Path. I.e the last Directory in whivh the file is located. Is there any function to do so ?
lc = "F:\India\City\Delhi\Noida\1.ps"
? SUBSTR(JUSTPATH(lc),RAT("\",lc,2)+1)
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform