Computer Science Canada

Ok... opening a new window!

Author:  Dragon20942 [ Sun Jan 23, 2011 8:44 pm ]
Post subject:  Ok... opening a new window!

Is there any way to open a window of ANOTHER existing turing file?
I have my loading bar, title screen, and main program on different files, most of which use the same variables and I dont want to root through them. This will save me a lot of time as my assignment is due tomorrow!

Author:  ProgrammingFun [ Sun Jan 23, 2011 9:03 pm ]
Post subject:  RE:Ok... opening a new window!

Why don't you just put all of your procedures into one file and then import that into the main program?
If all of you things are processes, you do not have to worry about variable names....

Author:  Tony [ Sun Jan 23, 2011 9:23 pm ]
Post subject:  RE:Ok... opening a new window!

Scopes! Variables created inside of a procedure are local to just that procedure.

The "opening" that you might have in mind could be done for compiled programs with Sys.Exec, but not to source code files.

Author:  Dragon20942 [ Mon Jan 24, 2011 8:51 pm ]
Post subject:  RE:Ok... opening a new window!

Ok thanks, I understand now. I just have to make a small loop structure involving calling processes in addition to creating the processes themselves.

Author:  ProgrammingFun [ Mon Jan 24, 2011 8:57 pm ]
Post subject:  Re: RE:Ok... opening a new window!

Dragon20942 @ Mon Jan 24, 2011 8:51 pm wrote:
Ok thanks, I understand now. I just have to make a small loop structure involving calling processes in addition to creating the processes themselves.


Wasn't your project due today? Or is it thru online submission until 12?

Author:  Dragon20942 [ Tue Jan 25, 2011 9:50 pm ]
Post subject:  RE:Ok... opening a new window!

Didn't bother because my teacher said it was fine in separate parts.


: