Re: [.NET] 2005中的GetElementById函式
※ 引述《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
推
10/12 16:32, , 1F
10/12 16:32, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):