Hi All, I want to pass an integer to a sub. The only valid values of the integer are 1, 2, 4, 8, and 16.
Other than using "if" to test their values, is there a way to state that an integer can only have certain predefined values? Many thanks, -T -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Having been erased, The document you're seeking Must now be retyped. ~~~~~~~~~~~~~~~~~~~~~~~~~~~