to iterate through a Contacts object, first you must start a for statement:
code:
for(
then, add the enumerator object as a variable (and the parameters as the Contacts object):
code:
var e = new Enumerator(ChatWnd.Contacts);
loop through the enumeration while it isn't at the end:
code:
!e.atEnd; e.moveNext()
end the for statement and add braces.
code:
){
// some code here (occurs for each item)..
}
then get the Contact Object items by using
code:
e.item();
.
but then also, since you're doing that in the ChatWndReceiveMessage, it has an Origin parameter which has the contact's (or your) name in it (depending on who just sent a message)