Sign in Join
Wiki copytemporary

Ansistring/de

Deutsch · English · Français

Zurück zu den Datentypen.

Zurück zu den Character und String Typen.

Der Datentyp AnsiString hat keine Einschränkung in der Größe und besteht aus einem Array des Datentyp Char.

Definition eines Datenfeldes vom Datentyp AnsiString:

pascal
 Var 
   a: AnsiString;

Beispiele für die gültige Zuweisung von Werten:

pascal
   a := '0123ABCabc456';
   a := a + '!"§$%&/()=?';
   a := a + IntToStr(45);

Beispiele für die ungültige Zuweisung von Werten:

pascal
   a := True;
   a := 4;

Im unteren Beispiel wurde der zu übergebende Wert nicht auf den Datentyp String umgewandelt (gecastet).


From the Free Pascal wiki, page "Ansistring/de", as it stood on 2019-12-23 after a change by Polluks, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Edited on wiki.freepascal.org by 5 people, 2012–2019

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
OlafCreated page
Olaf
Olaf
Olaf
Olaf (minor)
Olaf
Olaf (minor)
Olaf (minor)
Michllink added (minor)
E-ric (minor)
TrevFixed syntax highlighting; language template; wiki markup (minor)
Polluks (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.