Wish Ability to access #Library values from code

Sandman

Expert
Licensed User
Longtime 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:

DonManfred

Expert
Licensed User
Longtime User
It would be nice
It can only be done if you are just using ONE Library in your app. Most probably you are using a lot of libs....
 

Sandman

Expert
Licensed User
Longtime 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