Computer Science Canada

arrays

Author:  noobprogrammer123 [ Wed May 05, 2004 4:12 pm ]
Post subject:  arrays

i have 520 similar pictures in a program that i am making, how do i use the array command?

Author:  Paul [ Wed May 05, 2004 6:30 pm ]
Post subject: 

u name the pictures something like:
pic1.jpg
pic2.jpg
pic3.jpg
etc... u get the point then u do this
code:

var pic: array 1..520 of int
var temp: string
for a: 1..520
temp:= "pic"+intstr(a)+".jpg"
pic(a):= Pic.FileNew (temp)
end for


: