Page 1 of 1

Assigning a string to an array?

Posted: Tue Jun 03, 2008 10:21 am
by jadiflow
Hi,

I have defined an array (string) of 20 chars. I want to assign a string to the array in one shot, like:

MyArray [] = "This is my string" , or
MyArray [20] = "This is my string" or
MyArray = "This is my string"

Neither syntax works. Is this possible, and what is the correct syntax?

Jan Didden

Re: Assigning a string to an array?

Posted: Tue Jun 03, 2008 10:45 am
by Steve
Use your 3rd syntax inside a "string manipulation" icon. See the attached.

Re: Assigning a string to an array?

Posted: Tue Jun 03, 2008 12:12 pm
by jadiflow
Of course....

Thanks.