Copie du wikimiroir

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

Ansistring/fr

Deutsch · English · Français

Le type de donnée AnsiString n'a aucune limite de taille et se compose d'un tableau de Char (1 octet par caractère).

Définition d'un champ de donnée de type AnsiString :

pascal
 Var 
   a: AnsiString;

Exemples d'affectation valide de valeur :

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

Exemples d'affectation invalide de valeur :

pascal
   a := True;
   a := 4;

Dans ces derniers exemples, la valeur n'a pas été convertie en type AnsiString.


From the Free Pascal wiki, page "Ansistring/fr", as it stood on 2019-08-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.

Version 1, dernière modification par WikiArchive .