# AutoCompleteSourceConstants enumeration
{: .no_toc }

Selects where the suggestions of an [**AutoComplete**](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/AutoComplete.md) object come from.

The enumeration is declared inside the **AutoComplete** class, and its members are used without a qualifier, or with the name of the enumeration. The value is passed to the *Source* parameter of **Init**, which attaches the source to a text box.

| Member | Value | Description |
|:-------|:------|:------------|
| **AutoCompleteSourceNone**{: #AutoCompleteSourceNone } | `0` | Not a source. **Init** raises run-time error 380 for it. |
| **AutoCompleteSourceHistory**{: #AutoCompleteSourceHistory } | `1` | The shell history list. |
| **AutoCompleteSourceFileSystem**{: #AutoCompleteSourceFileSystem } | `2` | File-system paths. The [**AutoCompleteFileSystemOptionConstants**](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/Enumerations/AutoCompleteFileSystemOptionConstants.md) set in **FileSystemOptions** choose which objects are offered. |
| **AutoCompleteSourceMRU**{: #AutoCompleteSourceMRU } | `3` | The shell most-recently-used list. |
| **AutoCompleteSourceAll**{: #AutoCompleteSourceAll } | `4` | The history, the file system and the most-recently-used list together, in that order. |
| **AutoCompleteSourceCustomSource**{: #AutoCompleteSourceCustomSource } | `5` | The strings of the array set in **CustomSource**. |

## Used by

- [**AutoComplete**](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/AutoComplete.md) class: [**Init**](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/AutoComplete.md#init)

## See Also

- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/Enumerations/index.md) -- all the enumerations of the package
- [AutoCompleteFileSystemOptionConstants](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/Enumerations/AutoCompleteFileSystemOptionConstants.md) enumeration
- [AutoComplete](/twinBASIC-docs/tB/Packages/Contributed/AutoCompleteLib/AutoComplete.md) class
