Changeset 211 for Include/com/variant.ab
- Timestamp:
- Apr 11, 2007, 9:49:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/com/variant.ab
r208 r211 519 519 520 520 Const Function ValCy() As Currency 521 Dim r = ChangeType(VT_CY) 522 ValCy = New Currency 523 ValCy.Cy = GetQWord(VarPtr(r.val)) 521 524 End Function 522 525 523 526 Sub ValCy(x As Currency) 527 Clear() 528 SetQWord(VarPtr(v.val), x.Cy) 529 v.vt = VT_CY 524 530 End Sub 525 531 … … 570 576 'ValArray 571 577 572 'ValDecimal 578 Const Function ValDecimal() As Decimal 579 Dim p = VarPtr(v) As *Decimal 580 Return New Deciaml(p[0]) 581 End Function 582 583 Sub ValDecimal(x As Decimal) 584 Clear() 585 Dim p = VarPtr(v) As *Decimal 586 p[0] = x.Dec 587 v.vt = VT_DECIMAL '念の為 588 End Sub 589 573 590 574 591 Function PtrToVariant() As *VARIANT … … 591 608 End Sub 592 609 593 594 610 Static Sub Move(ByRef dst As VARIANT, ByRef src As VARIANT) 595 611 dst = src
Note:
See TracChangeset
for help on using the changeset viewer.