<html><DIV>Hi Paul, </DIV>
<DIV></DIV>
<P>I'm not sure I understand exactly what you are trying to do. Is the problem that 
you have&nbsp;MANY options to define?&nbsp; Or is it that your options are not simple 
on/off flags, but require 3 or more states instead of just binary?</P>
<P>If it's just that you have heaps of options, then you can simply use multiple 
options numbers.&nbsp; For example, a single number of&nbsp;16 bits&nbsp;can be 
considered as&nbsp;a package of 16 on/off switches.&nbsp; If you need 100 switches, 
then you can just have 7 options numbers, ie 7 packages of 16 switches each.</P>
<P>The problem with three or more possible states per flag is&nbsp;rather more 
difficult, though.&nbsp; I'm not sure that the Bitwise functions are going to be any 
use in that case.&nbsp; That's one to ponder.</P>
<P>Can you give us some more information about what you are trying to do?</P>
<P>Sorry if this is not much help...</P>
<P>Lee.</P>
<P>&nbsp;</P>&gt;From: Paul Smith <[EMAIL PROTECTED]>
<DIV></DIV>
<DIV></DIV>&gt;Hal's Occasional Newsletter of July 2000 covered the BitAnd function 
nicely. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;But I need something that has more than 1, 2, 4, 8, 16 as options, and 
is 
<DIV></DIV>&gt;extensible. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;About the only solution I've come up with is a list, where possible 
list 
<DIV></DIV>&gt;members (attributes) are: 0,1,2...9,A,B,...,Z,AA,BB,......., etc. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Then Record 23 could have a list of attributes like 1,A,Z,9,R that is 
<DIV></DIV>&gt;stored in one column (VARCHAR). 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;For various reasons I don't want to use a small table to list the 
<DIV></DIV>&gt;attributes for a given record, such as for Record 23: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;ID Attribute 
<DIV></DIV>&gt;23 1 
<DIV></DIV>&gt;23 A 
<DIV></DIV>&gt;23 Z 
<DIV></DIV>&gt;23 9 
<DIV></DIV>&gt;23 R 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Do you have a better solution than a list? 
<DIV></DIV>&gt; 
<DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a 
href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to