Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pictures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheFerret




PostPosted: 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...
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Wed Mar 31, 2004 8:16 am   Post subject: (No 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?
TheFerret




PostPosted: Wed Mar 31, 2004 9:42 am   Post subject: (No subject)

N/m I got it...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: