>>>SYS(16) or PROGRAM() and check the extension (I'm not sure if both return the extension).
>>
>>No, this is returning the calling sequence modules.
>Michel,
> Her e is what I use in my ON SHUTDOWN routine, to determine if I am running an EXE or APP and if I am under Developement or Runtime VFP..
>
>IF RIGHT(SYS(16,0),3)="FXP" OR EMPTY(SYS(16,0)) OR VERSION(2) > 0
Thanks, I forgot to use the parameter.