Application.MajorVersion isn't working

Hello All,

I have the following simple code to label the title bar of my application with the current major/minor version number. This code is in the forms Open() event:

self.title = "MyApplication " + str(Application.MajorVersion) + “.” + str(Application.MinorVersion)

Pretty simple stuff, right? But the Xojo compiler refuses to compile that line of code, instead throwing an error that ‘MajorVersion’ doesn’t exist. I’ve checked for typos, I’ve checked the docs, I’ve used this very line of code a hundred times before in other code. Can anyone spot any issues or know if this is compiler related?

Thanks!
Dave

Try app.MajorVersion instead.

Thanks! That solved the problem. Had forgotten that it was App() and not Application().