>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