2.1.8 DestroyPage


Description

The DestroyPage method deletes an existing Origin page.


Syntax

VB: Function DestroyPage(Name As ByVal String ) As Boolean
C++: bool DestroyPage(LPCSTR Name )
C#: bool DestroyPage(string Name )


Parameters

Name
--

Return

Remark

Examples

VBA

Dim oApp As Origin.ApplicationSI
Set oApp = GetObject("", "Origin.ApplicationSI")
Dim name As String, bb As Boolean
name = "Graph1"
bb = oApp.DestroyPage(name)

Python

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)

Version Information

8.0SR2


See Also

CreatePage