Visit our new web pagesWe have launched a new extended set of web pages at www.alvechurchdata.co.uk. These old pages will stay on the server because people still have links to them but they will not be updated. The new version of this page is at www.alvechurchdata.co.uk/hints-and-tips/foxbits.html. |
||||||||||||||||||||
Home About us Development Training Support |
FoxPro Bit ManipulationVisual FoxPro can manipulate numbers up to the size of a 32-bit integer as patterns of bits. Here is a list of some of the more useful commands and functions. Many of them accept extra optional parameters. Look in the FoxPro Help system for more information. Boolean operatorsThe simplest boolean operator is NOT. This takes a single number as a parameter. Every bit in the output number is the opposite of its equivalent in the input parameter. Every zero will be replaced by a one; every one will be replaced by a zero. FoxPro does this with the BITNOT function:
Three other boolean operators take two input parameters and return a single number:
FoxPro implements these three functions:
Note that each of these three functions can take more than two parameters. Other bitwise operatorsThe following commands change or test an individual bit of a single number:
The following commands shift the bits left or right
Other functions
FoxPro date functions.
|
Hints & tips
The textbox class in Visual FoxPro 9 has a new Autocomplete
property which shows the user the previous values that have
been entered in that textbox.
More...
|