ambiguous problem

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I had new a usercontrol named 'stdlabel', in dtsclass.prj which will be
complied as dtsclass.dll,
Now, i new a based form which placed in the project dtsclass.prj also,
As I complie the project, I got such error, Does anyone know what it is ??
thanks
'stdlabel' is ambiguous in the namesspace'dtsclass'
 
Hi Agnes,

That usually means that you have two variables with the same name in the
same scope. To resolve this you need to use the namespaces for the objects.
For example: UserControlNamespace.stdlabel will refer specifically to the
stdlabel in the user control. Do you have another object or variable named
stdlabel in the dtsclass.prj? That would probably be causing the error.
Good luck! Ken.
 
Back
Top