
-----------------------------------
hskhan
Mon Jun 16, 2003 9:05 pm

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.

-----------------------------------
Tony
Mon Jun 16, 2003 9:12 pm


-----------------------------------
you use

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.

-----------------------------------
hskhan
Mon Jun 16, 2003 9:52 pm


-----------------------------------
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
Mon Jun 16, 2003 10:35 pm


-----------------------------------
type
Window.Open
in Turing editor and press f9 on it

-----------------------------------
JayLo
Mon Jun 16, 2003 10:40 pm


-----------------------------------
maybe a class or a module would help.


include var moduleName in "fileName.t"

-----------------------------------
Andy
Tue Jun 17, 2003 10:19 am


-----------------------------------
you have make sure there are no overlaping variable names, you can't use the same variable in both files

-----------------------------------
krishon
Tue Jun 17, 2003 10:20 am


-----------------------------------
ye, that's a good point
