Table of Contents

Interface IStdConversionModule

Namespace
RDCore.SDK.Runtime.Abstract.StdLib
Assembly
RDCore.SDK.dll

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.1 CBool

RuntimeSemanticsEvaluationResult StdConversions__CBool(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.2 CByte

RuntimeSemanticsEvaluationResult StdConversions__CByte(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.3 CCur

RuntimeSemanticsEvaluationResult StdConversions__CCur(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.4 CDate

RuntimeSemanticsEvaluationResult StdConversions__CDate(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.5 CDbl

RuntimeSemanticsEvaluationResult StdConversions__CDbl(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.6 CDec

RuntimeSemanticsEvaluationResult StdConversions__CDec(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.7 CInt

RuntimeSemanticsEvaluationResult StdConversions__CInt(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.8 CLng

RuntimeSemanticsEvaluationResult StdConversions__CLng(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.9 CLngLng

RuntimeSemanticsEvaluationResult StdConversions__CLngLng(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.10 CLngPtr

RuntimeSemanticsEvaluationResult StdConversions__CLngPtr(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.11 CSng

RuntimeSemanticsEvaluationResult StdConversions__CSng(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.12 CStr

RuntimeSemanticsEvaluationResult StdConversions__CStr(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.4 CVDate

RuntimeSemanticsEvaluationResult StdConversions__CVDate(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.14 CVErr

RuntimeSemanticsEvaluationResult StdConversions__CVErr(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.13 CVar

RuntimeSemanticsEvaluationResult StdConversions__CVar(VBRuntimeVariantValue expression)

Parameters

expression VBRuntimeVariantValue

Any 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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.15 Error

RuntimeSemanticsEvaluationResult StdConversions__Error(VBRuntimeVariantValue errorNumber)

Parameters

errorNumber VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.15 Error$

RuntimeSemanticsEvaluationResult StdConversions__ErrorStr(VBRuntimeVariantValue errorNumber)

Parameters

errorNumber VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.16 Fix

RuntimeSemanticsEvaluationResult StdConversions__Fix(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.17 Hex

RuntimeSemanticsEvaluationResult StdConversions__Hex(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.17 Hex$

RuntimeSemanticsEvaluationResult StdConversions__HexStr(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.18 Int

RuntimeSemanticsEvaluationResult StdConversions__Int(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.19 Oct

RuntimeSemanticsEvaluationResult StdConversions__Oct(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.19 Oct$

RuntimeSemanticsEvaluationResult StdConversions__OctStr(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.20 Str

RuntimeSemanticsEvaluationResult StdConversions__Str(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(VBRuntimeVariantValue)

MS-VBAL 6.1.2.3.1.20 Str$

RuntimeSemanticsEvaluationResult StdConversions__StrStr(VBRuntimeVariantValue number)

Parameters

number VBRuntimeVariantValue

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(string)

MS-VBAL 6.1.2.3.1.21 Val

RuntimeSemanticsEvaluationResult StdConversions__Val(string value)

Parameters

value string

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.