RE: preserve in JScript

Date : Wed, 31 May 2006 22:41:35 +0100
To : <XSI(at)Softimage.COM>
From : "kim aldis" <kim(at)aldis.org.uk>
Subject : RE: preserve in JScript
jscript arrays are sparse, which means you don't have to allocate 4 elements
before you use slot 4. You can also use them as hashes:-

var a = new Array();

a[0] = 5;
a[3] = 4;	// ooer, no need to fill 1 and 2 first.

a["poo"] = 23;

logmessage( a[0] + ", " + a[3] + ", " + a["poo"] );

// alternative hash ref.
logmessage( a.poo );




-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of
Juan Brockhaus
Sent: 31 May 2006 14:15
To: 'XSI(at)Softimage.COM'
Subject: RE: preserve in JScript

Hi,

you don't need that (from my experience). in jscript you don't have to
'redim' arrays.
just add new elements to the array, if that is, what you're looking for...

Cheers,

Juan



-----Original Message-----
From: Sascha Robitzki [mailto:s.robitzki(at)trixter.de]
Sent: 31 May 2006 13:20
To: XSI(at)Softimage.COM
Subject: preserve in JScript


Does JScript have something like the preserve keyword VBScript has?
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.