Re: vb 6.0 程式碼

看板Programming作者時間18年前 (2007/11/18 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ 引述《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
文章代碼(AID): #17F_Y200 (Programming)
文章代碼(AID): #17F_Y200 (Programming)