[futurebasic] Re: BITTST

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: tatewake@... (TJ Grant)
Date: Fri, 21 May 1999 20:34:00 -0400
>Shouldn't this give 0 1 0 0 0 0 0 1? ("A"=65=01000001)
>
>tmp$="A"
>a& = @tmp$+1
>for i& = 0 to 7
>  PRINT FN BITTST(a&,i&);
>next i&
>
>Keeps giving me 0 0 0 0 0 0 1 0

Nah, what you're doing is getting the address of tmp$ + 1, but you never
peek to see what the value is:
a& = Peek(@tmp$ + 1)

You wouldn't want to peek word/long since it's only one byte.

HTH


-- TJ Grant (tatewake@...)
Inspired Communications. http://inspired.netstreet.net/
Phone: 407-728-7563