# listc command

The listc BASIC program invokes the
list-label BASIC program to produce a columnar display of the item-IDs
in the specified file, in the order of appearance in the file.

## Syntax

```
listc file.reference {select.list}{heading"heading text"}{(n}
```

## Parameter(s)

| n | Number of columns - 4 default; 6 maximum. |
| --- | --- |
Any valid selection criteria can be passed through to AQL
for processing.

## Example(s)

```
listc md with a1 "d]"

03 Feb 2003 Items in File MD Page 1
d3.doc.platforms d3.doc.files d3.doc.release HELP-FILE
d3.doc.types neat.stuff d3.doc.processor d3.md
spool-file dm.newac d3.doc.status pointer-file
msb dm.md d3.doc.categories doc.old
phone.save book temp d3.doc
wsym bp macros ad.sup
PCPROGS doc schedule
[405] 27 items listed out of 1445 items.
```

## See also

- [heading modifier](https://d3codex.com/access/heading-modifier/)

---
Source: https://d3codex.com/tcl/listc-command/ - part of the D3Codex reference.
