Name

$OpenStrings Compiler Directive

Syntax

{$P+}             // default
{$OpenStrings On} // default
{$P-}
{$OpenStrings Off}

Scope

Local

Description

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.

See Also

OpenString Type, String Keyword
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset