Re: [VB6 ] 計算機
※ 引述《TrueFeeling (昨日之死)》之銘言:
: 續上次做到一半的計算機:
: 在Stop之前都可以正常運作
: 之後是因為宣告二維陣列出問題嗎
: 出現了錯誤消息:
: ---------------------
: Run-time error'9'
: Script out of range
: ---------------------
: ++++
: 程式草稿:
: http://0rz.net/2d0qK
: ++++
: Stop
: For I = 1 To N
: Do
: ReDim Preserve C(I, M)
: ReDim Preserve D(I, M)
剛剛測試的結果,問題好像出在上面這兩行
所以應該是二維陣列用法錯誤
好像宣告二維陣列前面那一維必須是常數?
: Q = InStr(1, B(I), "*")
: R = InStr(1, B(I), "/")
--
少年讀書,如隙中窺月;
中年讀書,如庭中望月;
老年讀書,如臺上玩月。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.141.159.236
推
61.62.178.179 06/11, , 1F
61.62.178.179 06/11, 1F
推
220.141.159.236 06/11, , 2F
220.141.159.236 06/11, 2F
→
220.141.159.236 06/11, , 3F
220.141.159.236 06/11, 3F
→
220.141.159.236 06/11, , 4F
220.141.159.236 06/11, 4F
推
210.58.156.43 06/11, , 5F
210.58.156.43 06/11, 5F
推
210.58.156.43 06/11, , 6F
210.58.156.43 06/11, 6F
→
210.58.156.43 06/11, , 7F
210.58.156.43 06/11, 7F
推
220.141.159.236 06/11, , 8F
220.141.159.236 06/11, 8F
推
210.58.156.43 06/12, , 9F
210.58.156.43 06/12, 9F
推
210.58.156.43 06/12, , 10F
210.58.156.43 06/12, 10F
推
210.58.156.43 06/12, , 11F
210.58.156.43 06/12, 11F
推
210.58.156.43 06/12, , 12F
210.58.156.43 06/12, 12F
討論串 (同標題文章)
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章