This is a sample (try to select text.txt):
The problem seems to be that the memory allocated for the selected path+filename is limited to 128 bytes while the maximum length allowed by the file system is 256.
EMG
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL cDir := REPLICATE( "X", 128 )
LMKDIR( cDir )
MEMOWRIT( cDir + "\" + "test.txt", "This is a test" )
? CGETFILE32( "All files (*.*)|*.*", "Select a file", , CURDRIVE() + ":\" + CURDIR() + "\" + cDir )
RETURN NILThe problem seems to be that the memory allocated for the selected path+filename is limited to 128 bytes while the maximum length allowed by the file system is 256.
EMG