-- -- -- -- -- -- -- -- -- -- 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 errorCodePudding user response:
Warning is a warning, not an error, can need not ignoreThe Event 'dwndropdown' always be overloaded.
Events' dwndropdown 'cannot be overloaded,
CodePudding user response: