![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212061.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 48
Revision 2.0
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.
Close Page
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.
Note:
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.
Note:
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.
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...