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

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

now i have cTablesOfContents collection and I need single object:
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
   var pHeaders = pSections[i].get("Headers");