On winxp pro sp2 powerpro 4.7c I disable powerpro error dialogs with 
exec.onerror("clear none"), but when I run a script that tries to access a 
non-existent item of a CL, I still get an error dialog. The code below is 
fairly dense (sorry) and it's included just to show where the error occurs 
(lines marked with ****)

The error dialog that I get says:
  cannot find id xname for list MyConfig
  error occurred near line 112 of script MyConfig:
    hcl.getlabel("x"++key)
which is correct, since there is no "xname" id in my CL. But the point is 
that I shouldn't get an error dialog in the first place.

It looks to me like a bug in exec.onerror, unless I overlooked something.

local sCL=scriptname
configure.importcl(scriptfolder++?"\"++sCL++"Dialog.ini")
static hcl=cl.get(sCL)
local s=vars.restore_var("_conf_", "confname", 1)

  local _onerror=onerrorsetting
  exec.onerror("clear none")
  map.restart(_conf_)
  for (1)
    key = _conf_.getnext
    if (_conf_.eof)
      break
    s=hcl.getlabel("x"++key)   **** line 112
    s=["(?#g)_conf_"]=_conf_[key]
    hcl.setlabel("x"++key,s)   ****
  endfor
  exec.onerror(_onerror)


Reply via email to