March 2000
Intermediate to advanced
576 pages
18h 13m
English
$LongStrings Compiler Directive
{$H+} // default
{$LongStrings On} // default
{$H-}
{$LongStrings Off}Local
By default, Delphi interprets the string type to
mean AnsiString. If you disable the
$LongStrings compiler directive, Delphi reverts to
the Delphi 1 behavior where string is a
ShortString.
Most
new Delphi programs rely on long strings, which are much easier to
use than short strings. Disable $LongStrings only
to preserve compatibility with Delphi 1.
| AnsiString Type, ShortString Type, String Keyword |
Read now
Unlock full access