How to remove object from arrays 2004-03-25 - By kim aldis
Back Hi Bernard,
The docs are very specific, it's just that jscrtipt isn't a Softimage tool, it's a Microsoft tool so you need to look in the MS scripting docs, download from here:-
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
In the meantime, no there isn't a way to remove an element, although you can pop items off the top of an array using 'myArray.pop';
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Sent: 25 March 2004 08:55 > To: XSI@(protected) > Subject: [Script-newbie] How to remove object from arrays > > Hello, > > I just started fooling around with arrays, and have a basic > questions (many will come in fact, please be patient). Docs > are not very descriptive about these topics. > > Can you explicitely remove an element from an array, pretty > much like you can do with a collection item using the remove methods? > So far the only way I could find was to put the element at > the beginning or the end and then use a method to remove that > element, but is there anything direct and explicit? > > > Thanks > Bernard > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|