RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils Namespace

This is namespace VarUtils.

Name 
Description 
The following table lists classes in this documentation. 
The following table lists functions in this documentation. 
The following table lists structs, records, enums in this documentation. 
The following table lists variables in this documentation. 
The following table lists constants in this documentation. 
 
Name 
Description 
 
ESafeArrayBoundsError is the exception class for errors that occur because a variant array index is out of bounds. 
 
ESafeArrayCreateError is the exception class for failing to create a variant array. 
 
ESafeArrayError is the exception class for errors involving variant arrays. 
 
ESafeArrayLockedError is the exception class for errors that occur because a variant array is locked or fixed. 
Name 
Description 
Used to test whether the variant array contains IDispatch elements. 
Used to test whether the variant array is of fixed size. 
Specifies that a variant array has no flags set. 
Used to test whether the variant array contains BSTR elements. 
Used to test whether the variant array contains IUnknown elements. 
Used to test whether the variant array contains Variant elements. 
CMaxArrayVarType gives the upper bound of the CVarTypeToElementInfo array. 
CMinArrayVarType gives the lower bound of the CVarTypeToElementInfo array. 
This constant is internally used by the SafeArrayCreate function. 
Specifies whether the implementation for the variant operation routines is cross-platform. 
Specifies whether the implementation for the safe array routines is cross-platform. 
Specifies whether the implementation for the safe array routines uses the Libc unit. 
Specifies whether the implementation for the variant support routines is cross-platform. 
Specifies whether the implementation for the variant-manipulating routines is cross-platform. 
Specifies that the given array is locked. 
Indicates that the given index is out of range. 
Specifies that the variant type of the input parameter is invalid. 
VAR_CMP_EQ specifies that the variants are equal, after a call to the function referenced by the VarCmp variable. 
VAR_CMP_GT specifies that the first variant is greater than the second, after a call to the function referenced by the VarCmp variable. 
VAR_CMP_LT specifies that the first variant is lower than the second, after a call to the function referenced by the VarCmp variable. 
VAR_CMP_NULL specifies that either one of the variants is nil, after a call to the function referenced by the VarCmp variable. 
Specifies that the application raised an exception. 
Specifies that either one of the arguments is invalid. 
Specifies the default locale for the user or process. 
Specifies that the operation is not implemented. 
Specifies that a variant operation was successful. 
Specifies that there is not enough memory to complete the operation. 
Specifies that a variant operation caused an overflow. 
Indicates that there is no correspondence between the parameter DISPIDs and a parameter of the method. 
Specifies that the argument cannot be cast to the specified type. 
Indicates that an unexpected error occurred. 
 
Name 
Description 
 
Returns a pointer to the actual safe array data and locks the safe array. 
 
Allocates the actual data of the given safe array. 
 
Allocates a descriptor for the safe array. 
 
Checks whether the given parameter is a safe array operation error code. 
 
Copies a safe array to another. 
 
Copies the data from a safe array to another. 
 
Creates a safe array. 
 
Destroys a safe array. 
 
Destroys the actual data of the given safe array. 
 
Destroys the descriptor of the given safe array. 
 
Raises an event corresponding to the given safe array operation error code. 
 
Returns the number of dimension of the given safe array. 
 
Returns the element at the specified position in the given safe array. 
 
Returns the size in bytes of an element in the given safe array. 
 
Returns the lower bound for the given dimension of a safe array. 
 
Returns the upper bound for the given dimension of a safe array. 
 
Locks a safe array. 
 
Returns a pointer to the element at the specified position in the given safe array. 
 
Sets the element at the specified position in the given safe array. 
 
Changes the bound information for the last dimension of a safe array. 
 
Unlocks a safe array previously locked using the SafeArrayAccessData routine. 
 
Unlocks a safe array. 
 
Converts an Exception type argument to an HRESULT type. 
 
Converts a variant from one type to another. 
 
Clears a variant. 
 
Clears the destination variant and makes a copy of the source variant. 
 
Clears the destination variant and makes a copy of the source variant, including the case when the source is of varByRef type. 
 
Initializes a variant. 
 
Name 
Description 
 
This is an internal record type used in declaring the CVarTypeToElementInfo constant array. 
Name 
Description 
VarAdd is a function type variable that specifies the function making the addition operation between two variants. 
VarAnd is a function type variable that specifies the function making the bitwise and operation between two variants. 
VarBoolFromStr is used to specify the function that makes the conversion from a WideString to a boolean value. 
VarBstrFromBool is used to specify the function that makes the conversion from a boolean value to a WideString
VarBstrFromCy is used to specify the function that makes the conversion from a currency value to a WideString
VarBstrFromDate is used to specify the function that makes the conversion from a date value to a WideString
VarCmp is a variable used to specify the function that compares two variants. 
VarCyFromStr is used to specify the function that makes the conversion from a WideString to a currency value. 
VarDateFromStr is used to specify the function that makes the conversion from a WideString to a date value. 
VarDiv is a function type variable that specifies the function making the division operation between two variants. 
VarI4FromStr is used to specify the function that makes the conversion from a WideString to a four bytes integer value. 
VariantChangeTypeEx stores the function that converts a variant from one type to another, using locale-specific information. 
VarIDiv is a function type variable that specifies the function making the division operation between two variants, after converting the variants to integers. 
VarMod is a function type variable that specifies the function that calculates the remainder on division of two variants. 
VarMul is a function type variable that specifies the function making the multiplication operation between two variants. 
VarNeg is a function type variable that specifies the function that inverts the sign of a variant. 
VarNot is a function type variable that specifies the function that performs a not operation on a variant. 
VarOr is a function type variable that specifies the function doing the bitwise or operation between two variants. 
VarR4FromStr is used to specify the function that does the conversion from a WideString to a four bytes floating-point value. 
VarR8FromStr is used to specify the function that makes the conversion from a WideString to a eight bytes floating-point value. 
VarSub is a function type variable that specifies the function making the subtraction operation between two variants. 
VarXor is a function type variable that specifies the function making the bitwise xor (exclusive or) operation between two variants. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!