Poster | Thread |
r-tea
| |
[AmigaE] version string for Icon Info Posted on 13-Nov-2016 0:55:32
| | [ #1 ] |
|
|
|
Regular Member |
Joined: 21-Nov-2004 Posts: 315
From: Zdzieszowice, Poland | | |
|
| Recently I digged out my old project made with AmigaE and MUI. I want to join few strings into one and then use it as a version string. The one which is valuable for the "version" command.
I do like this:
Quote:
DEF information[60]:STRING
...
StrCopy(wersja,'0.4.11 beta ') StrCopy(data,'13.11.2016')
StrCopy(information,'$VER: Project ') StrAdd(information,wersja) StrAdd(information,data) ...
MUIA_Application_Version, information,
...
|
... but when I clic the "Version" button within Info window (MorphOS) I got only the first part of the string - "Project ". Why?
_________________ I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately. |
|
Status: Offline |
|
|
Mazze
| |
Re: [AmigaE] version string for Icon Info Posted on 13-Nov-2016 13:10:47
| | [ #2 ] |
|
|
|
AROS Core Developer |
Joined: 3-Aug-2013 Posts: 42
From: Unknown | | |
|
| @r-tea
A valid version string would look like this: $VER: Project 0.4 (13.11.2016)
_________________ AROS - Make code not war |
|
Status: Offline |
|
|
geit
| |
Re: [AmigaE] version string for Icon Info Posted on 13-Nov-2016 14:55:28
| | [ #3 ] |
|
|
|
Regular Member |
Joined: 20-May-2006 Posts: 102
From: Germany | | |
|
| @r-tea
You mixed "runtime data" with "static data".
You need a static string as version string. The version command as well as Ambients information window will not run your binary. Both just scan for "$VER" and parse the rest.
In your case the entire version string is "$VER: Project", because there is no version in the very same string.
You can use a tool like FileX and scan the file for your self. In other words you cannot dynamically build a version string, but you need some
A = "$VER: Project 1.1 (13.11.2016)"
line in code.
|
|
Status: Offline |
|
|
r-tea
| |
Re: [AmigaE] version string for Icon Info Posted on 13-Nov-2016 23:31:51
| | [ #4 ] |
|
|
|
Regular Member |
Joined: 21-Nov-2004 Posts: 315
From: Zdzieszowice, Poland | | |
|
| @geit
Yeah, you're right. Now I got it. Then I need to pass the whole "$VER: Project 1.1 (13.11.2016)" as a static variavle and then cut the "$VER: " for my "About" window purposes. This is the way out I can see. Thanks a lot
_________________ I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately. |
|
Status: Offline |
|
|