System.VarUtils

From Appmethod Libraries
Jump to: navigation, search


Template:UnitInfo

Classes

ESafeArrayBoundsErrorESafeArrayBoundsError is the exception class for errors that occur because a variant array index is out of bounds.
ESafeArrayCreateErrorESafeArrayCreateError is the exception class for failing to create a variant array.
ESafeArrayErrorESafeArrayError is the exception class for errors involving variant arrays.
ESafeArrayLockedErrorESafeArrayLockedError is the exception class for errors that occur because a variant array is locked or fixed.

Routines

SafeArrayAccessDataReturns a pointer to the actual safe array data and locks the safe array.
SafeArrayAllocDataAllocates the actual data of the given safe array.
SafeArrayAllocDescriptorAllocates a descriptor for the safe array.
SafeArrayCheckChecks whether the given parameter is a safe array operation error code.
SafeArrayCopyCopies a safe array to another.
SafeArrayCopyDataCopies the data from a safe array to another.
SafeArrayCreateCreates a safe array.
SafeArrayDestroyDestroys a safe array.
SafeArrayDestroyDataDestroys the actual data of the given safe array.
SafeArrayDestroyDescriptorDestroys the descriptor of the given safe array.
SafeArrayErrorRaises an event corresponding to the given safe array operation error code.
SafeArrayGetDimReturns the number of dimension of the given safe array.
SafeArrayGetElementReturns the element at the specified position in the given safe array.
SafeArrayGetElemSizeReturns the size in bytes of an element in the given safe array.
SafeArrayGetLBoundReturns the lower bound for the given dimension of a safe array.
SafeArrayGetUBoundReturns the upper bound for the given dimension of a safe array.
SafeArrayLockLocks a safe array.
SafeArrayPtrOfIndexReturns a pointer to the element at the specified position in the given safe array.
SafeArrayPutElementSets the element at the specified position in the given safe array.
SafeArrayRedimChanges the bound information for the last dimension of a safe array.
SafeArrayUnaccessDataUnlocks a safe array previously locked using the SafeArrayAccessData routine.
SafeArrayUnlockUnlocks a safe array.
VarExceptionToResultConverts an Exception type argument to an HResult type.
VariantChangeTypeConverts a variant from one type to another.
VariantClearClears a variant.
VariantCopyClears the destination variant and makes a copy of the source variant.
VariantCopyIndClears the destination variant and makes a copy of the source variant, including the case when the source is of type varByRef.
VariantInitInitializes a variant.

Types

_POleStr
TVarTypeToElementInfoThis is an internal record type used in declaring the CVarTypeToElementInfo constant array.

Variables

CVarTypeToElementInfoFor internal use.
VarAddVarAdd is a function type variable that specifies the function making the addition operation between two variants.
VarAndVarAnd is a function type variable that specifies the function making the bitwise and operation between two variants.
VarBoolFromStrVarBoolFromStr is used to specify the function that makes the conversion from a WideString to a boolean value.
VarBstrFromBoolVarBstrFromBool is used to specify the function that makes the conversion from a boolean value to a WideString.
VarBstrFromCyVarBstrFromCy is used to specify the function that makes the conversion from a currency value to a WideString.
VarBstrFromDateVarBstrFromDate is used to specify the function that makes the conversion from a date value to a WideString.
VarCmpVarCmp is a variable used to specify the function that compares two variants.
VarCyFromStrVarCyFromStr is used to specify the function that makes the conversion from a WideString to a currency value.
VarDateFromStrVarDateFromStr is used to specify the function that makes the conversion from a WideString to a date value.
VarDivVarDiv is a function type variable that specifies the function making the division operation between two variants.
VarI4FromStrVarI4FromStr is used to specify the function that makes the conversion from a WideString to a four bytes integer value.
VariantChangeTypeExVariantChangeTypeEx stores the function that converts a variant from one type to another, using locale-specific information.
VarIDivVarIDiv is a function type variable that specifies the function making the division operation between two variants, after converting the variants to integers.
VarModVarMod is a function type variable that specifies the function that calculates the remainder on division of two variants.
VarMulVarMul is a function type variable that specifies the function making the multiplication operation between two variants.
VarNegVarNeg is a function type variable that specifies the function that inverts the sign of a variant.
VarNotVarNot is a function type variable that specifies the function that performs a not operation on a variant.
VarOrVarOr is a function type variable that specifies the function doing the bitwise or operation between two variants.
VarR4FromStrVarR4FromStr is used to specify the function that does the conversion from a WideString to a four bytes floating-point value.
VarR8FromStrVarR8FromStr is used to specify the function that makes the conversion from a WideString to a eight bytes floating-point value.
VarSubVarSub is a function type variable that specifies the function making the subtraction operation between two variants.
VarXorVarXor is a function type variable that specifies the function making the bitwise xor (exclusive or) operation between two variants.

Constants

ARR_DISPATCHARR_DISPATCH: Integer = $400;
ARR_FIXEDSIZEARR_FIXEDSIZE: Integer = $10;
ARR_NONEARR_NONE: Integer = 0;
ARR_OLESTRARR_OLESTR: Integer = $100;
ARR_UNKNOWNARR_UNKNOWN: Integer = $200;
ARR_VARIANTARR_VARIANT: Integer = $800;
CMaxArrayVarTypeCMaxArrayVarType: Integer = $15;
CMinArrayVarTypeCMinArrayVarType: Integer = 0;
GenericOperationsGenericOperations: Boolean = False;
GenericSafeArraysGenericSafeArrays: Boolean = False;
GenericSafeArrayUsesLibCGenericSafeArrayUsesLibC: Boolean = False;
GenericVariantsGenericVariants: Boolean = False;
GenericVarUtilsGenericVarUtils: Boolean = False;
VAR_ARRAYISLOCKEDVAR_ARRAYISLOCKED: HRESULT = $8002000D;
VAR_BADINDEXVAR_BADINDEX: HRESULT = $8002000B;
VAR_BADVARTYPEVAR_BADVARTYPE: HRESULT = $80020008;
VAR_CMP_EQVAR_CMP_EQ: Integer = 1;
VAR_CMP_GTVAR_CMP_GT: Integer = 2;
VAR_CMP_LTVAR_CMP_LT: Integer = 0;
VAR_CMP_NULLVAR_CMP_NULL: Integer = 3;
VAR_EXCEPTIONVAR_EXCEPTION: HRESULT = $80020009;
VAR_INVALIDARGVAR_INVALIDARG: HRESULT = $80070057;
VAR_LOCALE_USER_DEFAULTVAR_LOCALE_USER_DEFAULT: Integer = $400;
VAR_NOTIMPLVAR_NOTIMPL: HRESULT = $80004001;
VAR_OKVAR_OK: HRESULT = 0;
VAR_OUTOFMEMORYVAR_OUTOFMEMORY: HRESULT = $8007000E;
VAR_OVERFLOWVAR_OVERFLOW: HRESULT = $8002000A;
VAR_PARAMNOTFOUNDVAR_PARAMNOTFOUND: HRESULT = $80020004;
VAR_TYPEMISMATCHVAR_TYPEMISMATCH: HRESULT = $80020005;
VAR_UNEXPECTEDVAR_UNEXPECTED: HRESULT = $8000FFFF;