# FormerEscapeSequence class
{: .no_toc }

Holds a piece of text and its replacement, in the form of the earlier escape sequence class of the package.

**FormerEscapeSequence** has two properties, [**EscapeString**](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/EscapeString.md) and [**ReplacementString**](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/ReplacementString.md), and a [**Create**](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/Create.md) method that returns a new instance. It has no method that applies the sequence to a string and cannot describe an ASCII escape. Nothing in the package uses it: [**FormerStringFormat**](/tB/Packages/Contributed/Fmt/FormerEntryPoint/FormerStringFormat.md) creates [**EscapeSequence**](/tB/Packages/Contributed/Fmt/EscapeSequence/index.md) objects.

Unlike **EscapeSequence**, the class is not predeclared, so an instance is created with `New`, and **Create** is called on that instance. The two property setters are declared **Friend**, and a project that references the package can call them as well.

```tb check_build check_run
Dim blank As New FormerEscapeSequence

Dim esc As FormerEscapeSequence
Set esc = blank.Create("\z", "ZZ")
Debug.Print esc.EscapeString & " " & esc.ReplacementString  ' \z ZZ
```

## Properties

- [EscapeString](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/EscapeString.md) -- returns or sets the text to look for
- [ReplacementString](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/ReplacementString.md) -- returns or sets the replacement text

## Methods

- [Create](/tB/Packages/Contributed/Fmt/FormerEscapeSequence/Create.md) -- creates an escape sequence

## See Also

- [EscapeSequence](/tB/Packages/Contributed/Fmt/EscapeSequence/index.md) class -- the escape sequence class that the package uses
- [FormerStringFormat](/tB/Packages/Contributed/Fmt/FormerEntryPoint/FormerStringFormat.md) function -- the older formatter
- [Fmt package](/tB/Packages/Contributed/Fmt/index.md) -- overview
