
PI1X Basic Programming Manual Ver. 1.10
76/156
Description
:
F%
is an integer variable to be assigned to the result.
F%
Meaning
0
Open file failed.
Other
Open successfully. It returns the file.
filename$
is a string variable, indicating the file path.
In case of error, open will return an integer value of 0. You
can use the GET_FILE_ERROR command to get the file
error code. Possible error codes and their interpretation are
listed below:
GET_FILE_ERROR Meaning
1
Filename is a NULL string.
6
Can't create file because the
maximum number of files
allowed in the system is
exceeded.
File path error.
Purpose
:
To create a folder.
Syntax
:
M% = MKDIR foldername$
Example
:
FolderPath$="C:\ARGOX\"
Result%=MKDIR FolderPath$
Description
:
M%
is an integer variable to be assigned to the result.
M%
Meaning
0
Create folder failed.
1
Create folder succeed.
foldername$
is a string variable, indicating the folder path.
(It is able to create only two level of subfolder)