How to read Region Attributes into Strings

rwblinn

Well-Known Member
Licensed User
Longtime User
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
 

rwblinn

Well-Known Member
Licensed User
Longtime User
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
Top