RAD Studio (Common)
ContentsIndex
PreviousUpNext
Open String Parameters (Delphi)
Type  
Switch  
Syntax  
{$P+} or {$P-} {$OPENSTRINGS ON} or {$OPENSTRINGS OFF}  
Default  
{$P+} {$OPENSTRINGS ON}  
Scope  
Local  

Remarks 

The $P directive is meaningful only for code compiled in the {$H-} state, and is provided for backwards compatibility with early versions of Delphi and CodeGear Pascal. $P controls the meaning of variable parameters declared using the string keyword in the {$H-} state. In the {$P-} state, variable parameters declared using the string keyword are normal variable parameters, but in the {$P+} state, they are open string parameters. Regardless of the setting of the $P directive, the openstring identifier can always be used to declare open string parameters.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!