Hi Dragan,
that does it!
Thank you for this little piece of useful code.
Greetings
Hans
>>Hi Marcia,
>>
>>thank your for this quick answer. I'll check that later.
>>
>>Just to clarify: I have somewhere in the .exe a button, which, when clicked, should send a message box, which then says: "This is Version xyz build on xx.xx.xxxx". This information is somewhere in the Project Manager. BTW: I'm using RAS MLC Project Builder v5.0.1, which can read all the required data from the Project Manager. I assume that that information is also somewhere hidden in the .exe-file and might be retrieved from inside the application.
>>
>>In my FPW 2.6 Projects I had some kind of a small dbf-file. In that I stored the version number and the built date with a small program, which I run before building the .exe-file. This small file was included in to project and can easily be read within the exe.
>>
>>I'm looking for something similar and as easy to use, but automatically created by the project manager.
>
>In the project manager, click on build and there's the Version button which gets you another dialog where you can set autoincrement version (which I presume you already somehow do using your project builder).
>
>Here's how I output the version number in my error logger:
>
>N=Astackinfo(aStk)
>** ...some more code
>** ... and then
>IF LOWER(JUSTEXT(aStk[1,2]))="exe"
> AGETFILEVERSION(aa,aStk[1,2])
> \ Build: <<aa[4]>>
> RELEASE aa
>ENDIF