rwblinn Well-Known Member Licensed User Longtime User May 25, 2013 #1 Dear All, is there a possibility to read Region Attributes into Strings? Something like a getRegionAttribute(Region, Attribute). Example: #Region Project Attributes #ApplicationLabel: ActiLog #VersionCode: 1 #VersionName: 0.5 BETA Build 20130525 Show the Attributes MsgBox(#ApplicationLabel & " - " & #VersionName, "About...") Or as mentioned: MsgBox(getRegionAttribute("Project Attributes", "VersionName", "About...") Or assign to a String Dim Appversion As String = #ApplicationLabel & " - " & #VersionName Thank You, Rob
Dear All, is there a possibility to read Region Attributes into Strings? Something like a getRegionAttribute(Region, Attribute). Example: #Region Project Attributes #ApplicationLabel: ActiLog #VersionCode: 1 #VersionName: 0.5 BETA Build 20130525 Show the Attributes MsgBox(#ApplicationLabel & " - " & #VersionName, "About...") Or as mentioned: MsgBox(getRegionAttribute("Project Attributes", "VersionName", "About...") Or assign to a String Dim Appversion As String = #ApplicationLabel & " - " & #VersionName Thank You, Rob
NJDude Expert Licensed User Longtime User May 25, 2013 #2 You can do that by using the Phone library, especially PackageManager Upvote 0
rwblinn Well-Known Member Licensed User Longtime User May 25, 2013 #3 Read Region Attributes Thanks for the hint. Works fine: Dim pm As PackageManager Dim CPRODUCTNAME As String : CPRODUCTNAME = pm.GetApplicationLabel("b4a.example") Dim CVERSION As String : CVERSION = pm.GetVersionName("b4a.example") Regards, Rob Upvote 0
Read Region Attributes Thanks for the hint. Works fine: Dim pm As PackageManager Dim CPRODUCTNAME As String : CPRODUCTNAME = pm.GetApplicationLabel("b4a.example") Dim CVERSION As String : CVERSION = pm.GetVersionName("b4a.example") Regards, Rob