Sandman Expert Licensed User Longtime User Jan 23, 2020 #1 I'm creating a b4xlib and try to set this kind of version in the manifest.txt: Code: Copy Version=2.12-2020-01-23-11-31-19 So, basically, during the automated build process of the b4xlib a timestamp is added to the version number. This is not appreciated by B4A: (A somewhat vague error message, by the way - took some time figuring out what the problem was.) While investigating this I found that the version field only allows for <number><dot><number, two figures max>. To make it even more strange, the last number was rounded: This manifest... Code: Copy Version=12.34567890 ...shows as this: Another example, as I tried to understand the limitations: Code: Copy Version=1234567890.1234567890 Shows as: Does anyone know what the actual specification for the Version field is?
I'm creating a b4xlib and try to set this kind of version in the manifest.txt: Code: Copy Version=2.12-2020-01-23-11-31-19 So, basically, during the automated build process of the b4xlib a timestamp is added to the version number. This is not appreciated by B4A: (A somewhat vague error message, by the way - took some time figuring out what the problem was.) While investigating this I found that the version field only allows for <number><dot><number, two figures max>. To make it even more strange, the last number was rounded: This manifest... Code: Copy Version=12.34567890 ...shows as this: Another example, as I tried to understand the limitations: Code: Copy Version=1234567890.1234567890 Shows as: Does anyone know what the actual specification for the Version field is?
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2020 #2 The version should be a valid number. Upvote 0
Sandman Expert Licensed User Longtime User Jan 23, 2020 #3 And what is the definition of "a valid number"? Because the ones below apparently aren't. Code: Copy Version=12.34567890 Code: Copy Version=1234567890.1234567890 Upvote 0
And what is the definition of "a valid number"? Because the ones below apparently aren't. Code: Copy Version=12.34567890 Code: Copy Version=1234567890.1234567890
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2020 #4 These are strange but valid numbers. The IDE formats the numbers (you should never show unformatted numbers) with two decimal points. Upvote 0
These are strange but valid numbers. The IDE formats the numbers (you should never show unformatted numbers) with two decimal points.
Sandman Expert Licensed User Longtime User Jan 23, 2020 #5 Looking closer it seems to be <int rounded to 7 figures><dot><int rounded to 2 figures>. Can that be correct? Upvote 0
Looking closer it seems to be <int rounded to 7 figures><dot><int rounded to 2 figures>. Can that be correct?
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2020 #6 The number is a 4 byte floating point number. It will be less accurate with very large numbers. Upvote 0
Sandman Expert Licensed User Longtime User Jan 23, 2020 #7 Understood, thanks. I'll scrap the idea to add a timestamp and just go with an increasing version number instead. Upvote 0
Understood, thanks. I'll scrap the idea to add a timestamp and just go with an increasing version number instead.