TrisectDevelopment Active Member Licensed User Longtime User Aug 17, 2015 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2015 #2 You can search for the type name. For example: https://www.b4x.com/search?query=Location The first link will take you to the library documentation (if it is available). Upvote 0
You can search for the type name. For example: https://www.b4x.com/search?query=Location The first link will take you to the library documentation (if it is available).
TrisectDevelopment Active Member Licensed User Longtime User Aug 17, 2015 #3 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
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.
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2015 #4 Position is not a type from RandomAccessFile. I don't remember any library that declares such a type. Upvote 0
Position is not a type from RandomAccessFile. I don't remember any library that declares such a type.
TrisectDevelopment Active Member Licensed User Longtime User Aug 17, 2015 #5 So maybe Position is just a rare example. But thanks anyway. Upvote 0
RandomCoder Well-Known Member Licensed User Longtime User Aug 17, 2015 #6 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
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?
warwound Expert Licensed User Longtime User Aug 17, 2015 #7 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
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.