Bearbeiten

Freigeben über


InStream.Length() Method

Version: Available or changed with runtime version 11.0.

Gets the stream length.

Syntax

StreamLength :=   InStream.Length()

Note

This method can be invoked using property access syntax.

Parameters

InStream
 Type: InStream
An instance of the InStream data type.

Return Value

StreamLength
 Type: BigInteger
The stream length or -1 if the length cannot be determined.

Remarks

With Business Central 2023 release wave 1, the Length method allows you to get the length in bytes of the stream. Use InStream.Position([BigInteger]) Method to get the position within the current stream.

InStream Data Type
Getting Started with AL
Developing Extensions