Indicate the number of items in this collection
VB: Property Get Count As Integer
C++: int Count
C#: int Count
Sub GetNumOfPages() Dim app As Origin.IOApplication Dim nNum As Integer app = New Origin.ApplicationSI nNum = app.PageBases.Count MsgBox("Number of PageBases is " + nNum.ToString()) nNum = app.Pages.Count MsgBox("Number of Pages is " + nNum.ToString()) End Sub
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW app.CreatePage(app.OPT_WORKSHEET) app.CreatePage(app.OPT_GRAPH) app.CreatePage(app.OPT_MATRIX) print(app.PageBases.Count)
8.0SR2