lenaz General User

Joined: 06 May 2009 Posts: 5
|
Posted: Mon May 11, 2009 1:22 am Post subject: General Question about handling Versions... |
|
|
...of OpenOffice.org
Hi!
Our software has to support OOo 2.x as well as OOo 3.x
well... 2.x is no problem ... our customers with OOo 2.x installed are happy...and when they are updating, they update to 3.x, so 2.x won't be a topic anymore ...
but now i want to know... if the software supports OOo 3.0.1 ... can there be problems, wenn a customer installs OOo 3.1 (or later an even more uptodate-version)?
for understanding:
in my webapplication, i am asking which OOo - Version is installed ( it's a database-entry )
at the moment, i handle the version like this:
| Code: |
if (OOoVersion.equals("3.0.1")) { do code for 3.0.1 }
|
now the question is ... should i handle every version separately? (that would be amazing...!)
or can i handle it like this:
| Code: |
if(OOoVersion.startsWith("3")){ do code for 3.x }
|
what do you think...?
greetings
lenaz |
|