Daniel Dehennin <daniel.dehen...@ac-caen.fr> writes:

> Well, I need to make some tests, but with:
> var hostAttributes = new Array();
> hostAttributes.name = "hostname";
> hostAttributes.groups = "somegroup";
>
> You can not know if the array is empty or not because these attributes
> does not modify hostAttributes.length[1].
>
> I use an Scriptint.Dictionary because I needed the .count to test for
> null <host />.
>
> I'll give a try to {}.

Ok, "{}" is the same as new Object();

var hostAttributes = new Object();
is equivalent to
var hostAttributes = {};

So, no .length attribute, I'm stuck with Scripting.Dictionary or I need
to define some hash_length() function to loop over all "attributes" and
count them.

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne

Attachment: pgpyScowXmUTr.pgp
Description: PGP signature

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to