SYS(16, 0)Using that will give you the name and path of the currently executing application. It only works when run from an exe, so I usually do it like this:
*JCJB* Get the Build Number from the exe. IF AGETFILEVERSION(laVer, SYS(16, 0)) > 4 this.TMcExeVersion = laVer[4] ELSE this.TMcExeVersion = 'In Development' ENDIFHTH,