DC_PopFile
Posted: Fri Dec 14, 2012 10:23 am
Hello,
i have a Problem with dc_popfile (up to build 258)
This work as expected
cNewFile := DC_PopFile(,,cFileExt,mess67,aFilters)
But if i use
cNewFile := DC_PopFile("help.txt",,cFileExt,mess67,aFilters)
and select a file e.g. "Z:\temp\help.txt
dc_popfile return Z:\temp\
The problem is at line 1647 in _dcfunct.prg
cNewFile is truncated to the length of the original cFilename
Also if i call dc_popfile with a starting file name and a default directory
it does not work as expected.
At Line 1609 it should be
i have a Problem with dc_popfile (up to build 258)
This work as expected
cNewFile := DC_PopFile(,,cFileExt,mess67,aFilters)
But if i use
cNewFile := DC_PopFile("help.txt",,cFileExt,mess67,aFilters)
and select a file e.g. "Z:\temp\help.txt
dc_popfile return Z:\temp\
The problem is at line 1647 in _dcfunct.prg
cNewFile is truncated to the length of the original cFilename
Also if i call dc_popfile with a starting file name and a default directory
it does not work as expected.
At Line 1609 it should be
Code: Select all
IF Empty(cFileName) .AND. (!Empty(cDirectory) .OR. !Empty(cWildCard))
IF !Empty(cDirectory) .AND. Right(cDirectory,1) # '\'
cDirectory += '\'
ENDIF
cFileName := cDirectory + cWildCard
ELSE
IF !Empty(cDirectory) .AND. Right(cDirectory,1) # '\'
cDirectory += '\'
ENDIF
cFileName := cDirectory + cFileName
ENDIF