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

Username:   Password: 
 RegisterRegister   
 problems having 2 import files
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: Sat Oct 16, 2004 2:21 pm   Post subject: problems having 2 import files

Ok in my program I have to import files. One is Dansprites and the other is GUI but I'm getting an error
code:

import GUI
import "DanSprite.tu"

the error says "syntax error at import" and highlights the import right befor "DanSprite.tu"

Is it just not possible to have 2 import files or am I doing something wrong?
Sponsor
Sponsor
Sponsor
sponsor
beard0




PostPosted: Sat Oct 16, 2004 3:46 pm   Post subject: (No subject)

You can import two things, you're just using the wrong syntax. Turing only allows one import statement at the begining of the program:
code:
import GUI, "DanSprite.tu"

is the proper syntax!

Enjoy!
Jonny Tight Lips




PostPosted: Sat Oct 16, 2004 9:16 pm   Post subject: (No subject)

Awwww thats the key. Stupid turing. Thanks for your help.
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: