作者cole945 (躂躂..)
看板Visual_Basic
标题Re: [.NET] 2005中的GetElementById函式
时间Thu Oct 11 21:33:20 2007
※ 引述《swuntoe (人在匈奴心在蒜)》之铭言:
: Dim oButton1 = WB.Document.GetElementById("Sub")
: If oButton1 = Null Then
这行连编都编不过吧 囧"
如果你在别的语言用 Null 用很惯..
那要开始习惯在 VB.NET, 通常是用 Nothing 来判断,
像是 If oButton is Nothing Then
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.192.196.141
1F:推 swuntoe:多谢你 我就是要问在VB.NET中的"NULL"是啥 10/12 16:32