I raised an FR some while back for a custom "bitfield" type, which would
allow us to set/read bits in a byte/word in a more readable manner.
The idea would be to be able to name specific bits in a byte/long/word etc
and set or read those bits for example like:
Dim mybits as myBitField = getmybits()
Mybits.MyFlag = true // ( where myflag is a bit position defined in
mybitfield )
Such bitfields would be set up visually in the editor in similar manner to
enums.
Its here for anyone interested:
http://www.realsoftware.com/feedback/viewreport.php?reportid=tyhmlemc
On 30/3/08 16:13, "Alfred Van Hoek" <vanhoek at mac dot com> wrote:
> I am a lay when it comes to using the Bitwise class, but in C I do
>
> if (state & kConstant) {
> }
>
> Just looking for a particular bit in state, but the Bitwise class is
> giving a result I do not understand:
>
> if (state And kConstant) = 1 then ....
>
> is that the correct interrogation? (It returns a value that I do not
> understand, and the language doc/reference is not comprehensible....)
>
> Alfred
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
Cheers,
Dan
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|