Table of Contents

Interface IStdConversionModule

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

MS-VBAL 6.1.2.3 Conversion Module

[StdLibModule(null)]
public interface IStdConversionModule

Remarks

Formalizes the public interface of the standard library VBA.Conversion module.

Methods

CBool(VBVariantValue)

MS-VBAL 6.1.2.3.1.1 CBool

RuntimeSemanticsEvaluationResult<VBBooleanValue> CBool(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBBooleanValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBBooleanType explicit-coercion function.

CByte(VBVariantValue)

MS-VBAL 6.1.2.3.1.2 CByte

RuntimeSemanticsEvaluationResult<VBByteValue> CByte(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBByteValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBByteType explicit-coercion function.

CCur(VBVariantValue)

MS-VBAL 6.1.2.3.1.3 CCur

RuntimeSemanticsEvaluationResult<VBCurrencyValue> CCur(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBCurrencyValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBCurrencyType explicit-coercion function.

CDate(VBVariantValue)

MS-VBAL 6.1.2.3.1.4 CDate

RuntimeSemanticsEvaluationResult<VBDateValue> CDate(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBDateValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBDateType explicit-coercion function.

CDbl(VBVariantValue)

MS-VBAL 6.1.2.3.1.5 CDbl

RuntimeSemanticsEvaluationResult<VBDoubleValue> CDbl(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBDoubleValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBDoubleType explicit-coercion function.

CDec(VBVariantValue)

MS-VBAL 6.1.2.3.1.6 CDec

RuntimeSemanticsEvaluationResult<VBVariantValue> CDec(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBDecimalType explicit-coercion function.

CInt(VBVariantValue)

MS-VBAL 6.1.2.3.1.7 CInt

RuntimeSemanticsEvaluationResult<VBIntegerValue> CInt(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBIntegerValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBIntegerType explicit-coercion function.

CLng(VBVariantValue)

MS-VBAL 6.1.2.3.1.8 CLng

RuntimeSemanticsEvaluationResult<VBLongValue> CLng(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBLongValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBLongType explicit-coercion function.

CLngLng(VBVariantValue)

MS-VBAL 6.1.2.3.1.9 CLngLng

RuntimeSemanticsEvaluationResult<VBLongLongValue> CLngLng(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBLongLongValue>

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.

CLngPtr(VBVariantValue)

MS-VBAL 6.1.2.3.1.10 CLngPtr

RuntimeSemanticsEvaluationResult<VBLongPtrValue> CLngPtr(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBLongPtrValue>

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.

CSng(VBVariantValue)

MS-VBAL 6.1.2.3.1.11 CSng

RuntimeSemanticsEvaluationResult<VBSingleValue> CSng(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBSingleValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBSingleType explicit-coercion function.

CStr(VBVariantValue)

MS-VBAL 6.1.2.3.1.12 CStr

RuntimeSemanticsEvaluationResult<VBStringValue> CStr(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBStringValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBStringType explicit-coercion function.

CVDate(VBVariantValue)

MS-VBAL 6.1.2.3.1.4 CVDate

RuntimeSemanticsEvaluationResult<VBVariantValue> CVDate(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBVariantValue/VBDateType explicit-coercion function.

CVErr(VBVariantValue)

MS-VBAL 6.1.2.3.1.14 CVErr

RuntimeSemanticsEvaluationResult<VBVariantValue> CVErr(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBVariantValue/VBErrorType explicit-coercion function.

CVar(VBVariantValue)

MS-VBAL 6.1.2.3.1.13 CVar

RuntimeSemanticsEvaluationResult<VBVariantValue> CVar(VBVariantValue expression)

Parameters

expression VBVariantValue

Any data value.

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

The VBVariantType explicit-coercion function.

Error(VBVariantValue?)

MS-VBAL 6.1.2.3.1.15 Error

RuntimeSemanticsEvaluationResult<VBVariantValue> Error(VBVariantValue? errorNumber = null)

Parameters

errorNumber VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

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).

ErrorStr(VBVariantValue?)

MS-VBAL 6.1.2.3.1.15 Error$

[StdLibMember("Error$")]
RuntimeSemanticsEvaluationResult<VBStringValue> ErrorStr(VBVariantValue? errorNumber = null)

Parameters

errorNumber VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBStringValue>

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.

Fix(VBVariantValue)

MS-VBAL 6.1.2.3.1.16 Fix

RuntimeSemanticsEvaluationResult<VBVariantValue> Fix(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

Gets the integer portion of a numeric value.

Hex(VBVariantValue)

MS-VBAL 6.1.2.3.1.17 Hex

RuntimeSemanticsEvaluationResult<VBVariantValue> Hex(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

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).

HexStr(VBVariantValue)

MS-VBAL 6.1.2.3.1.17 Hex$

[StdLibMember("Hex$")]
RuntimeSemanticsEvaluationResult<VBStringValue> HexStr(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBStringValue>

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.

Int(VBVariantValue)

MS-VBAL 6.1.2.3.1.18 Int

RuntimeSemanticsEvaluationResult<VBVariantValue> Int(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

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.

Oct(VBVariantValue)

MS-VBAL 6.1.2.3.1.19 Oct

RuntimeSemanticsEvaluationResult<VBVariantValue> Oct(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

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).

OctStr(VBVariantValue)

MS-VBAL 6.1.2.3.1.19 Oct$

[StdLibMember("Oct$")]
RuntimeSemanticsEvaluationResult<VBStringValue> OctStr(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBStringValue>

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.

Str(VBVariantValue)

MS-VBAL 6.1.2.3.1.20 Str

RuntimeSemanticsEvaluationResult<VBVariantValue> Str(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBVariantValue>

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).

StrStr(VBVariantValue)

MS-VBAL 6.1.2.3.1.20 Str$

[StdLibMember("Str$")]
RuntimeSemanticsEvaluationResult<VBStringValue> StrStr(VBVariantValue number)

Parameters

number VBVariantValue

Returns

RuntimeSemanticsEvaluationResult<VBStringValue>

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Remarks

Gets the string representation the specified value.

Val(VBStringValue)

MS-VBAL 6.1.2.3.1.21 Val

RuntimeSemanticsEvaluationResult<VBDoubleValue> Val(VBStringValue value)

Parameters

value VBStringValue

Returns

RuntimeSemanticsEvaluationResult<VBDoubleValue>

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.