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

string

Control Typ Name

Return value

Type

Description

TcHmi.Version | null

Version as object of type TcHmi.Version or null if the type name is unknown.

getVersion 1:

Available from version 1.10.1336.404

Sample - JavaScript

var version = TcHmi.Controls.getVersion('TcHmi.Controls.Beckhoff.TcHmiButton');
console.log(version);