# TextImport Method

> Obsolete method that loads text in ANSI format from a file and inserts it at the current caret position of a Text Control, returning True on success.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > Obsolete Properties, Methods and Events > TextImport Method
- **183 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textimport-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textimport-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textimport-method/llms-full.txt

---

Loads text in ANSI format and inserts it at the current caret position.

### Syntax

```vbscript
TXTextControl.TextImport FileName
```

### Parameters

| Parameter | Description |
|---|---|
| FileName | Is the name of the file, Text Control uses for loading. |

### Return Value

The method returns True when the text could be imported. Otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| FileName | String |
| Return value | Boolean |

### See Also

- [TextExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textexport-method/llms-full.txt)
- [RTFExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/llms-full.txt)
- [Load Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/load-method/llms-full.txt)

---

## Nearby

- **Previous:** [TextExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textexport-method/llms-full.txt)
- **Next:** [ViewClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewclicked-event/llms-full.txt)
