title: how to correctly format WideString using sprintf or wprintf
body: <p>I am using this code to format WideString but with no success! It prints unexpecting results :(</p>
  
  <p>here is my code</p>
  
  <pre><code>WideString s;
  dep=new TStringList();
  while(!DM-&gt;tDepPln-&gt;Eof)
      {
      //where tDepPlnFltNo is mysql field type of WideString
          s.sprintf(L"%-11S",DM-&gt;tDepPlnFltNo-&gt;AsWideString);
          dep-&gt;Add(s);
          DM-&gt;tDepPln-&gt;Next();
      }
  </code></pre>
  
  <p>when I use <code>s.sprintf(L"%-11S","blablabla");</code> it works but when i set to mysql field type of WideString it's not!!
  I think the problem is with conversion!</p>
  
  <p>How to correct it ??? </p>