HasCompilationErrors
(VTScada Layer module. Obtain LayerRoot using the following script-only statement: )
LayerRoot = \System.GetLoadedAppInstance(GetGUID(0, \LocalGUID));
Description: | Reports if the working copy presently has unresolved compilation errors |
Returns: | Boolean |
Usage: | Script Only. |
Function Groups: | Configuration Management |
Related to: | IsAppEditable | |
Format: | LayerRoot.HasCompilationErrors() |
Parameters: | None. |
Comments: |
Returns TRUE if the last attempted compilation of the layer failed. This is a situation that shouldn't ever be encountered, as any attempt to commit a compilation error to the repository should fail, with the working copy (WC) being rolled back to a compilable version. However, if the WC becomes corrupted or if there are compilation dependencies outside of the working copy, then in theory the WC can be in an unresolvable, non-compilable state, which is what this subroutine reports. This function should only be called as a subroutine, following Activation. |