TuxInitBuffer Function

Action

Initializes an allocated typed buffer. This function can be used to clear the content of any allocated typed buffer.

Include file

TUXEDO.bdh

Syntax

TuxInitBuffer(in hBuffer: number): boolean;

Return value

  • true if successful.

  • false otherwise.

Parameter Description
hBuffer Typed buffer to initialize.

Example

dcltrans
  transaction TMain
  var
    hBuffer: number;
  begin
    // allocate buffer
    TuxGetBuffer(hBuffer, "FML", NULL, 1024); 

    // store dummy values in buffer
    TuxSetInt(hBuffer, 16, 832);
    TuxSetInt(hBuffer, 32, 173); 

    // clear buffer for later reuse
    TuxInitBuffer(hBuffer);
  end TMain;