June 10, 2008

WinTask - Initializing a String Array

You can initialize each element in a string array with the same value in one line as follows:
Array$() = "value"
And of course you can initialize a string array to all nulls this way:
Array$() = ""
To assign different values to each array element, you could use something like:
SplitIntoArray("v0,v1,v2,v3,v4,v5,v6,v7,v8,v9",Array$(),",")