
App running as exe or dev ?
A slightly more elegant solution uses App.ExeName. From the IDE, App.ExeName
returns the name of the VB project. Make sure the project name and the exe
name are different and you've got your indicator.
Lee Weiner
weiner AT fuse DOT net
Quote:
>> Is there a way of telling whether a VB4/5 program is being run from
>> development or as an exe ??
>This isn't the most elegant solution...but this is what I do.
>I always create my app in a directory different from where I put my
>executable. Then I put this line in my program:
>If Instr(App.Path, "DevDir") > 0 then '(This is being run from development)
>Hope this helps.