Technical Reference > Graphics Builder Automation Interface > Page Functions > PageDelete

PageDelete

Deletes the specified page.

Syntax

PageDelete(Project, Page, Flag)

Project:

The name of the project where the page can be found.

Page:

The name of the page to be deleted.

Flag:

If the flag is set, associated records are deleted.

Return Value

0 (zero) if successful, otherwise an error is returned.

Note: For details on handling return and error values, see Error Handling.

Related Functions

PageNew, PageOpen, PageSaveAs, PageSave

Example

' Deletes the current CitectSCADA graphics page
GraphicsBuilder.PageDelete "Example", "TestPage", True