title: Can I use string "IsEmpty" methods in Delphi
body: <p>Embaracdero documents <a href="http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/System__WideString__IsEmpty.html" rel="noreferrer">"IsEmpty" methods</a> for string types, which I've used successfully with C++ Builder code. </p>
  
  <pre><code>WideString s;
  
  if (s.IsEmpty())
     ....
  </code></pre>
  
  <p>I tried the same from Delphi, and couldn't get it to compile:</p>
  
  <pre><code>var s: WideString;
  begin
    if s.IsEmpty then
    ....
  </code></pre>
  
  <p>I know you can compare with an empty string, or call the Length function, but is it possible to call this IsEmpty method from Delphi?</p>
  
  <p>EDIT: Just to clarify, this wasn't meant as a String vs Widestring issue. </p>
  
  <p>Basically, the docs I link to above describe a Pascal syntax, as well as a C++ one, yet this doesn't seem to work. I assume this is just a flaw in the documentation.</p>
  
  <p><em>Returns true if the System::WideString::WideString is empty.</em></p>
  
  <p><strong>Pascal:</strong> function IsEmpty: bool;</p>