Function EN Version 5.00

@ReadBuffer

System

Syntax

@ReadBuffer(BUFFERHANDLE1;RETTYPE2;LENGTH3);

Description

Liest aus dem BINBUFFER with dem BUFFERHANDLE BUFFERHANDLE1 a record with length FN LENGTH3. This record is returned as a variable of the data type specified in TEXT RETTYPE2 .

RETTYPE2:
A=TEXT
B=BINARY (derzeit as RICHTEXT)
C=CHAR (returns a one-byte value as NUMBER)
N=NUMBER
F=FLOAT
L=FLOAT (konvertierter long)
D=FLOAT (konvertiertes DWORD)
T=TIMEDATE

Beispiel: @ReadAttachedFile(OBJECTFILEHANDLE1;RETTYPE2;LENGTH3)

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 a size of 100 bytes and writes the text "Test Text " followed by CR/LF to this BINBUFFER.
The position is reset to 0, and the first 12 bytes are read from this BINBUFFER 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.