[wpkg-users] wpkg.js TODO list

Daniel Dehennin daniel.dehennin at ac-caen.fr
Mon May 17 14:16:30 CEST 2010


Daniel Dehennin <daniel.dehennin at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20100517/7ea363ef/attachment-0001.sig>


More information about the wpkg-users mailing list