Sign In
ESE/ESENT Database Stuff
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
No tags have been created or used yet.
Archive
Archives
February 2011
(1)
June 2010
(1)
March 2010
(1)
September 2009
(1)
August 2009
(2)
May 2009
(1)
April 2009
(4)
March 2009
(3)
February 2009
(2)
January 2009
(4)
December 2008
(2)
November 2008
(1)
October 2008
(5)
May 2007
(1)
Why does JET_coltypBit return 0xFF when set to true?
MSDN Blogs
>
ESE/ESENT Database Stuff
>
Why does JET_coltypBit return 0xFF when set to true?
Why does JET_coltypBit return 0xFF when set to true?
Laurion Burchall
1 Apr 2009 2:28 PM
Comments
0
On our internal mailing list a user asked "When I retrieve a column of type JET_coltypBit that is set to true, why do I get 0xFF and not 0x1"?
My co-worker Ketan had to reach deep into his memory for the answer :-)
In the very old days, the Jet API was designed as a replacement for the BC7 ISAM. BC = Microsoft Basic Compiler.
http://msdn.microsoft.com/en-us/library/wts33hb3(VS.80).aspx
"When Visual Basic converts
Boolean
values to numeric types,
False
becomes 0 and
True
becomes -1."
Now why would do they do this? Because Basic treated Boolean/Bitwise as being the "same" operation. What does "NOT" do? It flips all the bits; hence
TRUE = NOT FALSE
-1 = ~0
0 Comments
Blog - Comment List MSDN TechNet
Comments
Loading...
Leave a Comment
Name
Comment
Please add 4 and 7 and type the answer here:
Post