Show app version in app window?

Greetings - I would like to show the app version that is in the Build Settings in the default window of the app (and in the About … menu response). When I search the Help for “Version” it gives me

Var version As String
version = PropertyValue("App.MajorVersion") + "." + _
  PropertyValue("App.MinorVersion") + "." + _
  PropertyValue("App.BugVersion") + " (" + _
  PropertyValue("App.NonReleaseVersion") + ")"

But a debug run tells me that “Property Value” is unknown. So, I guess that is part of the build script process. How do I get it to show as some run-time text? Or is it not possible?

I did check the forum archive and I mostly get things about the IDE version.

Thanks
Jim Wagner
Oregon Research Electronics

I’m not sure what PropertyValue is. Try using this instead:

version = app.MajorVersion.ToString + "." + _
2 Likes

That section of the docs has to do with IDE scripting. For simply accessing the App’s version info at runtime you would do what Indy G suggests - convert whichever App properties you want to display to a string.

Thanks! PropertyValue appears as the first response to a search for “Version” in the Help. There is an obscure reference at the top of the help page to “build automation >> IDE scripting >> project commands” which I missed due to the microscopic font size.

Jim