Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Parts of Filename
Message
From
05/03/1999 11:56:09
 
 
To
05/03/1999 11:49:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00191272
Message ID:
00194552
Views:
22
>If this is the case, all you need to do is test for multiple '.', goto te last period and take everything to the left as the filename. If the varialble does not have any '.', then you already have the filename that you are looking for.
>
>If you want, I can write this out for you.
>

I think I might have a clue about how to do this - in fact, the trivial way is to use RAT() rather than AT(), and make sure that a value other than 0 comes back. You need to trap the 0 value obviously for file extensions, and to make certain that you get the full file name.

As George pointed out, all this foolishness is unnecessary under VFP6, where the necessary FoxTools extensions to the language have been incorporated, and work correctly on LFNs with multiple '.'s in them.

>David McInnis
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform