SalVariant
Namespace: PPJ.Runtime.Com
Assembly: PPJ.Runtime.49 (4.9.0.0)
Variant implementation.
- C#
- VB.NET
public class SalVariant : SalFunctionalClass
Public Class SalVariant
Inherits 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 | Object |
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 |
|---|---|---|
| vt | SalNumber |
Returns: SalBoolean.
GetBlob(s)
| Parameter | Type | Description |
|---|---|---|
| s | SalString& |
Returns: SalBoolean.
GetBoolean(b)
| Parameter | Type | Description |
|---|---|---|
| b | SalBoolean& |
Returns: SalBoolean.
GetDate(d)
| Parameter | Type | Description |
|---|---|---|
| d | SalDateTime& |
Returns: SalBoolean.
GetNumber(num)
| Parameter | Type | Description |
|---|---|---|
| num | SalNumber& |
Returns: SalBoolean.
GetObject(obj)
| Parameter | Type | Description |
|---|---|---|
| obj | SalObject |
Returns: SalBoolean.
GetSafeArray(array)
| Parameter | Type | Description |
|---|---|---|
| array | SalSafeArray& |
Returns: SalBoolean.
GetString(s)
| Parameter | Type | Description |
|---|---|---|
| s | SalString& |
Returns: SalBoolean.
MakeOptional()
Call this when using a Variant as an optional parameter.
SalType()
Returns: SalNumber.
SetBlob(s)
| Parameter | Type | Description |
|---|---|---|
| s | SalString |
Returns: SalBoolean.
SetBoolean(b)
| Parameter | Type | Description |
|---|---|---|
| b | SalBoolean |
Returns: SalBoolean.
SetDate(d)
| Parameter | Type | Description |
|---|---|---|
| d | SalDateTime |
Returns: SalBoolean.
SetNumber(num, vt_type)
| Parameter | Type | Description |
|---|---|---|
| num | SalNumber | |
| vt_type | SalNumber |
Returns: SalBoolean.
SetObject(o)
| Parameter | Type | Description |
|---|---|---|
| o | SalObject |
Returns: SalBoolean.
SetSafeArray(array)
| Parameter | Type | Description |
|---|---|---|
| array | SalSafeArray |
Returns: SalBoolean.
SetString(s)
| Parameter | Type | Description |
|---|---|---|
| s | SalString |
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.