I am trying to migrate an application from powerbuilder 5 to powerbuilder 2017. I have a problem with passing an array to a powerobject and i m not sure how to resolve this. More specifically:
//code to populate la_data with a 2 dimensional array
lpo_data = la_data //here is where the type mismatch error happens
The exact same code worked without a problem in pb5 (the lpo_data powerobject is getting the values of la_data without any problems and in the debugger it appears as a simple two dimensional array) but i get an error in pb2017
Error Number 49.
Error text = Type mismatch in array-to-object conversion at line...
I can't easily change the lpo_data type to "array" or "any" since i ll use lpo_data later on as an argument to a function that needs it to be a powerobject (li_ret = gnv_app.inv_dwcache.of_Register( ls_dddw_id, ls_dddw_name, lpo_data )). Is there any easy solution i m missing or the only way is to change the function that needs the powerobject lpo_data to something that works with an array (i haven't even checked if that is possible yet). Does anyone know when this change to object=array type mismatch happened and if there is any documentation of it?
Thanks in advance.