PDA

View Full Version : #define ?


nhPaul
09-27-2007, 02:04 AM
Hi,

Is there a #define as in C/C++ or something similar?

Also,

#if(0)
..
..
#endif

is really useful too when fiddling with code.

Thanks,

Paul

drkstr
09-27-2007, 06:14 AM
In the main application you can declare a public const like so:

public const GLOBAL_DATA:int = 5;

You could then reference it anywhere in the application with:

Application.application.GLOBAL_DATA

This is as close as you can get as far as I know.

Best Regards,
...aaron