Re: vb 6.0 程式碼
※ 引述《DRAGONLL.bbs@ptt.cc (要研不要延)》之銘言:
> 想請問以下程式碼的意思
> 我把我看的懂得 都加註解
> Private Sub Timer1_Timer()
> Static n
> x = "測試的字串"
> n = IIf(n < Len(x), n + 1, 0) '若n<x字串長度 則n=n+1 否則為0
> Label1 = Left(x, n)'Label1為x字串取出左邊起n個字元
> End Sub
> 我想我的問題是卡在 Static n 這句
> 為什麼這樣寫 就可以弄出 字一個一個出現呢
肉腳路人插花...
http://www.google.com/search?hl=en&q=%22visual+basic%22+static
前幾個結果就有答案了:
http://msdn2.microsoft.com/en-us/library/z2cty7t8(VS.80).aspx
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: adsl-070-155-125-254.sip.asm.bellsouth.net
Programming 近期熱門文章
PTT數位生活區 即時熱門文章