Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting File Names...
Message
De
03/01/2005 17:17:51
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00973941
Message ID:
00973946
Vues:
13
>If I have a string:
>
> "c:\temp\filename.txt"
>
>Has anyone come up with a way of extracting only "filename.txt" with a one-liner?
>
>I know I can use LastIndexOf and SubString but I was just wondering if there was a one liner with Regex or something...

Have you looked at the VFP Toolkit for .NET? This has a BUNCH of VFP functions coded in .NET. So you can use the JustFName, JustPath, JustExt, etc functions just like you do in VFP.
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform