PDA

View Full Version : How to do a Global Variable


Seraph_SGN
09-01-2003, 10:44 PM
I am designing an application to use as an interface for the multimedia pc. I am looking for ways to do day/night mode. I think the simplest way is to put 2 sets of data on one each page, one of day and one for night and when clicked on a button (or when the time changes on the computer), I want it to show one set and hide the other set.

Since it will have multiple pages, I would like to set all of them to load day or night depending on a global variable (Boolean). How would I go about doing that? I think it's right under my nose but I can't seem to find it. Also, the last time I coded a program was back in 2000 so my brains are not where they should be.

Thanks for your help.

Lwin

Corey
09-01-2003, 11:16 PM
Hi, variables actually are global to your project in AMS... If you are asking how to create persistent data, that can be easily achieved by writing a registry key or ini file using the corresponding actions...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Seraph_SGN
09-01-2003, 11:20 PM
So let's say if I do the following in page1
%night%=false

then in page 2 %night% will be false right?

Thanks Corey!

L

Corey
09-02-2003, 12:09 AM
Yep, sure will. /ubbthreads/images/icons/smile.gif

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)