I have a function to close any open pages (in my application) by checking whether any pages r open (like tabs in excel) and closing them, but i get an error when i run a script at this line
iPgCnt = App.Components.ApArea.View.Page.GetPageCount ()
Window '[PageList]#1' was not found
i have several script files written by a different person and i have to debug them, since i am new to the application and also silk i am finding such petty errors throwing up and am not ablt to move forward. pls help.
Not being able to find an object is not a petty error: it points to something pretty seriously amiss.
If you use the Identifier recorder and point at the PageList object, what's it identified as?
Seems like the class of the PageList object may have changed or maybe the object moved a layer?
A concerned Borland customer, a fly in the ointment, a wrench in the works.