This is the situation I have. I have to read 8 registry values and assign
them to variables. The value held in each of those variables corresponds to
a different flag. So, for example, one set of registry values can have 0,1
or 2 as their value and each of those corresponds to a flag that I want to
report on. Another set of values has 6 possible values, also corresponding
to some flags. What I'm trying to figure out is, what is the most efficient
way of converting the decimal values of each registry value into its
corresponding textual flag. I'm stuck on having to do a monstrous number of
if..thens and it seems like there should be a more efficient way. I know the
value and I know what flag that corresponds to, but I'm having a hard time
figuring out how to convert value to flag in the least possible steps.
Thanks!
Darren
--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy