Android Question #VersionDate possible ?

AnandGupta

Expert
Licensed User
Longtime User
I presently use as below,

#Region Project Attributes
#ApplicationLabel: B4XGoodies Check
#VersionCode: 1
#VersionName: ver. 1.001 dtd. 28 Oct 2019
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
As you can see, I have both version number and date in one #ver..

Can I define a new #VersionDate ? so that I can have,

#Region Project Attributes
#ApplicationLabel: B4XGoodies Check
#VersionCode: 1
#VersionName: 1.001
#VersionDate: 28 Oct 2019
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
and use as
lblVersion.Text = "ver. " & Application.VersionName & " dtd. " & Application.VersionDate.

This will make my code more readable and quickly updatable for next version and date.

This I say from my Clipper knowledge of #define, which we can use for this type of purpose, but I do not know if similar is possible in B4X or Java.

Regards,

Anand
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…