Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture part of a filepath
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00680095
Message ID:
00680121
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>>>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!
>>
>>Will
JUSTSTEM(JUSTPATH(lcfile))
work for you?
>
>
>These are all wonderful suggestions...however, I forgot to mention (and I usually remember to) that I am still using Fox5. I can sure see the benefits of Fox7 right now!! Any suggestions on how to do this in Fox5?

You still can use JUSTFNAME(JUSTPATH("X:\AAAA\BBBB\"))
you just need to use FOXTOOLS.FLL in VFP5 as I mentioned in another message.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform