# Using a string in unreal

**URL:** <https://forums.unrealengine.com/t/using-a-string-in-unreal/398316>\
**Category:** Editor Scripting\
**Tags:** variables, Variable, parameter, string, unreal-engine, CPP, question\
**Created:** [August 5, 2017, 9:38pm UTC](https://forums.unrealengine.com/t/using-a-string-in-unreal/398316 "2017-08-05T21:38:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f5c413](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f5c413](https://forums.unrealengine.com/u/anonymous_user_90f5c413)\
**Post date:** [August 5, 2017, 9:38pm UTC](https://forums.unrealengine.com/t/using-a-string-in-unreal/398316/1 "2017-08-05T21:38:06Z")

</div>

I am trying to add something so that the player can name themselves and a few other things whatever they like. However, Visual Studio is not recognizing the type string, even after I have added #include . I also cannot use void in this situation because I am adding it as a parameter.

---

<div class="post-metadata">

**Author:** ![Darkimage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Darkimage](https://forums.unrealengine.com/u/Darkimage)\
**Post date:** [August 5, 2017, 9:49pm UTC](https://forums.unrealengine.com/t/using-a-string-in-unreal/398316/2 "2017-08-05T21:49:47Z")

</div>

It can be cause by the Intellisense not updating/parsing the current include files, you can try to write a simple code like this `string mystring = "Hello!";` and it should compile fine!.

Anyway unreal has also the [FString](https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Containers/FString/index.html) class, take a look also [here](https://wiki.unrealengine.com/String_Conversions:_FString_to_FName,_FString_to_Int32,_Float_to_FString) for type conversion.
