Quartz Composer JavaScript Reference © Cybero Designs  

length

TypeProperty (R / W)
FormatObject = sequence number of elements. Length
Commentary
Returns number of array elements. The value of the length property is an integer with a positive sign and a value less than 2 to the 32 power (232).
Sample code - QC 2 JavaScript
myAry1 = new Array (12,34, "AB", "CD");
n = myAry1.length;
outputs [0] = n;
Sample code - QC 3 JavaScript
var myArrayB = new Array(12,34,"AB","CD");
var outputArray = new Array();
var n = myArrayB.length;
function (__string outputArray) main ()
{ var result = new Object();
result.outputArray = n.toString();
return result; }



Return to the Start Page