Forum Discussion
Philip_Baird
13 years agoCommunity Hero
Hi Guruprasad, as C# Script is based on JScript, Arrays are inherently dynamic and you can use the Array::push() method to dynamically increase the Array size as follows:
function test001() {
var x = []; // Declare empty Array
x.push( "abc" ); // Push new item, Array will "dynamically" grow
Log["Message"]( x[ 0 ] ); // Logs abc
}
Hope this helps, regards,
Phil Baird
function test001() {
var x = []; // Declare empty Array
x.push( "abc" ); // Push new item, Array will "dynamically" grow
Log["Message"]( x[ 0 ] ); // Logs abc
}
Hope this helps, regards,
Phil Baird