$OpenStrings Compiler Directive
The $OpenStrings
compiler directive treats all
string
-type parameters as
OpenString
parameters. If
$LongStrings
is enabled, Delphi ignores
$OpenStrings
.
The $OpenStrings
directive affects only parameters
declared with the string
type, and only when long
strings are disabled. Even if $OpenStrings
is
enabled, you can use the OpenString
type to
declare an open string parameter.
$OpenStrings
exists for backward compatibility.
New Delphi programs should use long strings instead of short strings.