Android Question How to find correct library?

TrisectDevelopment

Active Member
Licensed User
Longtime User
Lets say I find some code examples on this site and lets say there is a line in the code like this.

Dim pos AS Position

Now the variable pos i in red text because I need to add a library that includes Position.

Is it possible to do something so that I can find out which library to add to my program?

The Position is just an example, I would like to be able to find library's for other types.

Hope someone can help me.
 

TrisectDevelopment

Active Member
Licensed User
Longtime User
Okay I tried to do search for position but the first thread did not help.
Then I clicked the green button on the left "B4A Library" and the first thread was now RandomAccessFile.
I did not check if position is part of RandomAccessFile but I guess it is.

Thanks for your help Erel.
 
Upvote 0

RandomCoder

Well-Known Member
Licensed User
Longtime User
Also be aware that if copying only snippets from the forum then sometimes essential bits can be missing. In your sample is it possible that Position was maybe a Type declared is Process Globals for example?
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Open the .b4a project file in a text editor.
You'll find it contains a list of the required libraries - and one of those libraries will contain the Position object.
 
Upvote 0
Top