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

Username:   Password: 
 RegisterRegister   
 Opening Turing one into another
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hskhan




PostPosted: Mon Jun 16, 2003 9:05 pm   Post subject: Opening Turing one into another

An interesting question.
I have an intro.t file. I need it to load a game.t into intro.t. How? Thanks.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jun 16, 2003 9:12 pm   Post subject: (No subject)

you use
code:

include "filename.t"


it would work exactly the same way as if you would copy entire code and pasted that into a new file, but looks more organized.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
hskhan




PostPosted: Mon Jun 16, 2003 9:52 pm   Post subject: (No subject)

thanks, but it gives me an error. how about opening a new window with the game.t file? what would the command be for that? thanks
PaddyLong




PostPosted: Mon Jun 16, 2003 10:35 pm   Post subject: (No subject)

type
Window.Open
in Turing editor and press f9 on it
JayLo




PostPosted: Mon Jun 16, 2003 10:40 pm   Post subject: (No subject)

maybe a class or a module would help.

code:

include var moduleName in "fileName.t"
Andy




PostPosted: Tue Jun 17, 2003 10:19 am   Post subject: (No subject)

you have make sure there are no overlaping variable names, you can't use the same variable in both files
krishon




PostPosted: Tue Jun 17, 2003 10:20 am   Post subject: (No subject)

ye, that's a good point
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  [ 7 Posts ]
Jump to:   


Style:  
Search: