Re: [問題] 請問vb在執行中 停止的指令?

看板Programming作者時間18年前 (2007/03/29 18:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/9 (看更多)
> ==> journeyman@kkcity.com.tw (㊣shaggy-croco story XD) 的文章中提到: > ※ 引述《darka.bbs@ptt.cc (空空)》之銘言: > > 請問 > > 想要在執行中的程式 當出現case1的時候 跳出 重新再輸入 再重跑 > > 還有出現case2時 停在那瞬間 > for迴圈中用exit for跳出, while中用exit while > 用一個變數記錄接到的是哪個狀態 > 然後在迴圈後面用select case或if...else接變數處理 > 例如 > while (1) > ... > ... > if (case1) then breakstate=1: exit while > if (case2) then breakstate=2: exit while > ... > ... > end while > select case breakstate > case 1: > '(REENTER) > case 2: > '(do nothing; halts) > case else > end select >   利用選擇結構或是Goto 畢竟VB不是JAVA -- * Origin: 中山大學-美麗之島BBS * From: 59.104.47.124
文章代碼(AID): #162uvZ00 (Programming)
討論串 (同標題文章)
文章代碼(AID): #162uvZ00 (Programming)