getVersion
[ Function ]
export function getVersion(
type: string
): TcHmi.Version | null;
Returns the version number of a control based on the type name of the control.
Parameter
Name | Type | Description |
---|---|---|
type | Control Typ Name |
Return value
Type | Description |
---|---|
Version as object of type TcHmi.Version or null if the type name is unknown. |
Available from version 1.10.1336.404 |
Sample - JavaScript
var version = TcHmi.Controls.getVersion('TcHmi.Controls.Beckhoff.TcHmiButton');
console.log(version);