Thanks John,
The reason I'm using a loop is to stream line the removal/setting the count of several pages, for example Page 2 through 4. Within the loop I concatenate "Page" with String(i) and set it as the variable "page". For some reason this variable is not playing nicely with the instance manager. I am able to get message boxes when I DO NOT attempt to call the instance manager with the variable to read "Page4", "Page3", "Page2" and so on until the loop is exhausted so I know that I'm concatenating correctly. When I place the instance manager in there with the variable the loop does not continue and breaks. And I know that the loop breaks because if I call the message box above my call to the instance manager I get a message box with "Page4" but nothing after that.
Here is exactly what I used:
var i = 0;
for (i = xfa.host.numPages; i >= 20; i--) {
var myPage = String.concat("Page", String(i));
xfa.host.messageBox(myPage);
_myPage.count = 0;
}
Ian