请个位老师帮忙!!!急!急!急!

hlddg 2002-07-19 10:44:54
不知道在vb.net中数据类型转换函数是什么?比如从char 到money?请指点!
...全文
45 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
sumtec 2002-07-21
  • 打赏
  • 举报
回复
就是就是,搞得我一头雾水!什么Money类型啊!郁闷了我好几天。 //ft
Latitude 2002-07-20
  • 打赏
  • 举报
回复
The Currency data type is not supported in VB7. Instead, there is a new data type named "Decimal", which can handle more digits on both sides of the decimal point, for all money variables and calculations. The Decimal data type is also directly supported by the .NET Framework and Runtime
note:Decimal (System.Decimal) is 12 bytes
convert expressions into Decimal, pls use CDec(expression)
ksy 2002-07-20
  • 打赏
  • 举报
回复
Currency
vb.net好像没这种类型。
Muf 2002-07-20
  • 打赏
  • 举报
回复
to: sumtec
Currency吧。
sumtec 2002-07-20
  • 打赏
  • 举报
回复
Money是什么类型?
Muf 2002-07-19
  • 打赏
  • 举报
回复
但尽量不要用Convert.Toxxx
如果只是VB的类型,应该简单就可以用:
CStr
CInt
C....
CType(...,type)
转换
Muf 2002-07-19
  • 打赏
  • 举报
回复
请用Convert.Toxxx实现, xxx为目标类型
sumtec 2002-07-19
  • 打赏
  • 举报
回复
Money?哪里来的Money?
sumtec 2002-07-19
  • 打赏
  • 举报
回复
Money?哪里来的Money?
sumtec 2002-07-19
  • 打赏
  • 举报
回复
Money?哪里来的Money?
secretthing 2002-07-19
  • 打赏
  • 举报
回复
从char 到money的直接转换函数没有,不过可试试ToString,CType

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧