What is it then, if it's not an array?
Every langauge I've ever worked in oChatWnds[oChatWnd.Handle] would be an array.
Would this be acceptable.
jscript code:
var Windows = new Array();
function OnEvent_ChatWndCreated(ChatWnd) {
wnd = {};
wnd.Handle = ChatWnd.Handle;
wnd.bCommand = false;
Windows.push_back(wnd);
}
This would mean you wouldn't have massive gaps but you'd have to loop through the chats.
Going back to one of my first questions, can the value in between the square brackets be a string?