Diadem Software

Starting a Micro-ISV company from scratch…Oh My!

Diadem Software header image 2

Subversion Build Numbers in Realbasic

January 8th, 2008 · 1 Comment

I wanted to add my build number from Subversion to my about window. Pretty simple by adding this code:

svnCode1.jpg

It works but puts too much info like:

aboutBuild.jpg

I want to ignore the “M”, the colon and the number to the left of the colon. Getting rid of the “M” was easy:

stripM.jpg

I would do the same for the colon. But the number to the left of the colon changes. After a suggestion on the Real Software forums I added this:

stripLeftNumber.jpg

Now I just see the build number and nothing else. Of course this will only work on your local copy. In order to permanently hard code it in I would need to create an IDE script to change the NonReleaseVersion number. So I did the following:

svnIDEscript.jpg

Then just add your build settings the the bottom of this.

So there you have it!

Tags: Realbasic · Subversion

1 response so far ↓

  • 1 admin // Jan 9, 2008 at 10:37 am

    Wow, Wordpress has been a royal pain in the butt with line breaks all of a sudden. I changed the theme hoping to fix it but no go. At least I can do them in HTML now which is probably easier.

Leave a Comment