ClassCreateClassFunction

Top  Previous  Next

Creates a new class function or changes its status.

A new function with index nn is created for class cccc (overwriting an existing one if necessary). The content is read from the subsequent lines until a line containing ClassCreateClassFunctionEnd is encountered.

Parameter

/H

Help for the function is displayed. The help text contains a brief description of the function as well as instructions on how to call it.

Specifying the parameter is optional and is done using the format -H or /H (equivalent inputs).

/DISABLE

The class function is disabled until the next /ENABLE. If the class does not contain a corresponding function, a dummy is created. Functions in superclasses are no longer called.

/ENABLE

The class function is activated. If the class does not contain a corresponding function, the dummy is removed. Functions in superclasses are called again.

/STATUS

The activation status of the class function is queried:

0: Enabled                The class function is present and active

1: Error                The class does not exist

2: Disabled                The class function is disabled

3: Unknown        There is no function with this number

Syntax

ClassCreateClassFunction <Klasse> <FktNr> <FktName>

 Echo Hello world

ClassCreateClassFunctionEnd

Example

command line:

Echo /NOW ClassCreateClassFunction( VS_Bel_Schaltstelle 0 /STATUS)

See also