トピック
bherdm bherdm

Help: Setting String Arrays: Type Mismatch

I'm trying to set positions in an array to strings and I keep getting type mismatch errors. DIM ARRAY[10] STRING$="TEST" ARRAY[1]=STRING$ Help?
1そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Simple identifiers default to real-type numbers, so you need to declare the array as a string array. Just like you did with the string, append a dollar sign to the array's identifier, like this... DIM ARRAY$[10] STRING$="SMILEBASIC" ARRAY$[0]=STRING$
4そうだね
プレイ済み
返信[2]
親投稿
bherdm bherdm
Perfect, thanks!
0そうだね
プレイ済み