Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture part of a filepath
Message
De
18/07/2002 14:14:34
 
 
À
18/07/2002 14:03:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00680095
Message ID:
00680110
Vues:
22
>I have a variable (called path) storing a filepath such as X:\AAAA\BBBB\
>I need to capture the BBBB portion of the filepath. However, this filepath isn't always going to be this exact format, but I will always need to get the text between the last two '\'. What is the best way I can do this? Seems like it should be easy, however, I have been struggling with it. Hope this makes sense.
>
>TIA!

Joe,

this should work
&& the addbs is there to make sure the path ends with a \
? justfname(justpath(addbs('X:\AAAA\BBBB\')))
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform