Does anyone know how to detect if running code is being run from within the IDE or from an exe.
I need to load a prefs file, currently using
Code: Select all
Global CurrentDirectory.s = GetPathPart(ProgramFilename())
Code: Select all
If RunWithinIDE
Global CurrentDirectory.s = GetCurrentDirectory()
ELSE
Global CurrentDirectory.s = GetPathPart(ProgramFilename())
EndIf
Thank you