removeGlobal()

Deletes the manager-wide global CTRL variable name.

Synopsis

int removeGlobal( string name);

Parameters

Parameter Description
name Variable to be deleted

Return value

If successful, the function returns 0 or in the event of errors, -1.

Error

Invalid or missing arguments

Description

Deletes the global variable.

Example

In the following example, a global variable will be generated, assigned a value and then deleted again.

main()
{
  addGlobal("zaehler", INT_VAR); // see addGlobal
  zaehler=123; // assign
  DebugN("Z:", zaehler); // output to test
  removeGlobal("zaehler"); // remove
}

Assignment

Miscellaneous functions

Availability

CTRL