I have migrated a project from PowerBuilder version don't know to PowerBuilder version 2021. While regenerating one the windows in one of the libraries; I get an error that says: "Mixing array and non-array in assignment statement". Tracing this error in the open event of the window takes me to this line(s):
- parm = message.PowerObjectParm ...
- parm.postevent("some event") and in the "clicked event" of a button I have this parameter used, too:
- parm.triggerevent("some event")
in line one I get this error: "C0070: Mixing array and non-array in assignment statement." line 2 this one: "C0068: Illegal use of array in expression" and line 3 the same as #2: "C0068: Illegal use of array in expression"
Any help would be really appreciated since I'm using a paid library to convert datawindows to excel files(with keeping the format) and now this library is useless.
p.s. parm is a global variable in the open event of the same window with the type of nonvisualobject.
Here is an example of this error
So somewhere in your scripts there is a method expecting an array and it's being sent a non-array (or vice versa) or some other type of assignment error exists.