Author |
Message |
hskhan
|
Posted: 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
|
|
|
Tony
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
hskhan
|
Posted: 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
|
Posted: Mon Jun 16, 2003 10:35 pm Post subject: (No subject) |
|
|
type
Window.Open
in Turing editor and press f9 on it |
|
|
|
|
|
JayLo
|
Posted: 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
|
Posted: 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
|
Posted: Tue Jun 17, 2003 10:20 am Post subject: (No subject) |
|
|
ye, that's a good point |
|
|
|
|
|
|