CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2000
    Posts
    67

    User defined data types

    Hello guru's

    I am trying to send a recordset from VB to a com platform, but have strange problems with user defined data types (i'm a beginner in VB..)

    When i try to compile the app. I get the errormessage: "user defined data type not defined" and the compiler marks all of the code i've pasted in here:


    Public Function DoPafSearch( _
    ByVal FullPostCode As String, _
    ByVal BuildingNumOrName As String, _
    Optional ByVal OrganisationName As String = "", _
    Optional ByVal ThoroughfareName As String = "", _
    Optional ByVal PostalTownName As String = "", _
    Optional ByVal CountyName As String = "", _
    Optional ByVal IndividualFamilyName As String = "", _
    Optional ByVal MinSearchQuality As Long = 80, _
    Optional ByVal UsePAFTags As Boolean = True, _
    Optional ByVal MaxDisplay As Long = 50, _
    Optional ByVal OccupantNamesReturnInd As Boolean = False _
    ) As ADOR.Recordset

    Do anyone know how to define this correct?

    K.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: User defined data types

    Make sure that you referenced ADO library.

    dim rs as ADODB.Recordset

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: User defined data types

    I think you should check that both the Client and the Component are referencing the ADOR library.
    HTH


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured