Platform
(Engine-Level Function)
Description: | Returns a fifteen element structure that indicates the platform under which VTScada is currently running. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: | Structure - see comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Usage: | Script only. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Function Groups: | Network, Software and Hardware | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Related to: | WKStaInfo | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Format: | Platform() | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters: | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Comments: | The return value for this function is a fifteen element structure in which the elements have the following meanings
Some common names and their major and minor versions are as follows:
Prior to VTS 8.0, this function returned a three-element array. Backwards compatibility has been maintained so that code designed to use the earlier version of this function will still work properly. |
Example:
If 1 Main; [ p = Platform(); IfThen(p\MajorVersion == 6 && p\MinorVersion == 0 && p\ProductType == 1, UsingVista = 1; ); ];
This script checks to see if the platform is Windows Vista