Home > database >  Compiler: Warnings Warning C0210: Event 'dwndropdown' always be overloaded.
Compiler: Warnings Warning C0210: Event 'dwndropdown' always be overloaded.

Time:09-19

Error code a window prompts:
-- -- -- -- -- -- -- -- -- -- the Compiler: Warnings (9:06:33)
Custom_template. PBL (w_onetab_ancestor). Dw_2. Dwndropdown. 1: Warning C0210: Event 'dwndropdown' always be overloaded.

Dw_2. Dwndropdown. 1 event code is as follows:

Datawindowchild ldwc_child
Long ll_width ll_widthTotal, ll_scrollbarwidth ll_PercentWidth, ll_MaxWidth
String ls_scrollbarwith, ls_columnname

Ls_columnname=this. Getcolumnname ()
If this getchild (ls_columnname ldwc_child)=1 then
Enclosing the modify (ls_columnname + "DDDW. PercentWidth=100")
Ls_scrollbarwith=ldwc_child. The describe (" DataWindow. HorizontalScrollMaximum ")
Ll_scrollbarwidth=long (ls_scrollbarwith)
Ll_width=long (enclosing the describe (ls_columnname + "width"))
Ll_widthTotal=ll_scrollbarwidth + ll_width

Declare local environment variable environment lenv_env//
GetEnvironment (lenv_env)
//remove the screen width and multiplied by 80%
Ll_MaxWidth=PixelsToUnits (lenv_env ScreenWidth XPixelsToUnits! ) * 0.8
If ll_widthTotal & gt; Ll_MaxWidth then
//beyond limit width are given for the maximum width
Ll_widthTotal=ll_MaxWidth
End the if

Ll_PercentWidth=(ll_widthTotal/ll_width) * 100
If ll_PercentWidth & gt; Then 100
//if the percentage is more than 100 percentage changes, otherwise don't modify the
Enclosing the modify (ls_columnname + "DDDW. PercentWidth=" + string (ll_PercentWidth))
End the if
End the if

How to solve?
Environmental PB12.5 + SQL SERVER 2008

CodePudding user response:

Is a compile-time error

CodePudding user response:

Warning is a warning, not an error, can need not ignore
The Event 'dwndropdown' always be overloaded.
Events' dwndropdown 'cannot be overloaded,

CodePudding user response:

refer to the second floor zhangyangziwo response:
warning is a warning, not wrong, don't have to listen to
The Event 'dwndropdown' always be overloaded.
Events' dwndropdown 'cannot be overloaded,


The Event 'dwndropdown' always be overloaded. If you want to solve, what should I do?

CodePudding user response:

Try to compile this code comments, if no problem, check the code, see the specific where there is a problem,

CodePudding user response:

Tip can't overload, means that in the event have on the parent class; Can't overloading on a subclass, that is to say on the subclass rewrite this event,

CodePudding user response:

My program also have this problem, draw lessons from 4th floor to
The statement notes, compile again, no alarm,
Return statement, compile again, no alarm

Is really amazing solution
  • Related