docs

Home All functions Categories

vuFolderWatchCheck(fName)

vuFolderWatchCheck(*CSTRING), Signed

Description

Checks the status of a folder monitoring thread started with vuFolderWatchStart. Used to detect when changes occur in a watched folder.

Parameters

Parameter Data Type Description
fName CSTRING(256) Fully qualified path of the folder being monitored

Returns

One of the following values:

Example

FolderToWatch = 'C:\Windows\Temp'

! Start watching the folder
IF vuFolderWatchStart(FolderToWatch) = 1
  MESSAGE('Folder is being monitored')
END

! Check for changes in the folder
CASE vuFolderWatchCheck(FolderToWatch)
OF 0
  MESSAGE('This folder is not watched')
OF -1
  MESSAGE('There have been no changes')
OF 1
  MESSAGE('A change has occurred')
  x# = vuFolderWatchStart(FolderToWatch)  ! Re-arm monitoring
END

Notes

Home All functions Categories