[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TAbstractObjectReader.NextValue

Returns the type of the next value in the stream.

## Declaration

`public function TAbstractObjectReader.NextValue: TValueType; virtual; abstract;`

## Description

This function should return the type of the next value in the stream, but should not read it, i.e. the stream position should not be altered by this method. This is used to 'peek' in the stream what value is next.

## See also

TAbstractObjectReader.ReadValue |  | Reads the type of the next value.