#21937
Yutaka Emura
Keymaster

Indices change. I recommend using/saving the document object itself to distinguish among others. For instance,

doc = editor.Documents.Item(1);

if you have this “doc” object, you can use this doc for later use.