Embaracdero documents "IsEmpty" methods for string types, which I've used successfully with C++ Builder code.
WideString s;
if (s.IsEmpty())
....
I tried the same from Delphi, and couldn't get it to compile:
var s: WideString;
begin
if s.IsEmpty then
....
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?
EDIT: Just to clarify, this wasn't meant as a String vs Widestring issue.
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.
Returns true if the System::WideString::WideString is empty.
Pascal: function IsEmpty: bool;