Computer Science Canada

Pictures

Author:  TheFerret [ Wed Mar 31, 2004 8:05 am ]
Post subject:  Pictures

I have 50 pictures in my program named 1..50 and i have and array to have a variable declared for each picture...

code:
var c : array 1 .. 50 of int
for i : 1 .. 50
    c (i) := Pic.FileNew (c(i)+".bmp")
end for

How do I get it so that it has the .bmp ending...

Author:  jonos [ Wed Mar 31, 2004 8:16 am ]
Post subject: 

i think you will have to make c(i) a string, then it will concatenate

code:

var c : array 1 .. 50 of int
for i : 1 .. 50
    c (i) := Pic.FileNew (intstr(c(i))+".bmp")
end for


is that what yo umean?

Author:  TheFerret [ Wed Mar 31, 2004 9:42 am ]
Post subject: 

N/m I got it...


: