Wish Ability to access #Library values from code

Sandman

Well-Known Member
Licensed User
As we all know, we can get these values...
B4X:
#VersionCode: 1
#VersionName: 1.0.0
...by doing this...
B4X:
Log(Application.VersionCode)
Log(Application.VersionName)
However, if we're making a library, we're using these also:
B4X:
#LibraryAuthor: Señor Coconut
#LibraryName: libMuzak
#LibraryVersion: 1

It would be nice if we could access those values in the project where we are coding the library. (So, not the project where we are actually using the library.)

The syntax could be something like this:
B4X:
Log(Application.LibraryAuthor)
Log(Application.LibraryName)
Log(Application.LibraryVersion)
 
Last edited:

Sandman

Well-Known Member
Licensed User
It can only be done if you are just using ONE Library in your app. Most probably you are using a lot of libs....
That's true, but I meant in the project where I'm actually coding the library. Not the project where I am using that library.

I didn't think of that distinction, I'll update my original post.
 
Top