Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing Parts of Filename
Message
De
05/03/1999 06:28:07
 
 
À
05/03/1999 01:03:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00191272
Message ID:
00194368
Vues:
21
>Try
>
>myvar = getfile()
>
>right(myvar,len(myvar)-atc('.',myvar)) && displays the extension
>left(myvar,atc('.',myvar)-1) && displays the filename

The functions listed won't work reliably with long file names, which can contain more than one '.' (ie the completely legal file name my.file.name) or contain no '.' (ie myfilename)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform