Download tabl.notice

Back to the list

Display this manual page in
$$$$ TABL     NOTICE  CHAT      11/09/12    21:18:14     7124           
                                             DATE     11/09/12
                                             
  Operateur TABLE                          Voir aussi :
    ---------------   
    TAB1 = TABLE  | ( MOT1 ) | ;
                  | ( TAB2 ) |


    Description :
    _____________

    The TABLE operator is used to initialize a table structure.

    Contents :
    __________

    The TABLE operator followed by :

    MOT1  : indicates the table subtype (MOT type)
            this word is listed in the table with the word 'SOUSTYPE'
            as index

    TAB2  : enables the user to rename the table TAB2 (TABLE type)

    Important note  :
    __________________

    In practice, the name of the table must be separated from the 
 considered index by a "." ; if the index is a floating number
 containing a ".", there must in addition be blanks between the name
 of the table and the index.
    Generally speaking, the use of blanks between the table and the
 indices is strongly recommended. 
    
 For instance  :   MATAB1 . 3.68


    Example of use of a table :
    ___________________________

*
*  a VECTEUR type table is defined
*
    MATAB = TABLE  'VECTEUR' ;
*
*  the element of index 1 is defined as equalling 5
*
    MATAB . 1 = 5     ;
*
*  the element of index 'ESS' is defined as equalling 2.732
*
   J = MOT 'ESS'        ;
   MATAB . J = 2.732    ;
   LIST MATAB . J       ;
*
   J  =  1           ;
   B =  MATAB . J    ;
*
* the value of B the indexed table element (equalling 1), i.e. 5
*
   T2 = TABLE MATAB;
*
* the table is accessible through the new name T2
*

 
 

© Cast3M 2003 - All rights reserved.
Disclaimer