The DestroyPage method deletes an existing Origin page.
VB: Function DestroyPage(Name As ByVal String ) As Boolean
C++: bool DestroyPage(LPCSTR Name )
C#: bool DestroyPage(string Name )
Dim oApp As Origin.ApplicationSI Set oApp = GetObject("", "Origin.ApplicationSI") Dim name As String, bb As Boolean name = "Graph1" bb = oApp.DestroyPage(name)
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW grPageName = app.CreatePage(app.OPT_GRAPH) app.CreatePage(app.OPT_WORKSHEET) app.DestroyPage(grPageName)
8.0SR2
CreatePage