i use the following:
- Code: Select all Expand view RUN
#define DIR_LEIST "\My Documents\FvwMobil\Leistung\"
#define GID "3C0019"
ExpStr:="Blablabla"
f:=DIR_LEIST+GID+"A"+alltrim(auftrag->aufnum)+"_"+nr+".txt"
memowrite(f,ExpStr)
and this works very well. Why does the following not work ?
(i must get the file without the addional chr of memowrite)
It always end in "Error creating".
- Code: Select all Expand view RUN
nH:=FCreate( f , 0 )
if nH>0
n:=FWrite(nH,ExpStr)
if n=0
MsgInfo("Error writing to "+f)
else
retw:=.T.
endif
FClose(nH)
else
MsgInfo("Error creating "+f)
endif