PDA

View Full Version : filling arrays


Kevin Johnson
08-04-2007, 12:22 PM
for some reason i'm getting an error at Run Time when i try to fill the Arrays with String data.
It says...

"Out of Range [1] for variable CardCharacter$"

i looked in the help files, and it should be right

i attatched the code (entire project) to this post.[br]1186230167_556_FT0_chinese_flashcards.zip

kornalius
08-04-2007, 02:22 PM
PPL arrays are just like arrays in C. They start at index 0 and go to Max - 1.

For(i$, 0, Max$ -1)
end;

This is usually the formula you will be using to go through an array.

For (i$, 1, Max$)
end;

Will cause an out of range runtime error.