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

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
Remarks
Argument
Returnstate
Filename
Offset
Textpoint
Noofchars
Typical Example
ReadMessage ("C:\CX-SUPERVISOR\TESTFILE.TXT", 0, TextPoint, 20)
The first 20 characters are be read from the file "C:\CX-SUPERVISOR\TESTFILE.TXT" and stored
in the point 'TextPoint'.
Note:
Text points can hold up to 256 characters therefore a maximum of 256 characters can
be read from the file.
SelectFile
Syntax
filename = SelectFile (filter, path)
Remarks
Argument
Filename
Filter
Path
Page 86
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of file to be read.
integer
An offset from the beginning of the file (in characters )
indicating where to start reading from.
text
The text point which holds the characters read from the file.
point
integer
The number of characters to read from the file.
Type
- - -
Text string returned. Contains fully qualified filename
including drive and path if OK was selected from OpenFile
comms dialog, otherwise contains empty string.
string
Optional argument. If omitted, will show all files. This
argument must be supplied if path is specified i.e. set to "".
Specifies the filter string used by the 'Files of type' list. The
string should contain 1 or more filters separated with a '|' (pipe)
character and end with 2 characters i.e. '||'. Each filter should
have some user text and 1 or more file specs separated with a
semicolon. No spaces should be used, except within the user
text.
string
Optional argument. Specifies the path to show initially. If
omitted, the dialog shows the current working directory.
Description
Description
Revision 2.0
OMRON

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents