Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a bug with JUSTEXT() 255 char limit?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00905719
Message ID:
00905722
Views:
8
>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" ) && returns ".txt" ok
>? JUSTEXT( REPLICATE("X",256) + ".TXT" ) && gives  invalid path name
>
>
>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.

Jos,

I'd say it's a Fox limitation. I'd be tempted to say it's a Windows one since the current value of MAX_PATH is 260. However, because of other similar limitations using 255, I'm leaning to it being a Fox problem.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform