Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
19 crawler(s) on-line.
 163 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 Gunnar:  33 mins ago
 pixie:  52 mins ago
 DiscreetFX:  1 hr 32 mins ago
 DWolfman:  1 hr 41 mins ago
 cncparts:  3 hrs 14 mins ago
 saipaman4366:  4 hrs 1 min ago
 Beajar:  4 hrs 20 mins ago
 Rob:  4 hrs 22 mins ago
 agami:  5 hrs 25 mins ago
 RobertB:  5 hrs 45 mins ago

/  Forum Index
   /  Amiga Development
      /  [AmigaE] version string for Icon Info
Register To Post

PosterThread
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle