Converting a string to an integer array

Certified Senior Developer
I have a form that captures user input to include multiple values via a checkbox field. The values are stored in a pv (integer array called pv!dataTypes_int). For example: (4;7;10), which are ids from another CDT used at a later point in the process to display data from the reference table. The integer array is then converted to a string and saved as part of a CDT (i.e., pv!newEula_cdt.dataType). In order to redisplay the values checked on that form, I have to convert the string of numbers to an integer but when I use the tointeger(pv!newEula_cdt.dataType) I get (4710). Is there a way to convert this string back to an integer and retain the semicolons?

OriginalPostID-232073

  Discussion posts and replies are publicly visible