>Is there a way to determine if I'm running an EXE or PRG in code ?
>I'm trying to find a way for the developers to continue running the PRG, with some custom code inserted, and no custom code when the EXE is run.
Use VERSION() Function.
IF VERSION(2)==0
MESSAGEBOX("Running at RunTime")
ELSE
MESSAGEBOX("Developmnet")
ENDIF