Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a function in a VB6 program made by another developer which uses two enumerations as parameters. They both come from the same class or module called ADODB. But their definition is lost so the code won't compile. I'm trying to create a module called ADODB and add the two enums to that module and try to run the function. After declaring the two modules and values I try to run the program but vb6 give me a compile time error saying "Invalid outside procedure". It hilights the first element of the first enumeration. I just declared the enums in the newly created module.
Please help!!!
Posted

ADODB seems to be the class from Microsoft for DB access. Did your old dev really define another class with the same name ? If you have the code that uses the enum, shouldn't it be defined on that code, unless it's from an externall DLL, such as a MS one ?
 
Share this answer
 
Comments
obhasha07 5-Jul-11 20:20pm    
It might be. I just fixed this "Invalid outside procedure" error. But still the code won't recognize my module and give the error "User defined type not defined"
Make sure that the ADO is installed and then you can reference it.

Check out this documentation from Microsoft support. Clickey[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900