Kiumbe Member Licensed User May 31, 2023 #1 Hello, I want to auto increment version name of the app for easier tracking and maintenance, I came across this Tutorial that has guided me very well to achieve my goal, however, when I read the value of the version from the compiletime.txt file and store the version in a string variable and try to assign the VersionName the new number, the app displays the variable name itself. I do this to assign new version number to the #VersionName: Code: Copy Dim strVersionCode As String #VersionName: Sys- strVersionCode the Output on my app is Sys- strVersionCode instead of for example Sys- 2.0 Where am I going wrong on this? As I cannot also assign the #VersionCode: an int variable, how do I update the #VersionCode: of my app to reflect progressive updates of my app? Thank you Members.
Hello, I want to auto increment version name of the app for easier tracking and maintenance, I came across this Tutorial that has guided me very well to achieve my goal, however, when I read the value of the version from the compiletime.txt file and store the version in a string variable and try to assign the VersionName the new number, the app displays the variable name itself. I do this to assign new version number to the #VersionName: Code: Copy Dim strVersionCode As String #VersionName: Sys- strVersionCode the Output on my app is Sys- strVersionCode instead of for example Sys- 2.0 Where am I going wrong on this? As I cannot also assign the #VersionCode: an int variable, how do I update the #VersionCode: of my app to reflect progressive updates of my app? Thank you Members.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2023 #2 This cannot work. #VersionName is handled by the compiler and its value is used while the compiler generates the AndroidManifest.xml file. Last edited: Jun 2, 2023 Upvote 0
This cannot work. #VersionName is handled by the compiler and its value is used while the compiler generates the AndroidManifest.xml file.
Kiumbe Member Licensed User Jun 2, 2023 #3 Erel said: This cannot work. #VersionName is handled by the compiler and its value is used while the compiler generated AndroidManifest.xml. Click to expand... Thanks Erel for your response, so it means I have to type the #VersionCode and #VersionName manually on the #Region every time I create a new update of my app? such as below: Code: Copy #Region Project Attributes #VersionCode: 1 #VersionName: Sys-1.0 #End Region Is this correct? Thanks again. Upvote 0
Erel said: This cannot work. #VersionName is handled by the compiler and its value is used while the compiler generated AndroidManifest.xml. Click to expand... Thanks Erel for your response, so it means I have to type the #VersionCode and #VersionName manually on the #Region every time I create a new update of my app? such as below: Code: Copy #Region Project Attributes #VersionCode: 1 #VersionName: Sys-1.0 #End Region Is this correct? Thanks again.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2023 #4 Kiumbe said: Is this correct? Click to expand... Yes. Upvote 0
Kiumbe Member Licensed User Jun 2, 2023 #5 Erel said: Yes. Click to expand... Thanks for your help Erel Upvote 0