Ansistring/de
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:
Var
a: AnsiString;Beispiele für die gültige Zuweisung von Werten:
a := '0123ABCabc456';
a := a + '!"§$%&/()=?';
a := a + IntToStr(45);Beispiele für die ungültige Zuweisung von Werten:
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.
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.
| When | Who | What changed |
|---|---|---|
| Olaf | Created page | |
| Olaf | ||
| Olaf | ||
| Olaf | ||
| Olaf | (minor) | |
| Olaf | ||
| Olaf | (minor) | |
| Olaf | (minor) | |
| Michl | link added (minor) | |
| E-ric | (minor) | |
| Trev | Fixed 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.
