Multiple values in one field

Hello,

We just noticed that you can put a string field on the form of type Checkbox and link it to a valuelist with multiple values
What we see is that the dataprovider contains the ID-values separated by some character
What is this for a character and how can I use this string in script to access all these values?
Can it be converted to an array?

Martin

Hi Martin,

martinh:
What is this for a character

This is a new line character.

martinh:
Can it be converted to an array?

Yes, Use the split() method of Array to do the same.

Hope it helps.

How do you use a new line character in split funtion:

something like:

string.split(char(10)) or string.split(0x0a)

But both do not work …

Try with string.split(ā€œ\nā€)

Yes perfect, that works!