Name

String Keyword

Syntax

type string;
type Name = string[Constant];

Description

The string keyword represents the string type, which is either AnsiString or ShortString, depending on its use and the $H or $LongStrings compiler directive.

Without a maximum length in square brackets, string is the same as AnsiString (unless you use the $H or $LongStrings compiler directive). With a maximum length, string is a short string type. The maximum string length must be in the range to 255.

See AnsiString and ShortString for more details.

See Also

AnsiChar Type, AnsiString Type, Char Type, Length Function, OleStrToString Function, OleStrToStrVar Procedure, PChar Type, PWideChar Type, SetLength Procedure, SetString Procedure, ShortString Type, StringToOleStr Function, StringToWideChar Function, WideChar Type, WideCharLenToString Function, WideCharLenToStrVar Procedure, WideCharToString Function, WideCharToStrVar Procedure, WideString Type, $H Compiler Directive, $LongStrings Compiler Directive
..................Content has been hidden....................

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