Function EN Version 5.00

@DestroyBuffer

System

Syntax

@DestroyBuffer(BINBUFFER1);

Description

With @DestroyBuffer, a binary buffer of data type BINBUFFER is released again.

Return:
A handle to a "destroyed" binary buffer of data type BINBUFFER or @Error.

Example: @DestroyBuffer(BINBUFFER1)

BinBuffer:=@CreateBuffer(100);
@WriteBuffer(BinBuffer;"Test Text \X0D\X0A");
@SetPosBuffer(BinBuffer;0;"S");
ReadBin:=@ReadBuffer(BinBuffer;"B";12);
@LogReport(ReadText;11);
BinBuffer:=@DestroyBuffer(BinBuffer);

Creates a BINBUFFER with 100 bytes and writes the text "Test Text " followed by CR/LF into this BINBUFFERBINBUFFER as binary data (data type RT).
The data is then output to the APILOG, and the BINBUFFER is destroyed again.

Note : This text was machine-translated and may contain inaccuracies.