SalVariant

PPJ.Runtime.Com.SalVariant

Namespace: PPJ.Runtime.Com

Assembly: PPJ.Runtime.49 (4.9.0.0)

Variant implementation.

public class SalVariant : SalFunctionalClass

Constructors

SalVariant()

Constructs a new null SalVariant This class cannot be used as second-base class.

SalVariant(value)

Constructs a new SalVariant with the wrapped value

Name
Type
Description

value

Properties

Optional

SalVariant: Returns an empty SalVariant instance marked as optional.

Value

Object: Returns/Sets the wrapped object.

Methods

ActiveXType()

Returns: SalNumber.

AsActiveX(vt)

Changes the variant type.

Parameter
Type
Description

Returns: SalBoolean.

GetBlob(s)

Parameter
Type
Description

Returns: SalBoolean.

GetBoolean(b)

Parameter
Type
Description

Returns: SalBoolean.

GetDate(d)

Parameter
Type
Description

Returns: SalBoolean.

GetNumber(num)

Parameter
Type
Description

Returns: SalBoolean.

GetObject(obj)

Parameter
Type
Description

Returns: SalBoolean.

GetSafeArray(array)

Parameter
Type
Description

Returns: SalBoolean.

GetString(s)

Parameter
Type
Description

Returns: SalBoolean.

MakeOptional()

Call this when using a Variant as an optional parameter.

SalType()

Returns: SalNumber.

SetBlob(s)

Parameter
Type
Description

Returns: SalBoolean.

SetBoolean(b)

Parameter
Type
Description

Returns: SalBoolean.

SetDate(d)

Parameter
Type
Description

Returns: SalBoolean.

SetNumber(num, vt_type)

Parameter
Type
Description

Returns: SalBoolean.

SetObject(o)

Parameter
Type
Description

Returns: SalBoolean.

SetSafeArray(array)

Parameter
Type
Description

Returns: SalBoolean.

SetString(s)

Parameter
Type
Description

Returns: SalBoolean.

ToByte()

to byte

Returns: Byte.

ToCurrency()

to currency

Returns: CurrencyWrapper.

ToDateTime()

to datetime

Returns: DateTime.

ToDecimal()

to decimal

Returns: Decimal.

ToDouble()

to double

Returns: Double.

ToInt16()

to int16

Returns: Int16.

ToInt32()

to int32

Returns: Int32.

ToInt64()

to int64

Returns: Int64.

ToSByte()

to sbyte

Returns: SByte.

ToSingle()

to single

Returns: Single.

ToUInt16()

to uint16

Returns: UInt16.

ToUInt32()

to uint32

Returns: UInt32.

ToUInt64()

to uint64

Returns: UInt64.

Last updated