Trending News
Promoted
關於vb按鈕與Text1
我想寫一個程式
裡面有Text1
和Command1
和WebBrowser1
按鈕我程式碼打
WebBrowser1.Navigate "tw.yahoo.com="
就是按下按鈕後在WebBrowser1呈現
但是我想在WebBrowser1.Navigate "tw.yahoo.com="這段的=後面想要再加一些數字
可是是讀取Text1裡的數字直接與Command1裡的WebBrowser1.Navigate "tw.yahoo.com="結合請問要怎麼半到?
Update:
請問那 WebBrowser1.Navigate "tw.yahoo.com="
的=不在最後面該怎麼設定呢?
比如這樣
WebBrowser1.Navigate "tw.yahoo=.com"
1 Answer
Rating
- PGCafeLv 51 decade agoFavorite Answer
WebBrowser1.Navigate "tw.yahoo.com=" & Text1.Text
這樣就行了
Text1.text後面的text可以省略變成.
WebBrowser1.Navigate "tw.yahoo.com=" & Text1
2009-09-15 13:24:14 補充:
那在打程式碼的時候就先把它改過來阿@@!!
還是你的意思是Text1要加在=的後面
可是=不在最後面嗎?
如果是的就這樣...
Dim str as String
str = "tw.yahoo=.com"
str = Replace( str, "=", "=" & Text1 )
2009-09-15 13:33:07 補充:
那就用這個
WebBrowser1.Navigate Replace( "tw.yahoo=.com", "=", "=" & Text1 )
Still have questions? Get your answers by asking now.