PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Error 41 in _winproc.dsp  (Read 1095 times)

GordDavey

  • Member
  • **
  • Posts: 9
    • View Profile
Error 41 in _winproc.dsp
« 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.
Gord Davey <gord.davey@Avexware.com>
President - Avexware Corp.
Tel: +1 (519) 835-4322

Len Vassos

  • Administrator
  • Gold Member
  • *****
  • Posts: 94
    • View Profile
Re: Error 41 in _winproc.dsp
« Reply #1 on: January 25, 2021, 08:48:40 AM »
Thanks for the information Gord.
PVX Plus Technologies, Ltd.

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: Error 41 in _winproc.dsp
« Reply #2 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.
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.