Quote:
> You can attach them to an object - either put it in the constructor, or in
> the prototype:
Only 50% correct, I'm afraid Mike ;-)
Quote:
> function AnObject()
> {
> this.logon = "username";
> this.password = "password";
> }
These are not "static" - they are instance variables. There's no _real_
equivalent to 'static' in JScript, but adding things to the prototype is the
best you can do:
Quote:
> AnObject.prototype.logon = "username";
> AnObject.prototype.password = "password";
This works fine.
Anyway, I wonder... why not just make them global variables?
Peter
--
Peter J. Torr - Microsoft Windows Script Program Manager
Please do not e-mail me with questions - post them to this
newsgroup instead. Thankyou!