I can't set an Array inputs of script
Posted: 27 Mar 2013, 07:17
I create a string array for a script input and I set a value to the variable, which cause a syntax error.
For example, the input variable is called "Name",I initialize like
which complied well.But when I operate the array variable,just like
it will pop syntax error that said a get method is lacked.
However I define a string array in script, it works well.
is it a bug ?
For example, the input variable is called "Name",I initialize like
Code: Select all
Name = new string[2] {"A","B"};
Code: Select all
int len = Name.Length;
string name = Name[0];
However I define a string array in script, it works well.
Code: Select all
string[] NameArray = new string[2]{"A"."B"};
int len = NameArray.Length;
string name = NameArray[0];