Changeset 200 for Include/com/variant.ab


Ignore:
Timestamp:
Apr 2, 2007, 11:55:39 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

Currencyにメンバを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/com/variant.ab

    r192 r200  
    66#require <oaidl.ab>
    77#require <oleauto.ab>
    8 #require <com/bstring.ab>
    9 #include <com/vbobject.ab>
     8#require <com/index.ab>
    109
    1110Class Variant
     
    111110    End Sub
    112111
     112    Sub Variant(n As Currency)
     113        v.vt = VT_CY
     114        SetQWord(VarPtr(v.val), n.Cy As QWord)
     115    End Sub
     116
     117
    113118    Sub ~Variant()
    114119        Clear()
     
    504509    End Sub
    505510
    506     'ValCy
    507 
     511    Const Function ValCy() As Currency
     512    End Function
     513
     514    Sub ValCy(x As Currency)
     515    End Sub
     516   
    508517    'ValDate
    509518
     
    557566    End Function
    558567
     568    Static Function OptionalParam() As Variant
     569'       If _System_VariantOptionalParam = Nothing Then
     570'           'ToDo マルチスレッド対応
     571            _System_VariantOptionalParam = New Variant
     572            _System_VariantOptionalParam.ValError = DISP_E_PARAMNOTFOUND
     573'       End If
     574        Return _System_VariantOptionalParam
     575    End Function
    559576Private
    560577    v As VARIANT
     
    570587    End Sub
    571588End Class
     589
     590Dim _System_VariantOptionalParam = Nothing As Variant
     591
    572592/*
    573593Function Abs(v As Variant) As Variant
Note: See TracChangeset for help on using the changeset viewer.