# \[Solved\] Using FText::Format with TexBlock Text from StringTable

**URL:** <https://forums.unrealengine.com/t/solved-using-ftext-format-with-texblock-text-from-stringtable/145326>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 8, 2020, 2:45am UTC](https://forums.unrealengine.com/t/solved-using-ftext-format-with-texblock-text-from-stringtable/145326 "2020-06-08T02:45:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![benui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benui/32/1145446_2.png) [@benui](https://forums.unrealengine.com/u/benui)\
**Post date:** [June 8, 2020, 5:10am UTC](https://forums.unrealengine.com/t/solved-using-ftext-format-with-texblock-text-from-stringtable/145326/2 "2020-06-08T05:10:49Z")

</div>

From my page on [localizing UIs in Unreal](http://benhumphreys.ca/unreal/ui-localization/#do-use-formattext), you can use FFormatNamedArgs and pass that into FText::Format:

```auto

int32 Value = 150;

FText FormatInput = FText::FromStringTable("MyTable", "HealthFormat");

FFormatNamedArguments Args;
Args.Add("HealthValue", Value);
FText FormattedText = FText::Format( FormatInput, Args );

```

---

_[View the full topic](https://forums.unrealengine.com/t/solved-using-ftext-format-with-texblock-text-from-stringtable/145326)._
