Thanks to all who replied. All code examples certainly helped.
I whipped up a quick grid to show bits and make it easier to "picture" a
bitmask.
Thanks
MAD
<html lang="en-US">
<head>
<title>Untitled</title>
</head>
<body>
<cfset maxBit = 11>
<cfset maxInt = 1024>
<cfoutput>
<table border="1" cellpadding="2" cellspacing="0" width="100%">
<colgroup span="#maxBit#" style="text-align: center; width: 50px;">
<tr>
<cfloop from="#maxBit - 1#" to="0" index="thisBit" step="-1">
<th>#2^thisBit#</th>
</cfloop>
<td> </td>
</tr>
<cfloop from="0" to="#maxInt#" index="thisOne">
<tr>
<cfloop from="#maxBit - 1#" to="0" index="thisBit"
step="-1">
<td>#bitMaskRead(thisOne, thisBit, 1)#</td>
</cfloop>
<th>#thisOne#</th>
</tr>
</cfloop>
</cfoutput>
</table>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193441
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54