プレイ日記
Scientist Speedy1101
How do I fix line 19? It says subscript out of range.
2そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
Why are IF on line 10 and ELSEIF on line 12 followed by same conditional expression?
1そうだね
未プレイ
返信[2]
親投稿
Scientist Speedy1101
*facepalm*
0そうだね
プレイ済み
返信[3]
親投稿
Scientist Speedy1101
I fixed the conditional issue and added a value to the UNSHIFT line and it still gives the error.
0そうだね
プレイ済み
返信[4]
親投稿
Hanzo rzsense
Try to modify line 19 as follows. (before correction) CODE$[I]=PRGGET$() (after correction) CODE$[I-1]=PRGGET$()
0そうだね
未プレイ
返信[5]
親投稿
Scientist Speedy1101
Oh, thanks. I should re-learn arrays.
0そうだね
プレイ済み
返信[6]
親投稿
raimondz raimondzz
Something about prgedit and prgget$: PRGEDIT specifie a program and line to edit. The problem is that it start from line 0 and iterate until it reach the desired line. PRGGET$ read the current line and it move the pointer to the next line. If the file you're reading is too big, then you should remove prgedit from the "for" because the performance won't be good.
3そうだね
プレイ済み