Dim d as new cls_dncnnotes type not defined
A classic error!
The error message "Type not defined" typically occurs when the compiler is unable to find the definition of a type (class, struct, or enum) that you're trying to use.
In this case, the error message is dim d as new cls_dncnnotes
, which suggests that the compiler is unable to find the definition of the cls_dncnnotes
class.
Here are a few possible solutions:
- Check the spelling: Make sure that the class name is spelled correctly. It's easy to misspell a class name, especially if it's a long or complex name.
- Check the namespace: If the class is defined in a different namespace, make sure you're importing the correct namespace. You can do this by adding an
Imports
statement at the top of your code file. - Check the project references: If the class is defined in a different project or assembly, make sure you've added a reference to that project or assembly in your current project.
- Check the class definition: Make sure that the
cls_dncnnotes
class is actually defined in your code. If it's a custom class, check that it's defined in a separate code file or module. - Clean and rebuild: Sometimes, the compiler can get stuck in a weird state. Try cleaning and rebuilding your project to see if that resolves the issue.
If none of these solutions work, please provide more context or code snippets, and I'll do my best to help you troubleshoot the issue!