TReader.ReadVariant

Read a variant from the stream

Declaration

Source position: classesh.inc line 1574

public 
  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

Name Description
TBinaryObjectWriter.WriteVariant Write a variant to the stream