>Hi Mike.
>Not the best approach but I think that this will help...
>
>#If File(Sys(2004) + "vfp9.exe")
> * Development mode
>#Elif
> * Run time
>#Endif
Hm, this will work only if you compile something at runtime.
My solution is to set a constant. Something like
#DEFINE dlDebugMode = .t.
in a global / general header file
in your main.prg do
#IF dlDebugMode THEN
IF _VFP.STARTMODE#0 THEN
messagebox('debug')
return
ENDIF
ENDIF#
anywhere where you need code at debug time only
#IF dlDebugMode THEN
your debug stuff
#endif
don't miss to compile without debug information!
HTH
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]