vb2010用什么代替currency
展开全部
VB2010里有这个类型,他被隐藏了,自己声明一个吧
=========================
Friend Structure Currency
Friend m_value As Long
Public Sub New(value As Decimal)
Me.m_value = Decimal.ToCurrency(value).m_value
End Sub
Friend Sub New(value As Long, ignored As Integer)
Me.m_value = value
End Sub
Public Shared Function FromOACurrency(cy As Long) As Currency
Return New Currency(cy, 0)
End Function
Public Function ToOACurrency() As Long
Return Me.m_value
End Function
Public Shared Function ToDecimal(c As Currency) As Decimal
Dim result As Decimal = 0D
Currency.FCallToDecimal(result, c)
Return result
End Function
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询