Function EN Version 4.60

@ReleaseClass

System

Syntax

@ReleaseClass(TEXTCLASS1);
@ReleaseClass(TEXTLISTCLASSES1);

Description

Releases the class(es) with the name(s) TEXT/TEXTLIST TEXTCLASS1/TEXTLISTCLASSES1.

Return value:
@Error   ->   An error occurred.
TRUE   ->   All requested classes released.
FALSE   ->   At least one of the classes could not be released.

A task can release only classes that it has successfully requested.

A task can successfully request a class that has already been successfully requested any number of times.
(A counter is incremented in the process.)
If a class has already been successfully requested by a task,
no other task can successfully request that class.

A class should be released by @ReleaseClass as many times as it was requested with @RequestClass .
When a task ends, all classes requested by that task are released.

Example: @ReleaseClass(TEXTCLASS1);

TEXTCLASS1:="TestClass1";
FNFLAGS2:=1;
Ret:=@RequestClass(TEXTCLASS1;FNFLAGS2);
@LogReport(Ret);
Ret:=@ReleaseClass(TEXTCLASS1);
@LogReport(Ret);

The class named "TestClass1" is requested, and the task waits until the class is available.
After that, this class is released again.

Example: @ReleaseClass(TEXTLISTCLASSES1);

TEXTLISTCLASSES1:="TestClass1":"TestClass2";
FNFLAGS2:=1;
Ret:=@RequestClass(TEXTLISTCLASSES1;FNFLAGS2);
@LogReport(Ret);
Ret:=@ReleaseClass(TEXTLISTCLASSES1);
@LogReport(Ret);

The classes named "TestClass1":"TestClass2" requested and so lange gewartet
until both classes are available. After that, the classes are released again.

Note : This text was machine-translated and may contain inaccuracies.