ibec_FreeGlobalVar

Description

This function removes a specified variable from a list of global variables, and frees memory associated with the variable. If an empty string is specified as VarName all global variables will be destroyed. This function returns a number of destroyed global variables.

Syntax

 function ibec_FreeGlobalVar(VarName : string) : variant;

Example

execute ibeblock
as
begin
  try
    MyVar = 42;
    ibec_SetGlobalVar('MyGlobalVar', MyVar);

    MyVar1 = ibec_GetGlobalVar('MyGlobalVar', null);

    if (MyVar1 is not null) then
      ibec_ShowMessage(MyVar1);
  finally
    ibec_FreeGlobalVar('MyGlobalVar');
  end;
end

back to top of page
<< ibec_FormatIdent | IBEBlock | ibec_GetCmdLine >>