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 bitsum()
    Short Gibt die Summe übereinstimmender Bitwerte aus mehreren Arrays
    Syntax BitSum(VAR result : INTEGER[]; VAR B1, B2, B3 ... : TBITS[])
    Parameter result : Ziel-Feld in Form eines INTEGER-Arrays
    B1..Bn : nahezu beliebige Anzahl an TBit-Arrays (max. 32)
    Return
    See also:
    bitor() bitandnot() bitnot() bitand()
    Description Die Funktion berechnet das INTEGER-Feld result nach folgender Regel

    result[i]:=B1[i]+B2[i]+B3[i]...

    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]
    


    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"}