Page 1 of 1

Stupid Programming Question

Posted: Wed Jul 16, 2003 3:32 pm
by kcraft
I'm having a bit of memory loss here...

I have 3 files. Each one is a different section of my program (main, option, option2). I want to switch between the files when I click on the corresponding button.

for instance, on Main I'd click Option, Main would close and Option would open. I'd do what I need to in option, the click return to menu, the main menu would open, and the option would close.

Is it possible to do this without having to reload the graphics in each file? If not, is my logic all screwed up?

thanks

Posted: Thu Jul 17, 2003 2:40 am
by Inner
There are not stuppid questions, only stuppid ansrews.. :)

Open all 3 files, a the start of your program.
then use, the function UseFile(number) to switch between them
at the end, Close all 3 files.

Either way, you need UseFile()