Creating additional libraries

Discussion in 'Questions (Windows Mobile)' started by Nycran, Nov 6, 2007.

  1. Nycran

    Nycran Member Licensed User

    Hi all, just wondering what the correct procedure is for creating a new dll library.

    So far I've created my own test dll in VB.Net, added the dll to my Basic4PPC project, and created an instance of that object in the basic4ppc app start event. No error there.

    However, when trying to get a result from a function in the library, I cannot see the function name in the popup options in the Basic4PPC IDE. Here's my function:

    Public Function getV() As String
    Return Me.v
    End Function

    I've also tried creating a class property, like this:

    Public Readonly Property _V() As String
    Get
    Return Me.v
    End Get
    End Property

    Am I on the right track? How do I return a value from the library?

    Thanks!
    Andrew.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    See this thread for more information about Basic4ppc libraries:
    http://www.basic4ppc.com/forum/showthread.php?t=35

    Functions that start with get or set (lower case letters) will not appear as they are usually helper methods of properties.
    Your second property should work.
     
  3. agraham

    agraham Expert Licensed User

    Either as the return value from a function or as a public property of the class.
     
  4. Nycran

    Nycran Member Licensed User

    Bingo - got it working! Thanks guys.
     
Loading...