>Not sure if this is known or not but it appears that the JUSTEXT(), JUSTFNAME(), JUSTPATH(), JUSTSTEM() functions cannot handle a first parameter string of greater than 255 chars for the file path + name portion.
>
>
>? JUSTEXT( REPLICATE("X",255) + ".TXT" )
>? JUSTEXT( REPLICATE("X",256) + ".TXT" )
>
>
>Or perhaps Windows has a limit on file name size? I have found URL's longer than this with a file name at the end and thats how I came across this when trying to parse the file name/extention.
One more note, if you use
lcfile = REPLICATE('x', 256)
lcfile = FORCEEXT(lcfile, 'txt')
? JUSTEXT(lcfile)
George
Ubi caritas et amor, deus ibi est