Shortstring/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Shortstring/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Zurück zu den [[Data type/de|Datentypen]].\ | |
| 2 | + | Zurück zu den [[Character and string types/de|Character und String Typen]].\ | |
| 3 | + | Speicherbedarf: 256 Byte (1 Byte Längenangabe und 255 Bytes für die Zeichen)\ | |
| 4 | + | Eigenschaft: Das [[Data field/de|Datenfeld]] vom [[Data type/de|Datentyp]] **Shortstring** ist ein Array, aus Datenfeldern des [[Data type/de|Datentyp]] [[Char/de|Char]].\ | |
| 5 | + | Seine Länge ist standardmässig so festgelegt:\ | |
| 6 | + | ShortString = String\[255\];\ | |
| 7 | + | Der ShortString hat die gleichen Eigenschaften, wie der String bei Turbo-Pascal. | |
| 8 | + | ||
| 9 | + | Definition eines Datenfeldes vom [[Data type/de|Datentyp]] ShortString: | |
| 10 | + | ||
| 11 | + | ``` pascal | |
| 12 | + | Var | |
| 13 | + | s: ShortString; | |
| 14 | + | ``` | |
| 15 | + | ||
| 16 | + | Beispiele für die gültige Zuweisung von Werten: | |
| 17 | + | ||
| 18 | + | ``` pascal | |
| 19 | + | s := '0123ABCabc456'; | |
| 20 | + | s := s + '!"§$%&/()=?'; | |
| 21 | + | s := 'c'; | |
| 22 | + | s := s + IntToStr(45); | |
| 23 | + | ``` | |
| 24 | + | ||
| 25 | + | Beispiele für die ungültige Zuweisung von Werten: | |
| 26 | + | ||
| 27 | + | ``` pascal | |
| 28 | + | s := True; | |
| 29 | + | s := 4; | |
| 30 | + | ``` | |
| 31 | + | ||
| 32 | + | --- | |
| 33 | + | *From the Free Pascal wiki, page "Shortstring/de", as it stood on 2020-01-19 after a change by Trev, 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](/wiki-contact).* | |
| 34 | + | Category: Data types/de | |
| 35 | + | Category: Deutsch |
