Hi Bruce,
Amazing; I could never have figured that out. I created a floating field called "SectionNumAuto" at each position where I need the number, and added your script to the "calculate" event for each instance. The script works, except that on the second page and subsequent pages, the first heading on each page has an "@" for the number, and then numbering starts again at "A". I tried adding "form1" and "parent" in front of the "parent" property in the script, but it didn't work. I also tried the changes below, and just couldn't get it to work:
var visibleIndex = 0;
var hCount = parent.SectionNumAuto.classIndex
for (var i = 0; i < hCount.value; i++) {
var section = parent.classAll.item(i);
if (section.presence == "visible") {
visibleIndex++;
}
}
Thanks for the help, as always.