Directly above the automidhandle definition in the docs is this definition
Now you wouldn't type AutoImageFlags(flags) in your code, yet that is the equivalent of what Ant did because he didn't get that "enable" was an arbitrary parameter name for an Integer, and that the text implied it could be 0 or 1. Sure perhaps it could be made clearer by explictly saying "If enable is 1 (or True) then ... and If enabled is 0 (or False) etc ...) Ant just made a simple mistake witha simple function and I was trying to help him understand why, instead of just fixing it.
AutoImageFlags( flags )
Now you wouldn't type AutoImageFlags(flags) in your code, yet that is the equivalent of what Ant did because he didn't get that "enable" was an arbitrary parameter name for an Integer, and that the text implied it could be 0 or 1. Sure perhaps it could be made clearer by explictly saying "If enable is 1 (or True) then ... and If enabled is 0 (or False) etc ...) Ant just made a simple mistake witha simple function and I was trying to help him understand why, instead of just fixing it.