Deutsch English
Alphabetical index
Array functions
  • bitand()
  • bitandnot()
  • bitnot()
  • bitor()
  • bitsum()
  • bittrunc()
  • clrarray()
  • getauto()
  • getmarksauto()
  • high()
  • inarray()
  • inarraypos()
  • initarray()
  • nbits()
  • putmarksauto()
  • strsort()
    CGI functions
    Data types
    Date functions
    Fulltext functions
    Language elements
    Numerical functions
    Other functions
    Ramtext functions
    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 high()
    Short Get the field dimension
    Syntax HIGH(dim : INTEGER; VAR Array) : INTEGER
    Parameter dim : number of dimension
    Array : any array variable
    Return Highest possible field index of the specified dimension.
    See also:
    Description Tdbengine allows you to define arrays with maximal 10 dimensions.
    The lowest field index is always 0, the highest can be got with HIGH.
    Fields are always commited as reference parameters to own procedures and as well always as so called open fields.

    Example 1: High

    PROCEDURE FieldTest(VAR a : INTEGER[,]);
    VAR max_i : INTEGER = High(1,a);
    VAR max_j : INTEGER = High(2,a);
    VAR x : INTEGER[10,5000];
    VAR y : INTEGER[5,0];
    FieldTest(x) // max_i=10; max_j=5000
    FieldTest(y) // max_i=5; max_j=0 

    Example 2: InitArray + High

    VAR vektor : REAL[]
    High(1,vektor) // = 0
    High(1,vektor) // = 10000

    User comments:
    Write a comment:
    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

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