Pwidechar/fr

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Le type de donnée PWideChar n'a pas de limitation de taille et est un pointeur sur une chaîne Widestring terminée par Null.

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

 Var 
   p: PWideChar;

Exemples d'affectation de valeurs correctes :

   p := 'Dies ist ein Null-terminierter String.';
   p := IntToStr(45);

Exemple d'affectation de valeur incorrecte :

   p := 45;

Dans l'exemple ci-dessus, la valeur à affecter n'a pas été convertie en Punicodechar (cast).