Assigning a string to an array?
Posted: Tue Jun 03, 2008 10:21 am
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
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