I got these warnings:
warning XS9043: 'Font' is ambiguous. Could be NamedType 'System.Drawing.Font' or NamedType 'VO.Font'. Using the first one.( For Font.)
warning XS9043: 'Control' is ambiguous. Could be NamedType 'System.Windows.Forms.Control' or NamedType 'VO.Control'. Using the first one. (For TextBoxKeyUp)
I understand the meaning of warnings but what should I do to avoid these warnings.
Zeljko
warning XS9043
warning XS9043
Zeljko,
Apparently you are mixing VO UI and Windows Forms UI.
To prevent the error you can use fully qualified typenames:
or
Alternatively you also can set an alias:
and then use this alias to specify
Robert
Apparently you are mixing VO UI and Windows Forms UI.
To prevent the error you can use fully qualified typenames:
Code: Select all
VO.Control
Code: Select all
System.Windows.Forms.Control
Code: Select all
USING SWF := System.Windows.Forms
Code: Select all
SWF.Control
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
warning XS9043
I use winforms in VO dialect.
Changing Control to System.Windows.Forms.Control // (SELF:SelectNextControl((System.Windows.Forms.Control)sender, TRUE, TRUE, TRUE, TRUE )
and Font to System.Drawing.Font // oFont := System.Drawing.Font{cFontName,9.5,FontStyle.Regular}
problem solved.
Thanks Robert.
Zeljko
Changing Control to System.Windows.Forms.Control // (SELF:SelectNextControl((System.Windows.Forms.Control)sender, TRUE, TRUE, TRUE, TRUE )
and Font to System.Drawing.Font // oFont := System.Drawing.Font{cFontName,9.5,FontStyle.Regular}
problem solved.
Thanks Robert.
Zeljko
warning XS9043
HI Zeljko,
The error message tells us that you have a reference to the library VOGUIClasses in your project. This library is used for creating "VO-style" windows and controls. If you do not need that and you are only using WinForms forms and controls, then you can remove this reference and then there will not be any such conflict anymore.
The error message tells us that you have a reference to the library VOGUIClasses in your project. This library is used for creating "VO-style" windows and controls. If you do not need that and you are only using WinForms forms and controls, then you can remove this reference and then there will not be any such conflict anymore.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
warning XS9043
Hi Chris,
when I remove reference to the library VOGUIClasses, then I get error when I call ReportPro classes.
Zeljko
when I remove reference to the library VOGUIClasses, then I get error when I call ReportPro classes.
Zeljko
warning XS9043
Hi Zeljko,
Ah, OK, ReportPro uses the VOGUI classes, so that's why you needed them, understood!
Ah, OK, ReportPro uses the VOGUI classes, so that's why you needed them, understood!
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu