﻿# XTREE Parameters

Parameters that supply data _to_ the routine are indicated with \[in\], and those used to get data back _from_ the routine are labeled \[out\].

| **Parameter** | **Type** | **I/O** | **Description** |
|------|------|------|------|
| [Srow, Scol,](srow_scol_erow_ecol.md)  <br>[Erow, Ecol](srow_scol_erow_ecol.md) | [String](string.md) | in | Position of display. |
| [Answer](answer_xtree.md) |  | in/out | Sets and returns the identity of the selected row(s), and/or in the case of editable cells, supplies and returns updated values. |
| [Array](array_xtree.md) | Array | in | In array mode, specifies an array of strings to be loaded into the list box. |
| [Itemcount](itemcount.md) | [Num](num.md) | in | Specifies a number of items (i.e. "rows"), with the precise meaning being relative to the opcode: |
| [Coldef](coldef.md) | [String](string.md) | in | Defines the column structure. |
| [Exitcode](exitcode.md) | \+/-[Num](num.md) | out | Returns a code indicating how the list was exited; 0 indicates a normal exit via the Enter key, 1 indicates Escape. See the [XTREE](xtreeflags1.md)[ Flags](xtreeflags1.md) parameter for enabling other exit keys.  |
| [XTREE Flags](xtreeflags1.md) | B,4 | in | Used to enable additional exit keys and other options. |
| [File](file_xtree.md) | [String](string.md) | in | Specifies a file to be used for input instead of the _array_ parameter. This is referred to as "file mode." |
| [Mmoclr](mmoclr_xtree.md) | Struct | in | Specifies colors for various parts of the pick list. |
| [XTRCTL](xtrctl.md) | Struct | in/out | A collection of extended parameters and options. |
| [Filidx](filidx.md) | B,4 | out | Creates an index to the file while it is being loaded into the array. |
| [Xinfo](xinfo.md) | [String](string.md) | in/out | This optional parameter may be specified to allow XTREE to return additional information. |


