All,I cannot set a form caption in code.The subroutine is called from the page onLoad/onSetactive event. But the form caption does not change.Sub getPageNum(pageNum) Dim numPages numPages = 0 Dim mForm Set mForm = ThisEvent.Object.Parent Dim pPage For Each pPage In mForm.Pages numPages = numPages + 1 Next mForm.Caption = Application.Map.EditLayer.Name + " 1 of " + cStr(numPages)End Sub
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.