Sign in Join
Wiki copytemporary

Longbool/fr

Deutsch · English · Français

Plage de valeurs: True .. False.

Occupation en mémoire: 4 octets soit 32 bits.

Propriétés:

Un champ de donnée de type de donnée LongBool ne prend que des valeurs booléennes.

Tout autre valeur conduit à une erreur de compilation, le programme ne sera donc pas créé.

Définition d'un tableau de type Longbool:

pascal
 Var 
   l: LongBool;

Exemples d'affectation de valeur correcte :

pascal
   l := True;
   l := False;
   l := 10 <> 20; //Das Ergebnis des Vergleichs ist wahr (True)

Exemples d'affectation de valeur incorrecte :

pascal
   l := 'True';
   l := 'False';
   l := '10 <> 20';
   l := 24;

Ces dernières instructions tentent d'affecter directement des valeurs non bboléennes, ce que le compilateur refusera.\


From the Free Pascal wiki, page "Longbool/fr", as it stood on 2020-02-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.