PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: GordDavey on January 22, 2021, 01:24:12 PM

Title: Error 41 in _winproc.dsp
Post by: GordDavey on January 22, 2021, 01:24:12 PM
In PxPlus 17.10, I am getting an error 41 in _winproc.dsp, line 3826

Line is:
3826 if _OBJ_LISTBOX_TYPE$="L" then let n=1; if _OBJ_EXTENSION$<>"" then let n=num(_OBJ_EXTENSION$,1) end_if ; if pos("RowHeight="=_OBJ_PROPS$)=0 then if pos("M"=_OBJ_QRY_ATTR$) then let ID'rowheight=ID'rowheight*n else let ID'LinesPerRow=n

Line should be:
3826 if _OBJ_LISTBOX_TYPE$="L" then let n=1; if _OBJ_EXTENSION$<>"" then let n=max(1,num(_OBJ_EXTENSION$,1)) end_if ; if pos("RowHeight="=_OBJ_PROPS$)=0 then if pos("M"=_OBJ_QRY_ATTR$) then let ID'rowheight=ID'rowheight*n else let ID'LinesPerRow=n

An older panel the _OBJ_EXTENSION$ was = "0" and it would cause n=0 in this line, which would lead to an error message when the panel was first drawn. Wrapping it with a MAX(1,num(_OBJ_EXTENSION$,1)) resolves the issue.

Gord.
Title: Re: Error 41 in _winproc.dsp
Post by: Len Vassos on January 25, 2021, 08:48:40 AM
Thanks for the information Gord.
Title: Re: Error 41 in _winproc.dsp
Post by: Jane Raymond on January 25, 2021, 09:05:56 AM
Gord,
This issue has been reported previously and fixed. The update is slated for the next release.