RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::TDateTime Operator

Converts the System::Variant::Variant to a TDateTime object.

Pascal
operator TDateTime;
C++
__fastcall operator TDateTime() const;

The TDateTime conversion System::Variant::TDateTime returns a TDateTime or a reference to a TDateTime that is a conversion of this System::Variant::Variant. If the TDateTime* conversion is used, the System::Variant::TDateTime sets the varByRef bit, meaning that the System::Variant::Variant contains a reference as opposed to a value. 

If the conversion operation is not possible because of an invalid variant type conversion, an ESystem::Variant::VariantError exception is thrown. 

 

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