I am developing a console application using VFP9.
At present, I do
...to determine the file extension of the complete application path.
When I am in the debugger, this returns FXP, thus (partial code)
...allows me to print the results to the VFP screen when in the VFP IDE or Debugger. All works as I want it to.
Question: Is this the best way to determine if I am running a program from within the VFP IDE/Debugger, or is there a better way than JUSTEXT(Sys(16))?
FYI, I use;
in the AfterBuild event to make the compiled .exe into a true console .exe
Joe
At present, I do
Code:
ext = JUSTEXT(Sys(16))
...to determine the file extension of the complete application path.
When I am in the debugger, this returns FXP, thus (partial code)
Code:
If ext = "FXP" then
? theRecord
Else
.WriteLine( theRecord )
Endif
...allows me to print the results to the VFP screen when in the VFP IDE or Debugger. All works as I want it to.
Question: Is this the best way to determine if I am running a program from within the VFP IDE/Debugger, or is there a better way than JUSTEXT(Sys(16))?
FYI, I use;
Code:
editbin.exe /nologo /subsystem:console console.exe
Joe