Copie du wikimiroir

Ceci est un miroir du wiki de pascal.chat. La modification, l’historique et la connexion se trouvent là-bas.

Shortstring/fr

Deutsch · English · Français

Occupation en mémoire : 256 octets
Propriétés :
Un champ de donnée de type de donnée Shortstring est un tableau de champ de donnée de type Char.
Sa longueur par défaut est défini comme :
ShortString = String[255];
Définition d'un champ de donnée de type ShortString:

pascal
 Var 
   s: ShortString;

Exemples d'affectation de valeur correcte :

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

Exemples d'affectation de valeur incorrecte :

pascal
   s := True;
   s := 4;

Dans les exemples ci-dessus les valeurs à transférer n'ont pas été converties dans le type de données String (cast).\

Remarques :


From the Free Pascal wiki, page "Shortstring/fr", as it stood on 2022-03-25 after a change by Circular, 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.

Version 2, dernière modification par WikiArchive .