Stupid Programming Question

Just starting out? Need help? Post your questions and find answers here.
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Stupid Programming Question

Post 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
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post 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()
Post Reply