Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing Parts of Filename
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00191272
Message ID:
00194395
Vues:
21
>How do I capture the parts of a filename? For example, if the name of a file is image0001.jpg, I want to define lcprefix as "image0001" and lcSuffix as "jpg". I can't find this anywhere in the VFP6 online documentation, which is frustratingly difficult to use.

Hi Rixon,

As you've been told in VFP 5.0 you can use JustStem(), JustPath, ForceExt(), etc. in Foxtools. These functions, as also has been mentioned, have been made part of the language in 6.0. I just wanted to add a word of warning, however, if you're using 5.0 and use Foxtools. Like the ADIR() function, the Foxtools functions have problems with long file names with multiple periods in 5.0. Both ADIR() and the functions work correctly, however, in 6.0.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform