| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Bit testing? |
| From: | Alfred Van Hoek <vanhoek at mac dot com> |
| Date: | Sun, 30 Mar 2008 12:13:00 -0400 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
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>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: XML Project overwrite bug (WAS Re: TimeMachine instead of svn?), Joe Strout |
|---|---|
| Next by Date: | Re: Bit testing?, Charles Yeomans |
| Previous by Thread: | EXIF Data, Chris Halford |
| Next by Thread: | Re: Bit testing?, Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |