convert unicodestring to string in xrad studio
<p>I have a problem in "Rad Studio 10 Seattle" where I am trying to get text input from a <code>TEdit</code> object and I get a errormessage saying  </p>

<blockquote>
  <p>E2034 Cannot convert 'UnicodeString' to 'string'</p>
</blockquote>

<p>My code is as follows:  </p>

<pre><code>this-&gt;shopVar-&gt;addDog(edName-&gt;Text, StrToInt(edAge-&gt;Text), "male", "dogspecial");
</code></pre>

<p>This function <code>addDog</code> takes <code>(string, int, string, string)</code><br>
When I try to send the text from the <code>TEdit</code> object with <code>edName-&gt;Text</code> I get the errormessage mentioned earlier.    </p>

<p>My question is as follows, can i make a convertion on <code>edName</code> from unicodestring to string or do I have to change the datatype of my parameterlist? If so, how do I do it?<br>
I have been searching for this issue but have not found anything that is similar to my problem.</p>