AttributeDelete Function

Action

Deletes a specified attribute associated with a virtual user.

Include file

Kernel.bdh

Syntax

AttributeDelete( in sName : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sName Name of the attribute that is to be deleted.

Example

dcltrans
  transaction TMain
  var
    sUrl, sString, sBuffer : string;
  begin
    AttributeSetString("name", "Jim");
    AttributeSetInt("age", 23);
    AttributeSetDouble("cash", 4503.60);
    AttributeSetBinary("code", "\h9EF30533", 4);

    // do anything, for example, call an external function
    AttributeGetString("name", sString);
    writeln(sString);
    writeln(AttributeGetInt("age"));
    writeln(AttributeGetDouble("cash"));
    AttributeGetBinary("code", sBuffer);
    WriteData(sBuffer, STRING_COMPLETE);

    AttributeDelete("name");
    AttributeDelete("age");
    AttributeDelete("cash");
    AttributeDelete("code");
  end TMain;