PDA

Click to See Complete Forum and Search --> : Compiling problem on VB


Sanondh
Nov 4th, 1999, 12:54 PM
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

prestodsi
Nov 4th, 1999, 08:28 PM
Check all your variable definitions, check their spelling and whether their defined type is maintained throughout your code.

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

Justice
Nov 4th, 1999, 09:56 PM
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.