Sign in Join
FPDoc Onlineexperiment

TReader.ReadVariant function

Member of TReaderpublicIn unit Classes

Read a variant from the stream.

Declaration

pascal
function ReadVariant: Variant

Description

ReadVariant reads the next value from the stream and returns it as a variant. No variant array can be read from the stream, only single values.

Errors

If no variant manager is installed, the function will raise an EReadError exception. If the next value is not a simple value, again an EReadError exception is raised. exception is

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.