Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 96

Script language
Table of Contents

Advertisement

OMRON
Remarks
Argument
returnstate
filename
Typical Example
EditFile("C:\report3.txt")
FileExists
Syntax
returnpoint = FileExists (filename)
Remarks
Argument
filename
returnpoint
Typical Example
FileName = "TEST.TXT"
Exists = FileExists(FileName)
The Boolean point 'Exists' is set to 'TRUE' if a file called 'C:\TEST.TXT' exists.
Note:
"FileName" is a text point which can be set to any string value.
MoveFile
Syntax
returnstate = MoveFile("sourcename", "destname")
Remarks
Argument
Returnstate
sourcename
destname
Typical Example
MoveFile("c:\autoexec.bat", "c:\autoexec.old")
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of the file to be edited.
Type
string
This text string contains the file name.
point
Boolean point that contains the return value.
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of file to be moved.
string
Pathname of destination of move.
CHAPTER 6 – Functions and Methods
Description
Description
Description
Page 83

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents