If your real goal is to distinguish when someone's using the runtime vs running in development, you can use version(2). If it returns 0, it's the runtime.
>Hi all:
>
>My client uses an .APP file that I have compiled from a PRG file. I do my testing on the PRG file.
>
>How do I code the following?:
>
>IF this is an APP file &&being used by the client
> QUIT
>ELSE &&testing, I don't want to be thrown out of VFP
> RETURN
>ENDIF
>
>Thanks for the help,
>
>Yossi