<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 MANY options to define? 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. For example, a single number of 16 bits can be
considered as a package of 16 on/off switches. 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 rather more
difficult, though. I'm not sure that the Bitwise functions are going to be any
use in that case. 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> </P>>From: Paul Smith <[EMAIL PROTECTED]>
<DIV></DIV>
<DIV></DIV>>Hal's Occasional Newsletter of July 2000 covered the BitAnd function
nicely.
<DIV></DIV>>
<DIV></DIV>>But I need something that has more than 1, 2, 4, 8, 16 as options, and
is
<DIV></DIV>>extensible.
<DIV></DIV>>
<DIV></DIV>>About the only solution I've come up with is a list, where possible
list
<DIV></DIV>>members (attributes) are: 0,1,2...9,A,B,...,Z,AA,BB,......., etc.
<DIV></DIV>>
<DIV></DIV>>Then Record 23 could have a list of attributes like 1,A,Z,9,R that is
<DIV></DIV>>stored in one column (VARCHAR).
<DIV></DIV>>
<DIV></DIV>>For various reasons I don't want to use a small table to list the
<DIV></DIV>>attributes for a given record, such as for Record 23:
<DIV></DIV>>
<DIV></DIV>>ID Attribute
<DIV></DIV>>23 1
<DIV></DIV>>23 A
<DIV></DIV>>23 Z
<DIV></DIV>>23 9
<DIV></DIV>>23 R
<DIV></DIV>>
<DIV></DIV>>Do you have a better solution than a list?
<DIV></DIV>>
<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