alert
void alert( message )
Displays a pop-up dialog with the given message. The user must press the OK button in the dialog to continue with the
execution of the script.
Parameter Description
message Message string
Note: The alert function may be used for debugging JavaScript functions.
alert("Test message");
(Available on web pages)
Handling read/write files
Create folder
boolean fs.mkdir(strPath);
Creates a folder, if not already existing, in the specified path. Returns true on success and false if it fails.
Parameter Description
strPath Path string
Remove folder
boolean fs.rmdir(dirPath);
Remove directory at strPath if exists and empty. Returns true on success and false if it fails.
Parameter Description
dirPath Folder string
Read folder content
object fs.readdir(dirPath);
Reads the contents of a folder. Returns an array of the names of the files in the folder excluding'.'and'..'. Returns empty
list if it fails.
Parameter Description
dirPath Folder string
370
HMWIN Studio |User Manual|v206 (2017-06-30) |EN|© 2014-2017 Panasonic Electric Works Europe AG
Handling read/write files