title: Converting Unicodestring to Char[]
body: <p>I've got a form with a Listbox which contains lines of four words.
  When I click on one line, these words should be seen in four different textboxes.
  So far, I've got everything working, yet I have a problem with chars converting.</p>
  <p>The string from the listbox is a UnicodeString but the strtok uses a char[].
  The compiler tells me it &quot;Cannot Convert UnicodeString to Char[]&quot;. This is the code I am using for this:</p>
  <pre><code>{
   int a;
   UnicodeString b;
  
   char * pch;
   int c;
  
   a=DatabaseList-&gt;ItemIndex;   //databaselist is the listbox
   b=DatabaseList-&gt;Items-&gt;Strings[a]; 
  
   char str[] = b; //This is the part that fails, telling its unicode and not char[].
   pch = strtok (str,&quot; &quot;);      
   c=1;                          
   while (pch!=NULL)
      {
         if (c==1)
         {
            ServerAddress-&gt;Text=pch;
         } else if (c==2)
         {
            DatabaseName-&gt;Text=pch;
         } else if (c==3)
         {
            Username-&gt;Text=pch;
         } else if (c==4)
         {
            Password-&gt;Text=pch;
         }
         pch = strtok (NULL, &quot; &quot;);
         c=c+1;
      }
  }
  </code></pre>
  <p>I know my code doesn't look nice, pretty bad actually. I'm just learning some programming in C++.</p>
  <p>How can I convert this?</p>