Embaracdero documents "IsEmpty" methods for string types that I have successfully used with C ++ Builder code.
WideString s;
if (s.IsEmpty())
....
I tried the same from Delphi and could not compile it:
var s: WideString;
begin
if s.IsEmpty then
....
I know that 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 for clarification, this did not mean a problem with String vs Widestring.
Basically, the documents I refer to above describe the syntax of Pascal as well as C ++, but this does not seem to work. I assume this is just a flaw in the documentation.
Returns true if System :: WideString :: WideString is empty.
Pascal Function: IsEmpty: bool;