Macro Language Reference > PIs > Tables > <?tbcoluse>
  
<?tbcoluse>
Description
This command specifies a subset of columns from a table to use within the table: all other columns in the table will automatically be deleted. Column numbers start at 0 and any brackets within the PI are skipped to allow compatibility with getvar 21768 (see below). The command inserts <?tbcoldel> commands to control display: with a value of 0 for those that will be displayed, and 1 for those which are to be deleted.
 
<?tbcoldel> commands must not be applied by the user with <?tbcoluse> since they may negate those applied automatically.
This command can also be specified using <?tbcolumnuse>.
Syntax
<?tbcoluse '+' colset list:n>
+
Add additional columns to an existing subset
 
The "+" must not be included in the first use of <?tbcoluse>.
colset list
A list of columns to be included in the subset: column numbers separated by commas, e.g. <?tbcoluse 0,1,2> .
Additional Information
<?tbcoluse> works similarly to specifying a single column set with <?tbcolsets>, with the added advantage that it will work in combination with <?tbcolsets> and/or <?tbwmode=3>. In other words, having specified a subset of columns to include these can still be wrapped if the table is too wide for the column.
The primary intended use for this PI is to mimic main view table behaviour in alternate views. For example, a double page spread in the main view, using <?tbacross=1> and <?tbamode=1>, will split the table over the two pages whilst avoiding the gutter.
The following getvars interrogate the way in which PTC ALD splits the columns:
01766(T)
Total number of amode colsets
01767(T)
Number of current amode colset
21768(S)
List of columns in current amode colset, e.g. "(0,1,2)"
These can be used in conjunction with <?tbcoluse> to selectively format the left hand or right hand side of the table within alternate views.
 
This is a table wide property, not a column property.