RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::<< Operator (AnsiString&)

Writes the Variant to a specified stream.

Pascal
operator <<(const rhs: Variant&);
operator <<(const rhs: AnsiString&);
operator <<(rhs: Integer);
operator <<(rhs: double);
C++
__fastcall Variant operator <<(const Variant& rhs) const;
__fastcall Variant operator <<(const AnsiString& rhs) const;
__fastcall Variant operator <<(int rhs) const;
__fastcall Variant operator <<(double rhs) const;

The << operator is a friend operator that writes out the Variant specified by arg to the stream specified by os.

Note: This operator is only definedif you #include <iostream> or #define VCL_IOSTREAM before the include statement for sysvari.h (which is typically included indirectly via vcl.h).
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!