Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Parts of Filename
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00191272
Message ID:
00194395
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform