Difference between revisions of "Ansistring/fr"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "{{Ansistring}} <br> Le type de donnée '''AnsiString''' Der Datentyp '''AnsiString''' n'a aucune limite de taille et se compose d'un tableau...")
 
m (Fixed syntax highlighting; language template; wiki markup)
 
Line 1: Line 1:
{{Ansistring}}
+
{{LanguageBar}}
<br>
+
 
Le [[Data type/fr|type de donnée]] '''AnsiString'''
+
Le [[Data type/fr|type de donnée]] '''AnsiString''' n'a aucune limite de taille et se compose d'un tableau de [[Char/fr|Char]] (1 octet par caractère).
Der [[Data type/de|Datentyp]] '''AnsiString''' n'a aucune limite de taille et se compose d'un tableau de [[Char/fr|Char]] (1 octet par caractère).<br>
+
 
<br>
+
Définition d'un champ de donnée de type AnsiString :
Définition d'un champ de donnée de type AnsiString :<br/>
+
 
<syntaxhighlight>
+
<syntaxhighlight lang="pascal">
 
  Var  
 
  Var  
 
   a: AnsiString;  
 
   a: AnsiString;  
 
</syntaxhighlight>
 
</syntaxhighlight>
<br>
+
 
 +
 
 
Exemples d'affectation valide de valeur :
 
Exemples d'affectation valide de valeur :
<syntaxhighlight>
+
 
 +
<syntaxhighlight lang="pascal">
 
   a := '0123ABCabc456';
 
   a := '0123ABCabc456';
 
   a := a + '!"§$%&/()=?';
 
   a := a + '!"§$%&/()=?';
 
   a := a + IntToStr(45);
 
   a := a + IntToStr(45);
 
</syntaxhighlight>
 
</syntaxhighlight>
<br>
+
 
 +
 
 
Exemples d'affectation invalide de valeur :
 
Exemples d'affectation invalide de valeur :
<syntaxhighlight>
+
 
 +
<syntaxhighlight lang="pascal">
 
   a := True;
 
   a := True;
 
   a := 4;
 
   a := 4;
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 
Dans ces derniers exemples, la valeur n'a pas été convertie en type AnsiString.
 
Dans ces derniers exemples, la valeur n'a pas été convertie en type AnsiString.
<br/>
+
 
 +
{{AutoCategory}}[[Category:Data_types]]

Latest revision as of 13:28, 19 August 2019

Deutsch (de) English (en) français (fr)

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 :

 Var 
   a: AnsiString;


Exemples d'affectation valide de valeur :

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


Exemples d'affectation invalide de valeur :

   a := True;
   a := 4;

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