registerFunction

[ Function ]

function registerFunction(
    name: string,
    func: (...args: any[]) => any
): void;

Registers a function created within a TwinCAT HMI project in the framework.

registerFunction 1:

Since version 1.12 this function is considered obsolete. The use of the function registerFunctionEx is recommended.

Parameters

Name

Type

Description

name

string

The name with which the function is registered in the framework.

func

(...args: any[]) => any

A reference to the function to be registered.

Return value

Type

Description

void

No return value

registerFunction 2:

Available from 1.8