Getting element from array 2004-03-25 - By Daniel Bachler
Back > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Pretty much in the same kind as my question how to delete an > array element, > how to you explicitely get an element? Any way at all like in > collections?
Array[index] where index is a 0 based integer index (assuming Jscript). E.g. myarray[7] accesses the 8th object, myarray[0] accesses the first one. You can use push, pop and shift, unshift to add and delete objects from the array. Maybe you can use an iterator on an array then you could use it just like any collection, not sure though, I'm not that firm on wsh...
For all array methods: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht ml/js56jslrfjscriptlanguagereference.asp
Daniel
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|