Products Resources Support About Us

PyCallFunction returning a dynamic array


#1

Greetings All, I am trying to get a Python function called from a UV basic program to be able to return a dynamic array and have the UV basic program operate on the returned dynamic array.

I create a Python u2py.DynArray and add elements. Then it convert it to a string ā€“ str(myDynArray). However the calling program sees the string but does NOT recognize the UV delimiters. A DCOUNT yeilds a value of one when there is more than one field in the dynamic array.

I am running this in a NLS enabled UV install.

Any help would be most appreciated.


#2

David,

Before starting your UniVerse session, that is running the basic program, try setting the environment variable.

PYTHONIOENCODING=utf-8

Mike


#3

Michael, Iā€™m am having the system admins affect your recommendation. Will advise when completed and tested again. Thx.