流放之路bf是什么:关于vb.net类型转换函数的问题

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 06:00:04
例:
Option Strict On
Module module1
Sub main()
Dim b As Boolean = "True"
Dim c As Char = "Vdf"
Dim d As Decimal = 6.789
Dim i As Integer = 3.4
Dim s As Single = "345e3"
Dim t As Short = False
Console.WriteLine("{0} {1} {2}" & "{3} {4} {5}", b, c, d, i, s, t)
End Sub
End Module
如何来转换呢?
需要具体步骤

你要转换什么

Dim c As Char = "Vdf" 应该是错的
Dim c As string 吧