Results 1 to 3 of 3

Thread: Compiling problem on VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    Bangkok, Thailand
    Posts
    3

    Post

    For Vb compiling, on component I selected ADO Data COntrol 6.0, Common Dialog Control 6.0, Rich Textbox Control 6.0, Windows Common Controls 6.0 then using Vb application wizard to make application from northwind database, I follow the suggestion on screen till finish. On compiling , he showed compiling error: user-defined type not defined.
    Please solve my probllem for me. On myself, I try to select some possible component but It didn't the right way, he showed the same error.

    Best Regards,
    Sanondh Brahmaphalin

  2. #2
    Junior Member
    Join Date
    Nov 1999
    Location
    Houston, TX - USA
    Posts
    21

    Post

    Check all your variable definitions, check their spelling and whether their defined type is maintained throughout your code.

    ------------------
    Paul Stermann
    DSI-Houston

  3. #3
    New Member
    Join Date
    Nov 1999
    Location
    IL
    Posts
    3

    Post

    In your code you've done 1 of a few different things:

    1. You have a reference to a type that wasn't declared in your code (enable Option Explicit)

    2. You reference a TYPE that wasn't added in the General Declarations of your form or at all in a module.

    If you're using API calls they usually reference a TYPE. You can check which one is missing based upon the compile error, look it up in the API viewer, add it to your code and life is good again.

    If you still get this error, e-mail me the code and I'll check it out.

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