# qselect command

The qselect command creates a list from the specified file reference
 and item list, similar to the get-list command.

**Synonyms:** form-list

## Syntax

```
qselect file.reference {itemlist*} {(attribute.number)}
```

## Parameter(s)

| file.reference | Name of the specified file. |
| --- | --- |
| attribute.number | Attribute number in an item (or list of items) specified by the item list. If an attribute number is not specified, all attributes are used. |
| item.list* | List of items. |
The list is constructed from the attributes identified by the attribute number in an item (or
 list of items) specified by the item list. Each attribute, value, and sub-value becomes a
 single attribute value in the list.

## Example(s)

**Example 1**

Builds a list from the multivalues stored in attribute 5 of the item-ID s12345 from the
 invoice-file.

```
qselect invoice-file s12345 (5
```

 **Example 2**

```
qselect dict d3.doc ’desc’
```

## See also

- [.readnext command (Runoff)](https://d3codex.com/runoff/dot-readnext-command-runoff/)
- [copy command](https://d3codex.com/tcl/copy-command/)
- [delete-list command](https://d3codex.com/tcl/delete-list-command/)
- [edit-list command](https://d3codex.com/tcl/edit-list-command/)
- [get-list command](https://d3codex.com/tcl/get-list-command/)
- [nselect command](https://d3codex.com/access/nselect-command/)
- [save-list command](https://d3codex.com/tcl/save-list-command/)
- [nselect command](https://d3codex.com/access/nselect-command/)
- [sselect command](https://d3codex.com/access/sselect-command/)

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