# Evaluator Parent function in button description/tooltip

**URL:** <https://resource.dopus.com/t/evaluator-parent-function-in-button-description-tooltip/51655>\
**Category:** Help & Support\
**Created:** [July 4, 2024, 10:14pm UTC](https://resource.dopus.com/t/evaluator-parent-function-in-button-description-tooltip/51655 "2024-07-04T22:14:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonder](https://resource.dopus.com/user_avatar/resource.dopus.com/yonder/32/26886_2.png) [@yonder](https://resource.dopus.com/u/yonder)\
**Post date:** [July 4, 2024, 10:14pm UTC](https://resource.dopus.com/t/evaluator-parent-function-in-button-description-tooltip/51655/1 "2024-07-04T22:14:16Z")

</div>

If a folder name starts with a lowercase t or n and passed to Parent in a buttons description it'll return the wrong path. Appears the description field is trying to process the escape characters \t and \n.

Reproduce:

1. Create a toolbar button and place in the description field `=Parent(source)`
2. Create folders C:\one\two\three and enter folder three
3. Hover over button created in step 1 and observe the tooltip show C:\one when it should read C:\one\two

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [July 5, 2024, 12:44am UTC](https://resource.dopus.com/t/evaluator-parent-function-in-button-description-tooltip/51655/2 "2024-07-05T00:44:04Z")

</div>

`\n` in a tooltip means a new line.

You can escape the string like this:

```plaintext
=RegExS(Parent(source), "(\\[tnr])", "\\\1")

```

---

<div class="post-metadata">

**Author:** ![yonder](https://resource.dopus.com/user_avatar/resource.dopus.com/yonder/32/26886_2.png) [@yonder](https://resource.dopus.com/u/yonder)\
**Post date:** [July 5, 2024, 1:17am UTC](https://resource.dopus.com/t/evaluator-parent-function-in-button-description-tooltip/51655/3 "2024-07-05T01:17:18Z")

</div>

Works like a charm, thanks!
