I'm trying to implement (i.e. implement an interface) a class in VB 6, but I'm getting this error: "Compile Error: Bad interface for Implements: Interface contains data fields". So I'm wondering if there are any limitations on which class you can implement? Or if anyone know why I'm getting this specific error, that would be helpful as well.
Let me know if I need to be more clear. Thanks guys.
Dave
Interfaces in VB6 can only include methods, not member variables.
You can simulate a member variable by implementing a property method (with let and get functions).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With