hi jcom experts,
I have problem to get an Item from collection in MS Word

//g_oWordDoc.ActiveDocument.TablesOfContents
var cTablesOfContents = g_oWordDoc.get("TablesOfContents");

now i have cTablesOfContents collection and I need single object:
//g_oWordDoc.ActiveDocument.TablesOfContents(1)
var cTablesOfContent = cTablesOfContents.get(1); - but this does not work
var cTablesOfContent = cTablesOfContents[1]; - this does not work either.
var cTablesOfContent = callmethod(cTablesOfContents,"get", 1); - does not work as well :(

how can I acces objects in collection ???

same problem with
for(...){
   //g_oWordDoc.ActiveDocument.Sections(i).Headers.Count()
   var pHeaders = pSections[i].get("Headers");
}