My current app records numerous logical values and, since I've just run
out of available bit locations in my integer field, I thought I'd change
it to Q(10). This produced a number of problems and c5 flameouts. I
think I've got it working now, but improvements and suggestions are
requested.  You won't get the usual errors if you replace ... with
bitset/clear offsets that are out of bounds.

In order to store a Q10 value that has no bits set I use:

replace <Q10Field> with cast(replicate(chr(0), 10) as  Q(10))

Q: Is there a more efficient way to do this?
Q:How to set an all bits off default value?
Q:How to determine field width: len() and fsize() don't work, but using 
afields(...) seems to be ok.

for n = 0 to 9
    ? n, bittest(<Q10field>,n)
next

... verifies that the value is correct.

TIA
-Lew 


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to