Android Question How to find correct library?

Discussion in 'Android Questions' started by TrisectDevelopment, Aug 17, 2015.

  1. TrisectDevelopment

    TrisectDevelopment Active Member Licensed 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.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. TrisectDevelopment

    TrisectDevelopment Active Member Licensed 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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Position is not a type from RandomAccessFile. I don't remember any library that declares such a type.
     
  5. TrisectDevelopment

    TrisectDevelopment Active Member Licensed User

    So maybe Position is just a rare example.

    But thanks anyway.
     
  6. RandomCoder

    RandomCoder Well-Known Member Licensed 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?
     
  7. warwound

    warwound Expert Licensed 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.
     
    mangojack likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice