System.Variant Methods

From RAD Studio API Documentation
Jump to: navigation, search

Note: The following System.Variant methods apply only to C++. For Delphi, the Variant type is used for invoking methods via Automation. These calls are performed at run-time with no compile-time validation. If you invoke the members described below from a Delphi application, the compiler assumes that these are calls to an Automation Server, and not to member functions of the Variant type. For more information, see Accessing Automation Objects.


InheritedProtected
ArrayDimCountpublicReturns the number of dimensions of the given variant.
ArrayHighBoundpublicReturns the high bound of the given dimension in the given variant array.
ArrayLockpublicLocks the given variant array and returns a pointer to the data stored in the array.
ArrayLowBoundpublicReturns the low bound of the given dimension in the given variant array.
ArrayRedimpublicResizes the given variant array by changing the high bound of the rightmost dimension to the given value.
ArrayUnlockpublicUnlocks a variant array that was previously locked by ArrayLock.
Aspublic
AsRefpublic
Assignpublic
AsTypepublicCasts a Variant object to the type specified by the VarType argument.
ChangeTypepublicChanges the data type of a Variant object once it has been instantiated.
ClearpublicClears the value of the Variant.
CreatepublicCreates an instance of System.Variant.
CreateObjectpublicCreates an OLE Automation object with the programmatic identifier specified by ProgID and returns it as a Variant.
DestroypublicFrees a System.Variant object.
Emptypublic
ExecpublicExecutes an OLE procedure, function, or a property Get or Set method.
GetActiveObjectpublicRetrieves a reference to an IDispatch interface of a currently running, registered OLE Automation object and returns it as a Variant.
GetBaseVariantpublicReturns the Variant that is assigned as the value of this Variant, when the type, returned by Type is varVariant.
GetElementpublicReturns the value of a specified element in a Variant array.
GetErrorpublicConverts the Variant to a varError type and returns the integer value.
IsArraypublicQueries the VType of the base class TVarData for the varArray bit.
IsEmptypublicQueries the VType of the base class TVarData.
IsNullpublicQueries the VType of the base class TVarData for the varNull bit.
NoParampublic
OleFunctionpublicProvides an alternate syntax for OLE Automation calls to Exec().
OleProcedurepublicProvides alternative syntax to OLE Automation calls to Exec().
OlePropertyGetpublicReturns the value of a property on a COM interface.
OlePropertySetpublicSets the value of a property on a COM interface.
operator !publicReturns a new Variant that is the logical negation of this Variant.
operator !=publicCompares the Variant with another value, testing for inequality.
operator %publicReturns the remainder from dividing the Variant's value by a specified value.
operator %=publicReturns this Variant as the remainder from dividing its original value and the Variant specified by rhs.
operator &publicPerforms a bitwise and operation with a specified value.
operator &=publicReturns this Variant after performing a bitwise and operation.
operator ()publicConverts the Variant.
operator *publicMultiplies the value of the Variant by a specified value.
operator *=publicMultiplies this Variant by the Variant specified by rhs.
operator +publicAdds a specified value to the Variant.
operator +=publicAdds the Variant specified by rhs to this Variant object.
operator -publicSubtracts a specified value from the Variant.
operator -=publicSubtracts the Variant specified by rhs from this Variant object.
operator /publicDivides the value of the Variant by a specified value.
operator /=publicDivides this Variant by the Variant rhs.
operator <publicTests whether the value of the Variant is less than a specified value.
operator <<publicReturns a new Variant that is the result of a shl (left shift) operation on this Variant.
operator <<=publicPerforms a bitwise shl (left shift) operation on this Variant.
operator <=publicTests whether the value of the Variant is less than or equal to a specified value.
operator =publicCopies the Variant specified by rhs into this Variant.
operator ==publicCompares the Variant with another value, testing for equality.
operator >publicTests whether the Variant's value is greater than a specified value.
operator >=publicTests whether the Variant's value is greater than or equal to a specified value.
operator >>publicReturns a new Variant that is the result of a shr (right shift) operation on this Variant.
operator >>=publicPerforms a bitwise shr (right shift) operation on this Variant.
operator ^publicPerforms a bitwise xor operation with a specified value.
operator ^=publicReturns this Variant after performing a bitwise xor operation.
operator |publicPerforms a bitwise or operation with a specified value.
operator |=publicReturns this Variant after performing a bitwise or operation.
PutElementpublicAssigns an element as the value of an entry in a Variant array.
Sanitizedpublic
SetErrorpublicConverts the Variant to a varError type and assigns the integer err as the value of the varError.
swappublic
TypepublicReturns the type code of a Variant instance.