Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Appendix A: Number Systems and Bit-wise Operations
Last change: February 13 2016 18:47:29.
<<PreviousNext>>

A.2 Bit-Wise Operation of Logical Operators

Most VB logical operators actually operate on data on a bit-by-bit basis and can be used to perform operations not only on Boolean data but also on integer (Long, Integer and Short) data (see Figure A-1). In this context, a bit is considered True when it is on (with a value 1) and False when it is off (with a value 0). (Notice that the context is a bit not a data field.)

 Figure A-1
Bitwise operation of logical operators

Last change: February 13 2016 18:47:29.
  1. Converting Between the Two Systems
  2. From Binary to Decimal
  3. From Decimal to Binary
  4. The Hex Decimal Representation
  5. Converting Between Hex and Decimal Numbers
  6. Representing Hex Numbers in VB
  7. Why Discuss Number Systems?
  • A.2 Bit-Wise Operation of Logical Operators
    1. The Not, And, Or, Xor Operators
    2. Various Uses of the Logical Operators
    3. <<PreviousNext>>