Difference between revisions of "String"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Description== String is a basic type which holds a null terminated string which consists out of characters that can be both ansi and unicode, SCAR divi does however no...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
==Availability==
 +
SCAR Divi 3.00 > Current
 +
 +
===Aliases===
 +
*AnyString (SCAR Divi 3.25 > Current)
 +
 
==Description==
 
==Description==
String is a basic type which holds a null terminated string which consists out of [[Char|characters]] that can be both ansi and unicode, SCAR divi does however not support unicode characters, so under normal circumstances a string should only contain [[AnsiChar|ansi characters]] which can also be stored in [[AnsiString]].
+
String is a basic type which holds a null terminated string which consists out of [[Char|characters]] that can be both ansi and unicode, usually it will only contain [[AnsiChar|ansi characters]] which can also be stored in [[AnsiString]]. It is recommended to use AnsiString instead.
  
 
==Example==
 
==Example==
Line 18: Line 24:
 
*[[Char]]
 
*[[Char]]
 
*[[AnsiString]]
 
*[[AnsiString]]
*[[AnyString]]
 
  
 
[[Category:Types]]
 
[[Category:Types]]
 
[[Category:Basic Types]]
 
[[Category:Basic Types]]

Latest revision as of 11:50, 25 July 2012

Availability

SCAR Divi 3.00 > Current

Aliases

  • AnyString (SCAR Divi 3.25 > Current)

Description

String is a basic type which holds a null terminated string which consists out of characters that can be both ansi and unicode, usually it will only contain ansi characters which can also be stored in AnsiString. It is recommended to use AnsiString instead.

Example

var
  s: string;
begin
  s := 'Hello World!';
  WriteLn(s);
end.

Output:

 Hello World!

See Also