TuxWriteBuffer Function

Action

Writes the content of a typed buffer to the output file.

Include file

TUXEDO.bdh

Syntax

TuxWriteBuffer(in hBuffer : number,
               in sText   : string optional): boolean;

Return value

  • true if successful.

  • false otherwise.

Parameter Description
hBuffer Typed buffer that will be written to the output file.
sText Additional text written to the output file (optional)

Example

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

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

    // write buffer to output file
    TuxWriteBuffer(hBuffer, "buffer content");
  end TMain;