VersionRequired

(Engine-Level Function)

Description: Returns the version number of VTScada that is required to execute any .RUN files loaded since the last execution of this statement.
Returns: Text
Usage: Script only.
Function Groups: Software and Hardware
Related to: Version
Format: VersionRequired()
Parameters:

None

Comments: This function returns the minimum version of VTScada required to execute any and all modules (.RUN files) loaded since the last call to this function, or if no other call was made, since startup. After the call is made to this function, it will reset the version to invalid until another module is loaded.

Example:

If 1 Next;
[
  minVersion = VersionRequired(); 
  IfThen(minVersion > Version(),
  msg = Concat(".RUN files require version ", minVersion);
  msgOpen = 1; 
  ); 
]

This script tests the version number of VTScada required to execute .RUN files loaded prior to this point in the application and executes a series of statements if they are greater than the version of VTScada that is currently running.