Flags??
ryandebraal
11 Jun 2007, 07:05Where do I add a new flag so I can use it??
Elexxorine
11 Jun 2007, 07:52You don't need to 'add' then, if a flag is not set to 'on' or 'off and you check it's value, it'll return 'off'. You could in the start up script add a section that sets all the flags you want to 'off' ready for use.
007bond
11 Jun 2007, 07:53though ryan has a valid point, unless you know that, it can be very confusing.
Alex should take note of that
Alex should take note of that
Dr.Froth
11 Jun 2007, 18:07Perhaps he just wants to know how to make a flag in general.
If you need a new flag for an if/then clause just select flag on the if/then window and give it a name. Quest will take it from there. (on QDK anyway..I don't use ASL so I can't help you there.)
Instant flag.
Good Luck.
If you need a new flag for an if/then clause just select flag on the if/then window and give it a name. Quest will take it from there. (on QDK anyway..I don't use ASL so I can't help you there.)
Instant flag.
Good Luck.
ryandebraal
11 Jun 2007, 18:44i figured it out, its strange that you dont create a flag, you just use it and then the program understands what it is
Elexxorine
12 Jun 2007, 10:11Just magine that every flag is already made but not used until you want it.
ryandebraal
12 Jun 2007, 18:23thinking back to my programming classes --- i think they call it implicit declaration? ^^
paul_one
20 Jun 2007, 22:02It's using stuff just like java/VB.
You can define variables or undefined type on the fly..
.. IMO leads to very sloppy programming, as you can run a certain function that wants a variable with or without that variable existing.
.. Not to mention global variables, and passing parameters etc..
You can define variables or undefined type on the fly..
.. IMO leads to very sloppy programming, as you can run a certain function that wants a variable with or without that variable existing.
.. Not to mention global variables, and passing parameters etc..