Sign in Join
Wiki copytemporary

Shortstring/de

Deutsch · English · Français

Zurück zu den Datentypen.
Zurück zu den Character und String Typen.
Speicherbedarf: 256 Byte (1 Byte Längenangabe und 255 Bytes für die Zeichen)
Eigenschaft: Das Datenfeld vom Datentyp Shortstring ist ein Array, aus Datenfeldern des Datentyp Char.
Seine Länge ist standardmässig so festgelegt:
ShortString = String[255];
Der ShortString hat die gleichen Eigenschaften, wie der String bei Turbo-Pascal.

Definition eines Datenfeldes vom Datentyp ShortString:

pascal
 Var 
   s: ShortString;

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

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

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

pascal
   s := True;
   s := 4;

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.

Revision 1, last changed by WikiArchive .

Talk about this page

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