string2array

tools=string2array=<string>=<array>=<token>

 

Converts a string to an array

if no token is specified a comma is used

you can get the number of the token in the variable "value"

 

 

Example:

 

setvar=mystring=5,4,3,6,3

tools=string2array=<mystring>=myarray=,

setvar=e_count=<value>

meldung=Count:<e_count>, <myarray1> <myarray2> <myarray3>

 

 

dw_1.reset

for=loop=1=<e_count>

  insertrow

  setrow=<loop>

  setitem=myitem=<myarray[loop]>

next

 

 

output: 5 4 3