Deutsch English
Alphabetical index
Array functions
  • bitand()
  • bitandnot()
  • bitnot()
  • bitor()
  • bitsum()
  • bittrunc()
  • clrarray()
  • 'DELSESSION'
  • getauto()
  • getmarksauto()
  • high()
  • inarray()
  • inarraypos()
  • initarray()
  • nbits()
  • putmarksauto()
  • 'SETSESSIONIDENT'
  • strsort()
    CGI functions
    Data types
    Date functions
    Debugging
    Fulltext functions
    Language elements
    Numerical functions
    Operators
    Other functions
    Ramtext functions
    Selecting
    Socket functions
    Statistical functions
    Stream functions
    String functions
    System functions
    Table functions
    Text functions
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex Array functions
    Function bitnot()
    Short Complement of a Bit array
    Syntax BITNOT(VAR M : TBITS[]) : INTEGER
    Parameter M : TBITS[]
    Return NBITS(M) after operation (= cardinality of M)
    See also:
    bitand() bitor() bitandnot()
    Description M is understood as a function of a (sub-)set. After execution of the function M has the characteristical function of the complement of this set (i.e. every Bit is inverted).

    Example 1: BitNot + BitTrunc



    VAR x : TBITS[]
    InitArray(x[3])
    BitSum(x)         // = 0 <>  bits 000[00000]
    BitNot(x)
    BitSum(x)         // = 8 <>  bits 111[11111]
    BitTrunc(x,3 +1)
    BitSum(x)         // = 3 <>  bits 111[00000]
    


    Example 2: BitNot + BitTrunc 2

    Sets a bit for each record of db

    var x : TBits[]
    InitArray(x[FileSize(db)];
    BitNot(x);x[0]:=0; BitTrunc(x,FileSize(db)+1)
    
    


    User comments:
    Write a comment:
    Name
    EMail
    Subject
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat
    irc.tdbengine.org
    #tdbengine

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}