.AND. Logical AND

.AND.
 Logical AND--binary                             (Logical)
------------------------------------------------------------------------------
 Syntax

     <lCondition1> .AND. <lCondition2>

 Type

     Logical

 Operands

     <lCondition1> and <lCondition2> are logical expressions to AND.

 Description

     The .AND. operator is a binary logical operator that executes a logical
     AND operation using the following modified Boolean rules:

     .  Returns true (.T.) if both <lCondition1> and <lCondition2>
        evaluate to true (.T.)

     .  Returns false (.F.) if either <lCondition1> and <lCondition2>
        evaluate to false (.F.)

     Warning!  In a departure from Summer '87 and other dialect behavior,
     Clipper shortcuts the evaluation of .AND. operands.  This means that
     <lCondition1> and <lCondition2> are both evaluated only when
     <lCondition1> evaluates to TRUE (.T.).  If <lCondition1> evaluates to
     FALSE (.F.), the .AND. operation is FALSE (.F.) and <lCondition2> is
     therefore not evaluated.

     For backward compatibility, shortcutting can be suppressed by compiling
     with the /Z option.

 Examples

     .  This example shows .AND. results using different operands:

        ? .T. .AND. .T.            // Result: .T.
        ? .T. .AND. .F.            // Result: .F.
        ? .F. .AND. .T.            // Result: .F.   (shortcut)
        ? .F. .AND. .F.            // Result: .F.   (shortcut)


See Also: .NOT. .OR.

 

Introduction Number and Bit Manipulation

Introduction CT Number and Bit Manipulation

This module discusses number and bit manipulation. Specifically, the numeric section deals with conversions between two different number systems, and the creation of random numbers.

The bit manipulation section covers such required binary operations as AND, OR, XOR, and NOT, and how to test, set and clear bits. The NUMLOW() and NUMHIGH() functions are important for CA-Clipper Tools functions that take two 8-bit values and return them as combined 16-bit numbers. An example is the GETCURSOR() function from the Extended Drivers module.

Many of the functions in this module have a <value> parameter type. In this case, a number can be in the range of 0 to 65535 (or 4 294 967 295) and/or a hexadecimal string in the range of “0000” to “FFFF” (or “FFFFFFFF”).

CT Number and Bit Manipulation Functions

 

Hex View

Hexadecimal file viewer.

This is a experimental project with first intend of point out the power of Harbour and HMG. So, HexView is considerably slow on large files, please be patient.

Download here ( source only ).