"addSelectColumns"
    
    Adds columns to a table selection.
Synopsis
setValue(string shape, "addSelectColumns", dyn_int
                columns);
shape.addSelectColumns (dyn_int columns);
Parameters
| Parameter | Description | 
|---|---|
| shape | Name of the object | 
| columns | Column index, starting at 0 | 
Description
This attribute is used to select columns indexed by an array. This attribute is only valid in the TABLE_SELECT_MULTIPLE mode.
                
                Example
            
In this example a table with entries is created and the rows of the table are selected.
main()
{
  shape tab=getShape("TABLE1");
  dyn_string d1, d2, d3, d4;
  dyn_dyn_string vnam, nnam;
  //The entries of the column First Name
  d1=makeDynString("Peter");
  d2=makeDynString("Martin");
  d3=makeDynString("Christian");
  d4=makeDynString ("Maria");
  // Transfer the entries to the dyn dyn field
  vnam[1]=d1;
  vnam[2]=d2;
  vnam[3]=d3;
  vnam[4]=d4;
  //The entries of the column Last name
  d1=makeDynString("Bauer");
  d2=makeDynString("Müller");
  d3=makeDynString("Schmidt");
  d4=makeDynString("Mayer");
  //Transfer the entries to the dyn dyn field
  nnam[1]=d1;
  nnam[2]=d2;
  nnam[3]=d3;
  nnam[4]=d4;
  //Add the four rows
  tab.appendLines(4, "First name", vnam, "Last name", nnam);
  dyn_int dzeile, dreihe;
  //Selection Mode
  tab.tableMode=TABLE_SELECT_MULTIPLE;
  //Rows and Columns
  dzeile=makeDynInt(0, 2);
  dreihe=makeDynInt(0, 1);
  //Select
  tab.addSelectLines=dzeile;
  tab.addSelectColumns=dreihe;
}
            
            Assignment
Table, TABLE_SELECT_MULTIPLE mode