View Full Version : how to create arrays
3cube
01-05-2006, 04:53 AM
hi any body know how to create arrays in Laszlo in multiple types like string arrays , integer arrays can u give me any example codes on this
thanks
Jai..
dionatan
01-05-2006, 12:11 PM
the syntax for using array´s in laszlo is equivalent that used in javascript.
new Array(int) creates a new array with int length
new Array("dionatan") creates a new array with 1 position and "dionatan" ant [0] index.
new Array(0, 0) or new Array("dionatan","almeida")
create array´s with 2 length
http://www.openlaszlo.org/docs/guide/ecmascript-and-lzx.html#ecmascript-and-lzx.differences
3cube
01-06-2006, 12:04 AM
Oh Thans 4 ur advice
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.