Page Commands; Close Page - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Page Commands

6-2
Page Commands
6-2-1

Close Page

Note:
Note:
54
Display Page
Syntax
display ("pagename")
or
display ("pagename", X, Y)
Remarks
Argument
Description
pagename
This is the name of the page for display, based on its
filename without the file extension, e.g. the pagename for
CAR.PAG is simply 'CAR'.
Typical Examples
display ("CAR")
The page 'CAR.PAG' is displayed.
textpoint = "CAR"
display(textpoint)
The page 'CAR.PAG' is displayed.
display("CAR", 100, 200)
The page 'CAR.PAG' is displayed in a custom position, 100 pixels across from
the left of the main window and 200 pixels down from the top.
Syntax
close ("pagename")
Remarks
Argument
Description
pagename
This is the name of the page for closure, based on its
filename without the file extension, e.g. the pagename for
CAR.PAG is simply 'CAR'. The pagename for closure
must be currently open.
The 'close' operation will cause the page to be unloaded, including all objects,
ActiveX controls and scripts. Care must be taken not to attempt to access them
after the close instruction.
Where the script containing the 'close' instruction is on the page to be closed,
this should be the last instruction in the script as it will cause the script to be
unloaded.
Typical Examples
close("CAR")
The page 'CAR.PAG' is closed.
textpoint = "CAR"
close(textpoint)
The page 'CAR.PAG' is closed.
SECTION 6 Functions and Methods

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents