Interface IStdConversionModule
MS-VBAL 6.1.2.3 Conversion Module
public interface IStdConversionModule
Remarks
Formalizes the public interface of the standard library VBA.Conversion module.
Methods
StdConversions__CBool(VBVariantValue)
MS-VBAL 6.1.2.3.1.1 CBool
RuntimeSemanticsEvaluationResult StdConversions__CBool(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBBooleanType explicit-coercion function.
StdConversions__CByte(VBVariantValue)
MS-VBAL 6.1.2.3.1.2 CByte
RuntimeSemanticsEvaluationResult StdConversions__CByte(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBByteType explicit-coercion function.
StdConversions__CCur(VBVariantValue)
MS-VBAL 6.1.2.3.1.3 CCur
RuntimeSemanticsEvaluationResult StdConversions__CCur(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBCurrencyType explicit-coercion function.
StdConversions__CDate(VBVariantValue)
MS-VBAL 6.1.2.3.1.4 CDate
RuntimeSemanticsEvaluationResult StdConversions__CDate(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBDateType explicit-coercion function.
StdConversions__CDbl(VBVariantValue)
MS-VBAL 6.1.2.3.1.5 CDbl
RuntimeSemanticsEvaluationResult StdConversions__CDbl(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBDoubleType explicit-coercion function.
StdConversions__CDec(VBVariantValue)
MS-VBAL 6.1.2.3.1.6 CDec
RuntimeSemanticsEvaluationResult StdConversions__CDec(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBDecimalType explicit-coercion function.
StdConversions__CInt(VBVariantValue)
MS-VBAL 6.1.2.3.1.7 CInt
RuntimeSemanticsEvaluationResult StdConversions__CInt(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBIntegerType explicit-coercion function.
StdConversions__CLng(VBVariantValue)
MS-VBAL 6.1.2.3.1.8 CLng
RuntimeSemanticsEvaluationResult StdConversions__CLng(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBLongType explicit-coercion function.
StdConversions__CLngLng(VBVariantValue)
MS-VBAL 6.1.2.3.1.9 CLngLng
RuntimeSemanticsEvaluationResult StdConversions__CLngLng(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBLongLongType explicit-coercion function.
👉 This function is statically invalid in a 32-bit execution environment.
StdConversions__CLngPtr(VBVariantValue)
MS-VBAL 6.1.2.3.1.10 CLngPtr
RuntimeSemanticsEvaluationResult StdConversions__CLngPtr(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBLongPtrType_x86/VBLongPtrType_x64 explicit-coercion function.
👉 The VBType returned by this function depends on the bitness of the execution environment.
StdConversions__CSng(VBVariantValue)
MS-VBAL 6.1.2.3.1.11 CSng
RuntimeSemanticsEvaluationResult StdConversions__CSng(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBSingleType explicit-coercion function.
StdConversions__CStr(VBVariantValue)
MS-VBAL 6.1.2.3.1.12 CStr
RuntimeSemanticsEvaluationResult StdConversions__CStr(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBStringType explicit-coercion function.
StdConversions__CVDate(VBVariantValue)
MS-VBAL 6.1.2.3.1.4 CVDate
RuntimeSemanticsEvaluationResult StdConversions__CVDate(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBVariantValue/VBDateType explicit-coercion function.
StdConversions__CVErr(VBVariantValue)
MS-VBAL 6.1.2.3.1.14 CVErr
RuntimeSemanticsEvaluationResult StdConversions__CVErr(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBVariantValue/VBErrorType explicit-coercion function.
StdConversions__CVar(VBVariantValue)
MS-VBAL 6.1.2.3.1.13 CVar
RuntimeSemanticsEvaluationResult StdConversions__CVar(VBVariantValue expression)
Parameters
expressionVBVariantValueAny data value.
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
The VBVariantType explicit-coercion function.
StdConversions__Error(VBVariantValue)
MS-VBAL 6.1.2.3.1.15 Error
RuntimeSemanticsEvaluationResult StdConversions__Error(VBVariantValue errorNumber)
Parameters
errorNumberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the localized string Message of the specified error number value (declared type is VBVariantType).
StdConversions__ErrorStr(VBVariantValue)
MS-VBAL 6.1.2.3.1.15 Error$
RuntimeSemanticsEvaluationResult StdConversions__ErrorStr(VBVariantValue errorNumber)
Parameters
errorNumberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the localized string Message of the specified error number value.
StdConversions__Fix(VBVariantValue)
MS-VBAL 6.1.2.3.1.16 Fix
RuntimeSemanticsEvaluationResult StdConversions__Fix(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the integer portion of a numeric value.
StdConversions__Hex(VBVariantValue)
MS-VBAL 6.1.2.3.1.17 Hex
RuntimeSemanticsEvaluationResult StdConversions__Hex(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the hexadecimal (string) representation of the specified numeric value (declared type is VBVariantType).
StdConversions__HexStr(VBVariantValue)
MS-VBAL 6.1.2.3.1.17 Hex$
RuntimeSemanticsEvaluationResult StdConversions__HexStr(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the hexadecimal (string) representation of the specified numeric value.
StdConversions__Int(VBVariantValue)
MS-VBAL 6.1.2.3.1.18 Int
RuntimeSemanticsEvaluationResult StdConversions__Int(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the integer portion of the specified numeric value.
StdConversions__Oct(VBVariantValue)
MS-VBAL 6.1.2.3.1.19 Oct
RuntimeSemanticsEvaluationResult StdConversions__Oct(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the octal (string) representation the specified numeric value (the declared type is VBVariantType).
StdConversions__OctStr(VBVariantValue)
MS-VBAL 6.1.2.3.1.19 Oct$
RuntimeSemanticsEvaluationResult StdConversions__OctStr(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the octal (string) representation the specified numeric value.
StdConversions__Str(VBVariantValue)
MS-VBAL 6.1.2.3.1.20 Str
RuntimeSemanticsEvaluationResult StdConversions__Str(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the string representation the specified value (the declared type is VBVariantType).
StdConversions__StrStr(VBVariantValue)
MS-VBAL 6.1.2.3.1.20 Str$
RuntimeSemanticsEvaluationResult StdConversions__StrStr(VBVariantValue number)
Parameters
numberVBVariantValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Gets the string representation the specified value.
StdConversions__Val(VBStringValue)
MS-VBAL 6.1.2.3.1.21 Val
RuntimeSemanticsEvaluationResult StdConversions__Val(VBStringValue value)
Parameters
valueVBStringValue
Returns
- RuntimeSemanticsEvaluationResult
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Remarks
Extracts a numeric value from the specified VBStringValue value.