When I run my program a file named comp.log is created in the current directory.
Is it possible to change it. I want it to be created in another directory (for example in my documents folder)
Thanks in advance.
- Code: Select all Expand view RUN
- #include "FiveWin.ch"
function Main()
local cPrg, cError, cResult
cPrg := 'function Test(x,y) ' + CHR(13)+CHR(10)
cPrg += 'local z ' + CHR(13)+CHR(10)
cPrg += ' z := x * y - 2 ' + CHR(13)+CHR(10)
cPrg += 'return z ' + CHR(13)+CHR(10)
cResult := Execute(cPrg, 10, 5)
cError := MemoRead( "comp.log" )
If Empty(cError)
MsgInfo( cResult )
else
MsgInfo( cError )
endif
return nil