quote:
Originally posted by SuNcO
Ehmm.. i think you can click on Debug (ComboBox) and click on "Clean debug window" option
Yes you can, for the standalone debug window. Vikke's suggestion is about the debug window in the script editor itself.
------------------------------------------------------------
[OFF TOPIC]
quote:
Originally posted by SuNcO
Btw.. im wondering why can't do this..
function OnEvent_ChatWndCreated(ChatWnd) {
var Contacts = ChatWnd.Contacts;
for (i = 0; i < Contacts.Count(); i ++) {
contacto = Contacts[i ];
Debug.Trace(contacto.Email);
}
}
I think is much easier then Enumerator
1) ChatWnd.Contacts isn't an array. It is an enumeration object.
2) Enumerations is equally easy and long as your code to program.
3) Enumerations are much more safer for stuff like that. In fact, your code will not show all contacts if a contact was added during the for...loop. The same problem will happen when you are actually manipulating the items and some item gets deleted from the list. In that case your i value will be bigger than the value of Contacts.Count resulting in an error and failure of the script.
4) In short: avoid using arrays for stuff like this.
[/OFF TOPIC]