RUNFileVersion

(Engine-Level Function)

Description: Returns the minimum version of VTScada that can read the .RUN files produced by the current version.
Returns: Text
Usage: Script or steady state.
Function Groups: Compilation and On-Line Modifications,  File I/O,  Advanced Module
Related to: Version
Format: RUNFileVersion( )
Parameters: None

This function is session non-aware, meaning it works on the server's file system even with an active remote connection established.This function is also blocking. All concurrent thread operations will be paused until its execution has concluded. Avoid using this function to access a network file path ("\\server1\share\file.txt", for example). If the network location is unavailable while a blocking File I/O function is attempted, it will block indefinitely. It is recommended that a target file be copied to the local file system for access rather than over the network from VTScada.

Example:

ZText(10, 10, Concat("Minimum version to read .RUN files is ",
                     RUNFileVersion()), 0, 0);

This statement will display the .RUN file version in the upper right corner of the window along with a comment about what the number represents.