I'm making a class for version numbers (Major, Minor, Revision, and Build properties) and I am wondering if there is any "standard"/RFC or something that version numbers follow.
Printable View
I'm making a class for version numbers (Major, Minor, Revision, and Build properties) and I am wondering if there is any "standard"/RFC or something that version numbers follow.
Maybe try searching ISO and ANSI sites for some guidelines or standards in numbering your release versions.
What would be the benefit of using that class? :curious:
Good point as I was thinking that too since the App object already contains that information. I answered on the grounds of what woud be the guidelines of incrementing from a revision, minor or major numbering.
It's not really supposed to be useful.
The App object only has Major, Minor, and Revision and not Build, and is also completely useless in the project I am making...because this won't be for a program's version it will be for a protocol version which is sent along with TCP packets. Versions need to be compared and having a class module that handles this all itself just makes this part of the coding easier.
Edit: I never found an RFC for it on the ISO/ANSI site (way too many results to search through) but just ended up using a Type Integer for Major/Minor/Revision and Build since that is what the App object uses. And I also put an Alpha/Beta thing in there...
I guess I'll just mark this resolved...
If this was .NET then you would have access to the Build very easily. Or even extend the class to add your own properties for beta or whatever.
For VB 6 you could write a wrapper class that encapsulates the App objects 3 properties for this and add your own properties but this will be only for the App as a whole unless you also added properties for each of your classes that you want to version.