+Paramètre de la déclaration graphique ##[[KeyPgPutgraphics Put]]## qui sélectionne une méthode définie par l'utilisateur
**Put** [ //target//, ] [ STEP ] ( //x//,//y// ), //source// [ ,( //x1//,//y1// )-( //x2//,//y2// ) ], **Custom**, //custom_function_ptr// [, //parameter//]
Obligatoire.
nom de la fonction définie par l'utilisateur.
optional ##[[KeyPgPointer Pointeur]]## facultatif à passer à la fonction; si omis, la valeur par défaut est zéro (##0##).
##**Custom**## sélectionne une fonction définie par l'utilisateur comme méthode utilisée pour modifier (blitting) un tampon image.
La méthode ##Custom## utilise une fonction définie parl'utilisateur pour calculer la valeur finale des pixels à dessiner dansle tampon destination. Cette fonction sera appelée une fois pour chaquepixel de l'image source , et recevra les valeurs des pixels source etdestination, et un pointeur de données passé par la fonction ##[[KeyPgPutgraphics Put]]##. La valeur du pixel renvoyée sera la valeur utilisée pour le tracé dans le tampon destination. La fonction à la forme:
##[[KeyPgDeclare Declare]] [[KeyPgFunction Function]] //identifier// ( _
+ [[KeyPgByval ByVal]] //source_pixel// [[KeyPgAs As]] [[KeyPgUinteger UInteger]], _
+ [[KeyPgByval ByVal]] //destination_pixel// [[KeyPgAs As]] [[KeyPgUinteger UInteger]], _
+ [[KeyPgByval ByVal]] //parameter// [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]] _
+ ) [[KeyPgAs As]] [[KeyPgUinteger UInteger]]##
+
##//identifier//## est le nom de la fonction.
##//source_pixel//## est la valeur courante du pixel de l'image source.
##//destination_pixel//## est la valeur courante du pixel de l'image destination.
##//parameter//## est le paramètre qui est passé par la commande ##[[KeyPgPutgraphics Put]]##. Si omis, sa valeur sera zéro.
%%(freebasic)
+
+Function dither ( ByVal source_pixel As UInteger, ByVal destination_pixel As UInteger, ByVal parameter As Any Ptr ) As UInteger
''Retourne soit le pixel source soit le pixel destination, en fonction de la valeur du rnd
+
+
+
+ {{fbdoc item="section" value="Differences de dialecte
+
- Non utilisable dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ {{fbdoc item="diff"}}
- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
- ##[[KeyPgPutgraphics Put (Graphique)]]##
) [[KeyPgAs as]] [[KeyPgUinteger uinteger]]##
##//identifier//## is the name of the function.
diff --git a/fbdocs/manual/cache/KeyPgCvd.wakka b/fbdocs/manual/cache/KeyPgCvd.wakka
index 23ad02fecb..9a9df22f33 100644
--- a/fbdocs/manual/cache/KeyPgCvd.wakka
+++ b/fbdocs/manual/cache/KeyPgCvd.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVD"}}----
-Converts an eight byte string to a double-precision variable
+Conversion d'une chaîne de 8 octets en une variable double-précision
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,15 +9,15 @@ Converts an eight byte string to a double-precision variable
##
{{fbdoc item="param"}}
##//str//##
- A [[KeyPgString string]] exactly eight bytes in length with a binary copy of a double-precision variable stored in it.
+ Une chaîne ([[KeyPgString String]]) ayant exactement 8 octets de longueur, copie d'une variable double-précision.
-{{fbdoc item="ret"}}
- Returns a [[KeyPgDouble double-precision]] variable to copy the binary copy of a double to.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une variable [[KeyPgDouble Double-Precision]] qui contient la copie binaire d'un DOUBLE.
{{fbdoc item="desc"}}
- Does a binary copy from a 8-byte-string to a double-precision variable. The result will have a sense only if the string contained a IEEE754 formated double value, as the one generated by ##[[KeyPgMkd Mkd]]##.
+ Exécute une copie binaire d'une chaîne-8-octets vers une variable double-précision. Le résultat n'aura un sens que si la chaîne contient une valeur double formatée IEEE754, comme celle générée par ##[[KeyPgMkd MKD]]##.
- This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour lire une valeur numérique à partir d'un tampon sans utiliser de définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvd.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ sleep
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgMkd Mkd]]##
diff --git a/fbdocs/manual/cache/KeyPgCvi.wakka b/fbdocs/manual/cache/KeyPgCvi.wakka
index 64e5214b52..8b08f42cee 100644
--- a/fbdocs/manual/cache/KeyPgCvi.wakka
+++ b/fbdocs/manual/cache/KeyPgCvi.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVI"}}----
-Converts an four byte string to an integer variable
+Conversion d'une chaîne de 4 octets en une variable entière
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvi** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,17 +9,17 @@ Converts an four byte string to an integer variable
##
{{fbdoc item="param"}}
##//str//##
- A [[KeyPgString string]] exactly four bytes in length with a binary copy of an integer variable stored in it.
+ Une chaîne ([[KeyPgString String]]) ayant exactement 4 octets de longueur, copie d'une variable entière.
-{{fbdoc item="ret"}}
- An [[KeyPgInteger integer]] variable to copy the binary copy of a integer to.
+{{fbdoc item="section" value="Valeur retournée
+ Une variable entière ([[KeyPgInteger Integer]]) pour contenir la copie binaire d'un ENTIER.
{{fbdoc item="desc"}}
- Returns a 32 bit ##[[KeyPgInteger Integer]]## value using the binary data contained in a string that is **exactly** four bytes in length. An integer value of zero (0) is returned if the string is not exactly four bytes in length.
+ Retourne une valeur entière (##[[KeyPgInteger Integer]]##) 32 bits en utilisant les données contenues dans une chaîne qui a **exactement** 4 octets de longueur. Une valeur entière zéro (0) est retournée si la chaîne n'a pas exactement 4 octets de longueur.
- ##**Cvi**## is used to convert 4-byte-strings created with ##[[KeyPgMki Mki]]##.
+ ##**CVI**## est utilisé pour convertir des chaînes-4-octets crées avec ##[[KeyPgMki MKI]]##.
- This function can also be used to convert 32 bit integer values from a memory or file buffer without the need for a ##[[KeyPgType ]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvi**## to convert strings that have been read from a buffer. The ##[[KeyPgCvi Cvi]]## and ##[[KeyPgMki Mki]]## functions are processor dependent. That is, they will return different results depending on the endianness of the processor.
+ Cette fonction peut aussi convertir des valeurs entières 32 bits à partir de la mémoire ou d'un tampon fichier sans l'utilisation d'une structure ##[[KeyPgType Type]]##. Cependant, tout comme avec la structure type, une attention particulière doit être prise lors de l'utilisation ##**CVI**## pour convertir des chaînes qui ont été lues à partir d'un tampon. Les fonctions ##[[KeyPgCvi CVI]]## et ##[[KeyPgMki MKI]]## sont dépendantes du processeur. Elles retourneront des résultats différents dépendant de l'//endian// du processeur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvi.bas"}}%%(freebasic)
@@ -31,10 +31,10 @@ sleep
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, ##**Cvi**## expects a 2-byte-string, since a QB integer is only 16 bits. Only the first two bytes of the string are used, even if the string happens to be longer than two bytes.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, ##**CVI**## attend des chaînes-2-octets, car un entier QB integer n'a que 16 bits. Seuls les deux premiers octets de la chaîne sont utilisés, même si la chaîne à une longueur supérieure à 2 octets.
{{fbdoc item="diff"}}
- - In QB an error occurs if the string passed is less than two bytes in length.
+ - Dans QB une erreur apparaît si la chaîne passée a une longueur supérieure à 2 octets.
{{fbdoc item="see"}}
- ##[[KeyPgMki Mki]]##
diff --git a/fbdocs/manual/cache/KeyPgCvl.wakka b/fbdocs/manual/cache/KeyPgCvl.wakka
index cd42032bf5..6c331c5fe2 100644
--- a/fbdocs/manual/cache/KeyPgCvl.wakka
+++ b/fbdocs/manual/cache/KeyPgCvl.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVL"}}----
-Converts an four byte string to an integer (long) variable
+Conversion d'une chaîne de 4 octets en une variable entière longue
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvl** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,15 +9,15 @@ Converts an four byte string to an integer (long) variable
##
{{fbdoc item="param"}}
##//str//##
- A [[KeyPgString string]] exactly four bytes in length with a binary copy of an integer variable stored in it.
+ Une [[KeyPgString String (chaîne)]] ayant exactement 4 octets de longueur, copie d'une variable entière.
-{{fbdoc item="ret"}}
- A [[KeyPgInteger integer]] variable to copy the binary copy of a integer to.
+{{fbdoc item="section" value="Valeur retournée
+ Une variable [[KeyPgInteger Integer (entière)]] pour contenir la copie binaire d'un ENTIER.
{{fbdoc item="desc"}}
- Does a binary copy from a 4-byte-string to a long variable. The result will have a sense only if the string contained a correctly formatted integer, as the one generated by ##[[KeyPgMkl Mkl]]## or ##[[KeyPgMki Mki]]##.
+ Effectue une copie d'une chaîne-4-octets vers une variable LONGue. Le résultat n'aura un sens que si la chaîne contient un ENTIER correctement formaté, comme ceux produit par ##[[KeyPgMkl MKL]]## ou ##[[KeyPgMki MKI]]##.
- This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour lire des valeurs à partir de tampons sans utiliser une définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvl.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ sleep
%%
{{fbdoc item="diff"}}
- - None.
+ - Aucune.
{{fbdoc item="see"}}
- ##[[KeyPgMkl Mkl]]##
diff --git a/fbdocs/manual/cache/KeyPgCvlongint.wakka b/fbdocs/manual/cache/KeyPgCvlongint.wakka
index 1170b695c7..99b97b018d 100644
--- a/fbdocs/manual/cache/KeyPgCvlongint.wakka
+++ b/fbdocs/manual/cache/KeyPgCvlongint.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVLONGINT"}}----
-Converts an eight byte string to a long integer variable
+Conversion d'une chaîne de 8 octets en une variable entière longue
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
@@ -9,15 +9,15 @@ Converts an eight byte string to a long integer variable
##
{{fbdoc item="param"}}
##//str//##
- A [[KeyPgString string]] exactly eight bytes in length with a binary copy of a long integer variable stored in it.
+ Une chaîne ([[KeyPgString String]]) ayant exactement 8 octets de longueur, copie d'une variable entière longue.
-{{fbdoc item="ret"}}
- A [[KeyPgLongint longint]] variable to copy the binary copy of a long integer to.
+{{fbdoc item="section" value="Valeur retournée
+ Une variable [[KeyPgLongint LongInt]] pour contenir la copie binaire d'un ENTIER LONG.
{{fbdoc item="desc"}}
- Does a binary copy from an 8-byte-string to a longint variable. The result will have a sense only if the string contained a correctly formatted longint, as the one generated by ##[[KeyPgMklongint Mklongint]]##
+ Effectue une copie d'une chaîne-8-octets vers une variable ENTIERe LONGue. Le résultat n'aura un sens que si la chaîne contient un ENTIER LONG correctement formaté, comme ceux produit par ##[[KeyPgMkl MKLongInt]]##.
- This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour lire des valeurs à partir de tampons sans utiliser une définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvlongint.bas"}}%%(freebasic)
@@ -29,13 +29,13 @@ sleep
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Cvlongint""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Cvlongint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+{{fbdoc item="see"}}
+ - ##[[KeyPgMklongint MKLongInt]]##
{{fbdoc item="see"}}
- ##[[KeyPgMklongint Mklongint]]##
diff --git a/fbdocs/manual/cache/KeyPgCvs.wakka b/fbdocs/manual/cache/KeyPgCvs.wakka
index 7752eaec8c..e86aaec7c4 100644
--- a/fbdocs/manual/cache/KeyPgCvs.wakka
+++ b/fbdocs/manual/cache/KeyPgCvs.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVS"}}----
-Converts an four byte string to an single-precision variable
+Conversion d'une chaîne de 4 octets en une variable simple-précision
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
@@ -9,15 +9,15 @@ Converts an four byte string to an single-precision variable
##
{{fbdoc item="param"}}
##//str//##
- A [[KeyPgString string]] exactly four bytes in length with a binary copy of an single-precision variable stored in it.
+ Une chaîne ([[KeyPgString String]]) ayant exactement 4 octets de longueur, copie d'une variable simple-précision.
-{{fbdoc item="ret"}}
- Returns a [[KeyPgSingle single]] variable to copy the binary copy of a single to.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une variable [[KeyPgLongint Single]] pour contenir la copie binaire d'un nombre SIMPLE PRECISION.
{{fbdoc item="desc"}}
- Does a binary copy from a 4-byte-string to a ##[[KeyPgSingle Single]]## variable. The result will have a sense only if the string contained a IEEE754 formated single value, as the one generated by ##[[KeyPgMks Mks]]##.
+ Effectue une copie d'une chaîne-4-octets vers une variable ##[[KeyPgSingle Single (simple précision)]]##. Le résultat n'aura un sens que si la chaîne contient une valeur SIMPLE PRECISION formatée IEEE754, comme celles produites par ##[[KeyPgMkl MKS]]##.
- This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour lire des valeurs à partir de tampons sans utiliser une définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvs.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ sleep
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgMks Mks]]##
diff --git a/fbdocs/manual/cache/KeyPgCvshort.wakka b/fbdocs/manual/cache/KeyPgCvshort.wakka
index 8995861d2b..c180637a3b 100644
--- a/fbdocs/manual/cache/KeyPgCvshort.wakka
+++ b/fbdocs/manual/cache/KeyPgCvshort.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CVSHORT"}}----
-Converts an two byte string to a short variable
+Conversion d'une chaîne de 2 octets en une variable [[KeyPgShort Short]]
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvshort** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgShort short]]
@@ -9,15 +9,15 @@ Converts an two byte string to a short variable
##
{{fbdoc item="param"}}
##//str//##
- A ##[[KeyPgString String]]## exactly two bytes in length with a binary copy of a short variable stored in it.
+ Une chaîne ([[KeyPgString String]]) ayant exactement 2 octets de longueur, copie d'une variable [[KeyPgShort Short]].
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgShort Short]]## variable to copy the binary copy of a short to.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une variable ##[[KeyPgShort Short]]## qui contient la copie binaire d'un ##[[KeyPgShort Short]]##.
{{fbdoc item="desc"}}
- Does a binary copy from a 2-byte-string to a ##[[KeyPgShort Short]]## variable. The result will have a sense only if the string contained a correctly formatted ##[[KeyPgShort Short]]##, as the one generated by ##[[KeyPgMkshort Mkshort]]##
+ Effectue une copie d'une chaîne-2-octets vers une variable ##[[KeyPgSingle Short (court)]]##. Le résultat n'aura un sens que si la chaîne contient une valeur ##[[KeyPgShort Short]]## correctement formatée, comme celles produites par ##[[KeyPgMkl MKShort]]##.
- This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour lire des valeurs à partir de tampons sans utiliser une définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/cvshort.bas"}}%%(freebasic)
@@ -28,13 +28,13 @@ print a, cvshort(b)
sleep
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Cvshort""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Cvshort**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="diff"}}
- - In QBasic this function is called CVI
+{{fbdoc item="see"}}
+ - ##[[KeyPgMkshort MKShort]]##
{{fbdoc item="see"}}
- ##[[KeyPgMkshort Mkshort]]##
diff --git a/fbdocs/manual/cache/KeyPgData.wakka b/fbdocs/manual/cache/KeyPgData.wakka
index f786247dfe..59b35c1fda 100644
--- a/fbdocs/manual/cache/KeyPgData.wakka
+++ b/fbdocs/manual/cache/KeyPgData.wakka
@@ -1,22 +1,22 @@
{{fbdoc item="title" value="DATA"}}----
-Statement to store data at compile time.
+Déclaration pour stocker des données lors de la compilation.
{{fbdoc item="syntax"}}##
**Data** //constant_expression1// [,//constant_expression2//]...
##
{{fbdoc item="desc"}}
- ##Data## stores a list of constant numeric or alphabetical expressions that are evaluated at compile time (except with //[[CompilerOptlang -lang qb]]//) and stored as constants that can be read into variables by using ##[[KeyPgRead Read]]##.
+ ##Data## stocke une liste d'expressions constantes numériques ou alphabétiques qui sont évaluées au moment de la compilation (excepté avec //[[CompilerOptlang -lang qb]]//) et stockées sous forme de constantes qui peuvent être lues dans des variables en utilisant ##[[KeyPgRead Read]]##.
- All the ##**Data**## statements in the program behave as a single chained list; after the last element of one ##**Data**## statement is read, the first element of the following ##**Data**## statement will be read.
- The program should not attempt to ##[[KeyPgRead Read]]## after the last ##**Data**## element. The results are (in all dialects) undefined, and the program may crash (Page Fault).
+ Toutes les déclarations de ##**Data**##s dans le programme se comportent comme une liste unique enchaînée; après la lecture du dernier élément d'une déclaration de ##**Data**##, le premier élément de la déclaration suivante ##**Data**## sera lu.
+ Le programme ne doit pas tenter un ##[[KeyPgRead Read]]## après le dernier élément ##**Data**##. Les résultats sont (dans tous les dialectes) indéfinis et le programme peut se bloquer (Page Fault = Erreur de page).
- ##**Data**## statements are only visible from within the module in which they are defined.
+ Les déclarations ##**Data**## ne sont visibles que depuis le module dans lequel ells sont définies.
- ##**Data**## constants can only be of simple types (numeric or string). A numeric value can be read as a numeric literal into a string. A string read into a numeric variable will be evaluated by the ##[[KeyPgVal Val]]## function. ##[[KeyPgConst Const]]##s can be used as items of data except in the //[[CompilerOptlang -lang qb]]// dialect, where their names are considered as normal text.
+ Les constantes ##**Data**## ne peuvent être que des types simples (numériques ou chaînes). Une valeur numérique peut être lue comme un littéral numérique dans une chaîne. Une chaîne lue dans une variable numérique sera évaluée par la fonction ##[[KeyPgVal Val]]##. Les ##[[KeyPgConst Const]]##s peuvent être utilisées comme éléments de données, sauf dans le dialecte //[[CompilerOptlang -lang qb]]//, où leurs noms sont considérés comme du texte normal.
- The "##**[[KeyPgRestore Restore]]** //label//##" statement makes the first ##**Data**## item after the ##//label//## the next item to be read, allowing the user to choose specific sections of data to read.
+ //label//## de la déclaration ##**[[KeyPgRestore Restore]]**## fait que le premier item de ##**Data**## après ##//label//## sera le suivant à lire, permettant à l'utilisateur de choisir des sections spécifiques de données à lire.
- ##**Data**## is normally used to initialize variables. ""FreeBASIC"" also allows the initialization of static variables when they are ##[[KeyPgDim Dim]]##ensioned - see [[ProPgInitialization Variable Initializers]] for more information.
+ ##**Data**## est normalement utilisé pour initialiser les variables. FreeBasic permet aussi l'initialisation de variables statiques quand elles sont ##[[KeyPgDim Dim]]##ensionnées - Voir [[ProPgInitialization Initialiseurs de variables]] pour plus d'informations.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/data/data.bas"}}%%(freebasic)
@@ -56,12 +56,12 @@ DATA 3, 234, 435/4, 23+433, 87643, "Good" + "Bye!"
%%
{{fbdoc item="lang"}}
- - //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// considers data items as constant expressions that are evaluated during compilation and its result stored in the program.
- - //[[CompilerOptlang -lang qb]]// considers unquoted words, including names of variables and constants, as literal strings, and stores them without change, as in QBASIC. Unquoted strings are delimited by commas, and a colon or a line-break signifies the end of the ##**Data**## statement. Unquoted strings are trimmed of whitespace at the beginning and end.
+ - //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]// considèrent les items de ##**Data**## comme des expressions constantes qui sont évaluées pendant la compilation et leur résultat stocké dans le programme.
+ - //[[CompilerOptlang -lang qb]]// considère les mots non-commentés, inclus les noms de variables et constantes, comme des chaînes littérales, et les stocke sans changement, comme dans QBASIC. Les chaînes non-commentées sont délimitées par des virgules, et deux-points (:) ou un fin de ligne signifie la fin de la déclaration ##**Data**##. Dans les chaînes non-commentées les espaces sont éliminés au début et à la fin.
{{fbdoc item="diff"}}
- - Outside of the //[[CompilerOptlang -lang qb]]// dialect, alphabetic string literals must be enclosed within quotation marks, in QBASIC this was optional.
- - In QBASIC empty items evaluated to number ##0## or to empty strings, in ""FreeBASIC"" they give a compile error. In QBASIC a comma at the end of the statement made an additional, empty item, evaluated to ##0## or an empty string. In ""FreeBASIC"" they give a compile error.
+ - En dehors du dialecte //[[CompilerOptlang -lang qb]]// les chaînes de littéraux alphabétiques doivent être entre guillemets, dans QBASIC cette utilisation est facultative.
+ - Dans QBASIC les items vides sont évalués au nombre ##0## ou à des chaînes vides, dans FreeBASIC ils donnent une erreur de compilation. Dans QBASIC une virgule à la fin de la déclaration amène un item supplémentaire, vide, évalué à ##0## ou une chaîne vide. Dans FreeBASIC ils donnent une erreur de compilation.
{{fbdoc item="see"}}
- ##[[KeyPgRead Read]]##
diff --git a/fbdocs/manual/cache/KeyPgDate.wakka b/fbdocs/manual/cache/KeyPgDate.wakka
index bc562dae4d..70c03ea8b8 100644
--- a/fbdocs/manual/cache/KeyPgDate.wakka
+++ b/fbdocs/manual/cache/KeyPgDate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DATE"}}----
-Returns the current system date as a string
+Retourne la date courante du système sous forme d'une chaîne
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Date** ( ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -7,11 +7,11 @@ Returns the current system date as a string
{{fbdoc item="usage"}}##
//result// = **Date**
##
-{{fbdoc item="ret"}}
- Returns the current system date, in the format ##mm-dd-yyyy##
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la date courante du système, dans le format ##mm-dd-yyyy##
{{fbdoc item="desc"}}
- None
+ Aucune
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/date.bas"}}%%(freebasic)
@@ -19,7 +19,7 @@ print date ' prints the current date
%%
{{fbdoc item="diff"}}
- - The QB DATE statement (to set the system date) is now called ##[[KeyPgSetdate Setdate]]##.
+ - La déclaration QB DATE (pour définir la date système) est maintenant appelée ##[[KeyPgSetdate SetDate]]##.
{{fbdoc item="see"}}
- ##[[KeyPgSetdate Setdate]]##
diff --git a/fbdocs/manual/cache/KeyPgDateAdd.wakka b/fbdocs/manual/cache/KeyPgDateAdd.wakka
index 5b1cec00a1..8e24b0033f 100644
--- a/fbdocs/manual/cache/KeyPgDateAdd.wakka
+++ b/fbdocs/manual/cache/KeyPgDateAdd.wakka
@@ -1,30 +1,30 @@
{{fbdoc item="title" value="DateAdd"}}----
-Offset a date with a specified interval
+Décale une date avec un intervalle donné
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""DateAdd""** ( [[KeyPgByref byref]] //interval// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByval byval]] //date_serial// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **DateAdd** ( [[KeyPgByref ByRef]] //interval// [[KeyPgAs As]] [[KeyPgConstQualifier Const]] [[KeyPgString String]], [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgDouble Double]], [[KeyPgByval ByVal]] //date_serial// [[KeyPgAs As]] [[KeyPgDouble Double]] ) [[KeyPgAs As]] [[KeyPgDouble Double]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""DateAdd""**( //interval//, //number//, //date_serial// )
+ //result// = **DateAdd**( //interval//, //number//, //date_serial// )
##
{{fbdoc item="param"}}
##//interval//##
- string indicating which period of time corresponds to one unit of ##//number//##
+ chaîne indiquant à quelle période de temps correspond une unité de ##//number//##
##//number//##
- the number of intervals to add to the base date. The number will be rounded to the nearest integer.
+ le nombre d'intervalles à ajouter à la date de base. Le nombre sera arrondi à l'entier le plus proche.
##//date_serial//##
- the base date
+ La date de base
-{{fbdoc item="ret"}}
- Returns a [[ProPgDates Date Serial]] corresponding to the received ##//date_serial//## plus the ##//number//## of ##//intervals//##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une [[ProPgDates Date Serial]] correspondant à la ##//date_serial//## reçue plus le ##//nombre (number)//## d' ##//intervalles (intervals)//##.
{{fbdoc item="desc"}}
- Interval is specified as follows:
+ L'intervalle est spécifié comme ci-dessous:
- {{table columns="2" cellpadding="1" cells="value;interval;yyyy;years;q;quarter(three months);m;months;ww;weeks;d,w,y;days;h;hours;n;minutes;s;seconds"}}
+ {{table columns="" cellpadding="2" cells="
valeur;intervalle;yyyy;année;q;trimestre;m;mois;ww;semaines;d,w,y;jours;h;heures;n;minutes;s;secondes;
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/dateadd.bas"}}%%(freebasic)
@@ -48,7 +48,7 @@ print Format( DateAdd( "m", 1, d ), fmt )
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in Visual Basic.
+ - N'existe pas dans QB. Cette fonction est apparue dans Visual Basic.
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDateDiff.wakka b/fbdocs/manual/cache/KeyPgDateDiff.wakka
index a39e522290..ed76fe978d 100644
--- a/fbdocs/manual/cache/KeyPgDateDiff.wakka
+++ b/fbdocs/manual/cache/KeyPgDateDiff.wakka
@@ -1,47 +1,47 @@
{{fbdoc item="title" value="DateDiff"}}----
-Gets the difference of two dates measured by a specified interval
+Récupère la différence entre deux dates, mesurée à l'aide d'un intervalle donné
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""DateDiff""** ( [[KeyPgByref byref]] //interval// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByval byval]] //serial1// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByval byval]] //serial2// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByval byval]] //firstdayofweek// [[KeyPgAs as]] [[KeyPgInteger integer]] = fbUseSystem, [[KeyPgByval byval]] //firstdayofyear// [[KeyPgAs as]] [[KeyPgInteger integer]] = fbUseSystem ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **DateDiff** ( [[KeyPgByref ByRef]] //interval// [[KeyPgAs As]] [[KeyPgConstQualifier Const]] [[KeyPgString String]], [[KeyPgByval ByVal]] //serial1// [[KeyPgAs As]] [[KeyPgDouble Double]], [[KeyPgByval ByVal]] //serial2// [[KeyPgAs As]] [[KeyPgDouble Double]], [[KeyPgByval ByVal]] //firstdayofweek// [[KeyPgAs As]] [[KeyPgInteger Integer]] = fbUseSystem, [[KeyPgByval ByVal]] //firstdayofyear// [[KeyPgAs As]] [[KeyPgInteger Integer]] = fbUseSystem ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""DateDiff""**( //interval//, //date_serial1//, //date_serial2// [, //firstdayofWeek// [, //firstweekofyear// ] ] )
+ //result// = **DateDiff**( //interval//, //date_serial1//, //date_serial2// [, //firstdayofWeek// [, //firstweekofyear// ] ] )
##
{{fbdoc item="param"}}
##//interval//##
- the unit of time (interval) with which to measure the difference
+ l'unité de temps (intervalle) utilisée pour calculer la différence
##//date_serial1//##
- starting date serial
+ "date serial" de départ
##//date_serial2//##
- end date serial
+ "date serial" de fin
##//firstdayofweek//##
- first day of the week
+ 1er jour de la semaine
##//firstdayofyear//##
- first day of the year
+ 1er jour de l'année
-{{fbdoc item="ret"}}
- Returns an integer corresponding to the number of ##//interval//##s found between two [[ProPgDates Date Serials]].
+{{fbdoc item="section" value="Valeur retournée
+ Retourne un nombre entier correspondant au nombre d'##//interval//##s trouvés entre deux [[ProPgDates Date Serials]].
- If ##//date_serial1//## > ##//date_serial2//##, the result is negative.
+ Si ##//date_serial1//## > ##//date_serial2//##, le résultat est négatif.
{{fbdoc item="desc"}}
- ##//interval//## is specified as follows:
+ ##//interval//## est spécifié comme ci-dessous:
- {{table columns="2" cellpadding="1" cells="value;interval;yyyy;years;q;quarter(three months);m;months;w; seven day periods; ww;calendar weeks;d,y;days;h;hours;n;minutes;s;seconds"}}
+ {{table columns="" cellpadding="2" cells="
valeur;intervalle;yyyy;années;q;trimestres;m;mois;w; périodes de 7 jours; ww;semaines du calendrier;d,y;jours;h;heures;n;minutes;s;secondes;
- ##//first_dayofweek//## Affects the counting when ##'ww'## interval is used.
+ ##//first_dayofweek//## affecte le comptage quand l'intervalle ##'ww'## est utilisé.
- {{table columns="3" cellpadding="1" cells="value;first day of week;constant;omitted;sunday;###;0;local settings;fbUseSystem;1;sunday;fbSunday;2;monday;fbMonday;3;tuesday;fbTuesday;4;wednesday;fbWednesday;5;thursday;fbThursday;6;friday;fbFriday;7;saturday;fbSaturday"}}
+ {{table columns="" cellpadding="2" cells="
valeur;1er jour de la semaine;constante;omis;sunday = dimanche; 0;paramètres locaux;fbUseSystem;1;sunday = dimanche;fbSunday;2;monday = lundi;fbMonday;3;tuesday = mardi;fbTuesday;4;wednesday = mercredi;fbWednesday;5;thursday = jeudi;fbThursday;6;friday = vendredi;fbFriday;7;saturday = samedi;fbSaturday;
- ##//first_weekofyear//## specifies which year (previous or next) that the week which spans the end of one year and the beginning of the next should included with.
+ ##//first_weekofyear//## spécifie quelle année (précédente ou suivante) dont la semaine qui est "à cheval" sur la fin d'une année et le début de la suivante devrait être incluse.
- {{table columns="3" cellpadding="1" cells="value;first week of year;constant;0;local settings;fbUseSystem;1;January 1's week;fbFirstJan1;2;first weeks having 4 days in the year;fbFirstFourDays;3;first full week of year;fbFirstFullWeek"}}
+ {{table columns="" cellpadding="2" cells="
valeur;1ère semaine de l'année;constante;0;paramètres locaux;fbUseSystem;1;semaine du 1er janvier;fbFirstJan1;2;1ère semaine ayant 4 jours dans l'année;fbFirstFourDays;3;1ère semaine complète de l'année;fbFirstFullWeek;
- Notice if you do an arithmetical subtraction of two date serials you get the difference in days.
+ Notez que si vous effectuez une soustraction arithmétique de deux "date serial"s vous obtenez la différence en jours.
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/datediff.bas"}}%%(freebasic)
@@ -66,7 +66,7 @@ end if
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in Visual Basic.
+ - N'existe pas dans QB. Cette fonction est apparue dans Visual Basic.
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDatePart.wakka b/fbdocs/manual/cache/KeyPgDatePart.wakka
index 08728239a5..f5ec8f9221 100644
--- a/fbdocs/manual/cache/KeyPgDatePart.wakka
+++ b/fbdocs/manual/cache/KeyPgDatePart.wakka
@@ -1,41 +1,41 @@
{{fbdoc item="title" value="DatePart"}}----
-Gets an interval from a date
+Obtient un intervalle à partir d'une date
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""DatePart""** ( [[KeyPgByref byref]] //interval// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByval byval]] //date_serial// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByval byval]] //firstdayofweek// [[KeyPgAs as]] [[KeyPgInteger integer]] = fbUseSystem, [[KeyPgByval byval]] //firstdayofyear// [[KeyPgAs as]] [[KeyPgInteger integer]] = fbUseSystem ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **DatePart** ( [[KeyPgByref ByRef]] //interval// [[KeyPgAs As]] [[KeyPgConstQualifier Const]] [[KeyPgString String]], [[KeyPgByval ByVal]] //date_serial// [[KeyPgAs As]] [[KeyPgDouble Double]], [[KeyPgByval ByVal]] //firstdayofweek// [[KeyPgAs As]] [[KeyPgInteger Integer]] = fbUseSystem, [[KeyPgByval ByVal]] //firstdayofyear// [[KeyPgAs As]] [[KeyPgInteger Integer]] = fbUseSystem ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""DatePart""**( //interval//, //date_serial//, //first_dayofWeek// [, //first_week_of_year// ] )
+ //result// = **DatePart**( //interval//, //date_serial//, //first_dayofWeek// [, //first_week_of_year// ] )
##
{{fbdoc item="param"}}
##//interval//##
- string indicating which part of the date is required
+ chaîne indiquant quelle partie de la date est requise
##//date_serial//##
- the date serial to decode
+ la "date serial" à décoder
##//firstdayofweek//##
- first day of the week
+ 1er jour de la semaine
##//firstdayofyear//##
- first day of the year
+ 1er jour de l'année
-{{fbdoc item="ret"}}
- Return an integer representing the ##//interval//## in the [[ProPgDates Date Serial]].
+{{fbdoc item="section" value="Valeur retournée
+ Retourne un nombre entier représentant un intervalle ##//interval//## dans la [[ProPgDates Date Serial]].
{{fbdoc item="desc"}}
- ##//interval//## string indicating which part of the date is required is specified as follows:
+ La chaîne ##//interval//## indique quelle partie de la date est requise; elle est spécifiée comme ci-dessous:
- {{table columns="2" cellpadding="1" cells="value;interval;yyyy;years;q;quarter(three months);m;months; w; weekday; ww; week of the year;y;day of the year;d;day of the month;h;hours;n;minutes;s;seconds"}}
+ {{table columns="" cellpadding="2" cells="
valeur;intervalle;yyyy;années;q;trimestres;m;mois; w; jour de la semaine; ww; semaine de l'année;y;jour de l'année;d;jour du mois;h;heures;n;minutes;s;secondes;
- ##//first_dayofweek//## Affects the output when 'w' interval is required.
+ ##//first_dayofweek//## Affecte la sortie quand l'intervalle 'w' est requis.
- {{table columns="3" cellpadding="1" cells="value;first day of week;constant;omitted;sunday;###;0;local settings;fbUseSystem;1;sunday;fbSunday;2;monday;fbMonday;3;tuesday;fbTuesday;4;wednesday;fbWednesday;5;thursday;fbThursday;6;friday;fbFriday;7;saturday;fbSaturday"}}
+ {{table columns="" cellpadding="2" cells="
valeur;1er jour de la semaine;constante;omis;sunday = dimanche; 0;paramètres locaux;fbUseSystem;1;sunday = dimanche;fbSunday;2;monday = lundi;fbMonday;3;tuesday = mardi;fbTuesday;4;wednesday = mercredi;fbWednesday;5;thursday = jeudi;fbThursday;6;friday = vendredi;fbFriday;7;saturday = samedi;fbSaturday;
- ##//first_weekofyear//## specifies which year (previous or next) that the week which spans the end of one year and the beginning of the next should included with. Affects the output when ##'ww'## interval is required.
+ ##//first_weekofyear//## spécifie quelle année (précédente ou suivante) dont la semaine qui est "à cheval" sur la fin d'une année et le début de la suivante doit être incluse. Affecte la sortie quand l'intervalle ##'ww'## est requis.
- {{table columns="3" cellpadding="1" cells="value;first week of year;constant;0;local settings;fbUseSystem;1;January 1's week;fbFirstJan1;2;first weeks having 4 days in the year;fbFirstFourDays;3;first full week of year;fbFirstFullWeek"}}
+ {{table columns="" cellpadding="2" cells="
valeur;1ère semaine de l'année;constante;0;paramètres locaux;fbUseSystem;1;semaine du 1er janvier;fbFirstJan1;2;1ère semaine qui a 4 jours dans l'année;fbFirstFourDays;3;1ère semaine complète de l'année;fbFirstFullWeek;
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/datepart.bas"}}%%(freebasic)
@@ -51,7 +51,7 @@ print " of the year " & DatePart( "yyyy", d )
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in Visual Basic.
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDateSerial.wakka b/fbdocs/manual/cache/KeyPgDateSerial.wakka
index ef41e56cdb..c9004c8201 100644
--- a/fbdocs/manual/cache/KeyPgDateSerial.wakka
+++ b/fbdocs/manual/cache/KeyPgDateSerial.wakka
@@ -1,26 +1,26 @@
{{fbdoc item="title" value="DATESERIAL"}}----
-Creates a [[ProPgDates date serial]]
+Crée une [[ProPgDates date serial]]
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""DateSerial""** ( [[KeyPgByval byval]] //year// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //month// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //day// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **DateSerial** ( [[KeyPgByval ByVal]] //year// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //month// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //day// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""DateSerial""**( //year//, //month//, //day// )
+ //result// = **DateSerial**( //year//, //month//, //day// )
##
{{fbdoc item="param"}}
##//year//##
- the year
+ l'année
##//month//##
- the month of the year
+ le mois de l'année
##//day//##
- the day of the month
+ le jour du mois
-{{fbdoc item="ret"}}
- Returns a [[ProPgDates date serial]] containing the date formed by the values in the ##//year//##, ##//month//## and ##//day//## parameters.The date serial returned has no decimal part.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une [[ProPgDates date serial]] contenant la date formée par les valeurs dans les paramètres ##//year//##, ##//month//## et ##//day//##. La "date serial" retournée n'a pas de partie décimale.
{{fbdoc item="desc"}}
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/dateserial.bas"}}%%(freebasic)
@@ -32,7 +32,7 @@ print format(a, "yyyy/mm/dd hh:mm:ss")
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDateValue.wakka b/fbdocs/manual/cache/KeyPgDateValue.wakka
index d96fb4a5bd..02bd779337 100644
--- a/fbdocs/manual/cache/KeyPgDateValue.wakka
+++ b/fbdocs/manual/cache/KeyPgDateValue.wakka
@@ -1,26 +1,26 @@
{{fbdoc item="title" value="DATEVALUE"}}----
-Returns a [[ProPgDates Date Serial]] from a string
+Retourne une [[ProPgDates Date Serial]] à partir d'une chaîne
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""DateValue""** ( [[KeyPgByref byref]] //date_string// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **DateValue** ( [[KeyPgByref ByRef]] //date_string// [[KeyPgAs As]] [[KeyPgString String]] ) [[KeyPgAs As]] [[KeyPgDouble Double]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""DateValue""**( //date_string// )
+ //result// = **DateValue**( //date_string// )
##
{{fbdoc item="param"}}
##//date_string//##
- the string to convert to a date serial
+ la chaîne à convertir en "Date Serial"
-{{fbdoc item="ret"}}
- Returns a [[ProPgDates Date Serial]] from a date string.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une [[ProPgDates Date Serial]] à partir d'une chaîne.
{{fbdoc item="desc"}}
- The date string must be in the format set in the regional settings of the Operating System.
+ La chaîne de la date doit être dans le format défini dans les paramètres régionaux du système d'exploitation.
- ##**""DateValue""**( Date() )## will work correctly only if the regional settings specify the same short date format QB used (##mm-dd-yyyy##). Consider using the ##[[KeyPgNow Now]]## function in the expression ##Fix(Now())## to obtain the current date as a date serial.
+ ##**DateValue**( Date() )## ne fonctionnera correctement que si les paramètres régionaux spécifiés ont le même format court de date utilisé par QB (##mm-dd-yyyy##). Pensez à utiliser la fonction ##[[KeyPgNow Now]]## dans l'expression ##Fix(Now())## pour obtenir la date courante sous forme de "date serial".
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/datevalue.bas"}}%%(freebasic)
@@ -53,7 +53,7 @@ print "Number of days between dates is " & abs( v2 - v1 )
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDay.wakka b/fbdocs/manual/cache/KeyPgDay.wakka
index d68efe15ab..3380aba12a 100644
--- a/fbdocs/manual/cache/KeyPgDay.wakka
+++ b/fbdocs/manual/cache/KeyPgDay.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DAY"}}----
-Gets the day of the month from a [[ProPgDates Date Serial]]
+Récupère le jour du mois à partir d'une [[ProPgDates Date Serial]]
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Day** ( [[KeyPgByval byval]] //date_serial// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -10,14 +10,14 @@ Gets the day of the month from a [[ProPgDates Date Serial]]
##
{{fbdoc item="param"}}
##//date_serial//##
- the date
+ la date
-{{fbdoc item="ret"}}
- Returns the day of the month from a variable containing a date in [[ProPgDates Date Serial]] format.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le jour du mois à partir d'une variable contenant une date sous forme de [[ProPgDates Date Serial]].
{{fbdoc item="desc"}}
- The compiler will not recognize this function unless ##vbcompat.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/day.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ print format(ds, "yyyy/mm/dd "); day(ds)
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgDdFBBackend.wakka b/fbdocs/manual/cache/KeyPgDdFBBackend.wakka
index e48543c9e6..d6d6a1abbb 100644
--- a/fbdocs/manual/cache/KeyPgDdFBBackend.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBBackend.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_BACKEND__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque définie par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_BACKEND__""
+ __FB_BACKEND__
##
{{fbdoc item="desc"}}
- Defined to either ##"gas"## or ##"gcc"##, depending on which backend was specified via [[CompilerOptgen -gen]].
+ Définie pour ##"gas"## ou ##"gcc"##, dépendant du "backend" spécifié par [[CompilerOptgen -gen]].
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existe pas dans QB
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
diff --git a/fbdocs/manual/cache/KeyPgDdFBBigEndian.wakka b/fbdocs/manual/cache/KeyPgDdFBBigEndian.wakka
index 9c2a994804..68e313223f 100644
--- a/fbdocs/manual/cache/KeyPgDdFBBigEndian.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBBigEndian.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_BIGENDIAN__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_BIGENDIAN__""
+ __FB_BIGENDIAN__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time if compiling for a big endian target.
+ Définition sans valeur créée au moment de la compilation si la compilation a une cible "big endian".
- It can be used to compile parts of the program only if the target is big endian.
+ Ne peut être utilisé pour compiler des parties du programme que si la cible est "big endian".
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbbigendian.bas"}}%%(freebasic)
@@ -19,6 +19,6 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existe pas dans QB
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
diff --git a/fbdocs/manual/cache/KeyPgDdFBBuildDate.wakka b/fbdocs/manual/cache/KeyPgDdFBBuildDate.wakka
index 689649cf2f..cfb025cf83 100644
--- a/fbdocs/manual/cache/KeyPgDdFBBuildDate.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBBuildDate.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_BUILD_DATE__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_BUILD_DATE__""
+ __FB_BUILD_DATE__
##
{{fbdoc item="desc"}}
- Substituted with the quoted string containing the date (##MM-DD-YYYY##) the compiler was built on.
+ Remplacé par la chaîne entre guillemets contenant la date (##MM-DD-YYYY##) de construction du compilateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbbuilddate.bas"}}%%(freebasic)
@@ -13,6 +13,6 @@ Intrinsic define (macro string) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdFBMain.wakka b/fbdocs/manual/cache/KeyPgDdFBMain.wakka
index 88135091cb..9a6d34a843 100644
--- a/fbdocs/manual/cache/KeyPgDdFBMain.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBMain.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_MAIN__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_MAIN__""
+ __FB_MAIN__
##
{{fbdoc item="desc"}}
- ##""__FB_MAIN__""## is defined in the main module and not defined in other modules.
+ ##__FB_MAIN__## est défini dans le module "main" (=principal) mais pas dans les autres modules.
- The main module is determined by the compiler as either the first source file listed on the command line or explicitly named using the -m option on the command line.
+ Le module principal (main) est déterminé par le compilateur, comme étant soit le premier fichier source listé sur la ligne de commande, soit celui explicitement désigné par l'option -m sur la ligne de commande.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbmain.bas"}}%%(freebasic)
@@ -19,10 +19,10 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CompilerOptm Compiler Option: -m]]
+ - [[CompilerOptm Option du compilateur: -m]]
- ##[[KeyPgPpifdef #ifdef]]##
- ##[[KeyPgPpifndef #ifndef]]##
diff --git a/fbdocs/manual/cache/KeyPgDdFBMinVersion.wakka b/fbdocs/manual/cache/KeyPgDdFBMinVersion.wakka
index 7ab3a6436b..2f4db3a7ff 100644
--- a/fbdocs/manual/cache/KeyPgDdFBMinVersion.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBMinVersion.wakka
@@ -1,28 +1,28 @@
{{fbdoc item="title" value="__FB_MIN_VERSION__"}}----
-Macro function to test minimum compiler version
+Fonction macro pour tester la version minimum du compilateur
{{fbdoc item="syntax"}}##
- [[KeyPgPpdefine #define]] **""__FB_MIN_VERSION__""**( //major//, //minor//, //patch//) _
+ [[KeyPgPpdefine #define]] **__FB_MIN_VERSION__**( //major//, //minor//, //patch//) _
(([[KeyPgDdFBVerMajor __FB_VER_MAJOR__]] > major) or _
(([[KeyPgDdFBVerMajor __FB_VER_MAJOR__]] = major) and (([[KeyPgDdFBVerMinor __FB_VER_MINOR__]] > minor) or _
([[KeyPgDdFBVerMinor __FB_VER_MINOR__]] = minor and [[KeyPgDdFBVerPatch __FB_VER_PATCH__]] >= patch_level))))
##
{{fbdoc item="usage"}}##
- **""__FB_MIN_VERSION__""**( //major//, //minor//, //patch//)
+ **__FB_MIN_VERSION__**( //major//, //minor//, //patch//)
##
{{fbdoc item="param"}}
##//major//##
- minimum major version to test
+ version majeure minimum à tester
##//minor//##
- minimum minor version to test
+ version mineure minimum à tester
##//patch//##
- minimum patch version to test
+ version patch minimum à tester
-{{fbdoc item="ret"}}
- Returns zero (0) if the compiler version is less than the specified version, or non-zero (-1) if the compiler version is greater than or equal to specified version
+{{fbdoc item="section" value="Valeur retournée
+ Retourne zéro (0) si la version du compilateur est inférieure à la version spécifiée ou non-zéro (-1) si la version du compilateur est supérieure ou égale à la version spécifiée.
{{fbdoc item="desc"}}
- ##""__FB_MIN_VERSION__""## tests for a minimum version of the compiler.
+ ##__FB_MIN_VERSION__## teste pour une version minimale du compilateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbminversion.bas"}}%%(freebasic)
@@ -32,10 +32,10 @@ Macro function to test minimum compiler version
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- [[KeyPgPpif #IF]]
diff --git a/fbdocs/manual/cache/KeyPgDdFBVerMajor.wakka b/fbdocs/manual/cache/KeyPgDdFBVerMajor.wakka
index 317d5bf5a1..3a4bb0342c 100644
--- a/fbdocs/manual/cache/KeyPgDdFBVerMajor.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBVerMajor.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_VER_MAJOR__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_VER_MAJOR__""
+ __FB_VER_MAJOR__
##
{{fbdoc item="desc"}}
- ##""__FB_VER_MAJOR__""## will return the major version of FreeBASIC currently being used. For example, the major version is 0 for Freebasic 0.18, and will remain 0 until FreeBASIC 1.0 is released.
+ ##__FB_VER_MAJOR__## retournera la version majeure de FreeBASIC utilisée actuellement. Par exemple, la version majeure est 0 pour Freebasic 0.18, et restera 0 jusqu'à FreeBasic 1.0.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbvermajor.bas"}}%%(freebasic)
@@ -19,7 +19,7 @@ Print "Welcome to freebasic ";fbMajorVersion;".";fbMinorVersion
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdFBVerMinor __FB_VER_MINOR__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdFBVerMinor.wakka b/fbdocs/manual/cache/KeyPgDdFBVerMinor.wakka
index f82db6737e..9fb34aa08f 100644
--- a/fbdocs/manual/cache/KeyPgDdFBVerMinor.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBVerMinor.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_VER_MINOR__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_VER_MINOR__""
+ __FB_VER_MINOR__
##
{{fbdoc item="desc"}}
- ""__FB_VER_MINOR__"" will return the minor version of FreeBASIC currently being used. For Freebasic 0.21, for example, the minor version number is 21.
+ __FB_VER_MINOR__ retournera la version mineure de FreeBASIC utilisée actuellement. Par exemple, pour Freebasic 0.21, le numéro de version mineur est 21.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbverminor.bas"}}%%(freebasic)
@@ -19,9 +19,9 @@ Print "Welcome to freebasic ";fbMajorVersion;".";fbMinorVersion
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdFBVerMajor __FB_VER_MAJOR__]]##
- ##[[KeyPgDdFBVerPatch __FB_VER_PATCH__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdFBVerPatch.wakka b/fbdocs/manual/cache/KeyPgDdFBVerPatch.wakka
index 44d61f5856..e5f8c23824 100644
--- a/fbdocs/manual/cache/KeyPgDdFBVerPatch.wakka
+++ b/fbdocs/manual/cache/KeyPgDdFBVerPatch.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_VER_PATCH__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_VER_PATCH__""
+ __FB_VER_PATCH__
##
{{fbdoc item="desc"}}
- ""__FB_VER_PATCH__"" will return the patch/subversion/revision number the version of FreeBASIC currently being used. For FreeBASIC 0.18, for example, there were subversions 1, 2, 3, 4, 5 and 6.
+ __FB_VER_PATCH__ retournera le patch/subversion/numéro de révision de la version de FreeBasic actuellement utilisé. Pour FreeBASIC 0.18, par exemple, il y a eu les subversions 1, 2, 3, 4, 5 et 6.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbverpatch.bas"}}%%(freebasic)
@@ -21,9 +21,9 @@ Print "Welcome to FreeBASIC ";fbMajorVersion;".";fbMinorVersion;" , Revision ";f
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdFBVerMajor __FB_VER_MAJOR__]]##
- ##[[KeyPgDdFBVerMinor __FB_VER_MINOR__]]##
diff --git a/fbdocs/manual/cache/KeyPgDddate.wakka b/fbdocs/manual/cache/KeyPgDddate.wakka
index d7d8e3fd13..51df0b6e02 100644
--- a/fbdocs/manual/cache/KeyPgDddate.wakka
+++ b/fbdocs/manual/cache/KeyPgDddate.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__DATE__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__DATE__""
+ __DATE__
##
{{fbdoc item="desc"}}
- Substitutes the compiler date (##yyyy-mm-dd## format) were used.
+ Remplacé par la date du compilateur à l'endroit de son utilisation (## format aaaa-mm-jj##).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/date.bas"}}%%(freebasic)
@@ -17,9 +17,11 @@ Compile Date: 2005-05-31
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdtime __TIME__]]##
+ - ##[[KeyPgDdtime __TIME__]]##
+ - ##[[KeyPgDate Date]]##
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDddateiso.wakka b/fbdocs/manual/cache/KeyPgDddateiso.wakka
new file mode 100644
index 0000000000..8ecc0f0db8
--- /dev/null
+++ b/fbdocs/manual/cache/KeyPgDddateiso.wakka
@@ -0,0 +1,34 @@
+{{fbdoc item="title" value="__DATE_ISO__"}}----
+Intrinsic define (macro value) set by the compiler
+
+{{fbdoc item="syntax"}}##
+ ""__DATE_ISO__""
+##
+{{fbdoc item="desc"}}
+ Substitutes the compiler date in a literal string (##"yyyy-mm-dd"## format) where used. This format is in line with ISO 8601 and can be used for lexicographical date comparisons.
+
+{{fbdoc item="ex"}}
+{{fbdoc item="filename" value="examples/manual/defines/date.bas"}}%%(freebasic)
+Print "Compile Date: " & __DATE_ISO__
+
+If __DATE_ISO__ < "2011-12-25" Then
+ Print "Compiled before Christmas day 2011"
+Else
+ Print "Compiled after Christmas day 2011"
+End If
+%%
+
+%%
+Compile Date: 2011-09-29
+Compiled before Christmas day 2011
+%%
+
+{{fbdoc item="diff"}}
+ - New to ""FreeBASIC""
+
+{{fbdoc item="see"}}
+ - ##[[KeyPgDddate __DATE__]]##
+ - ##[[KeyPgDdtime __TIME__]]##
+ - ##[[KeyPgDate Date]]##
+
+{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbargc.wakka b/fbdocs/manual/cache/KeyPgDdfbargc.wakka
index aeae19ac4f..a36adea1e5 100644
--- a/fbdocs/manual/cache/KeyPgDdfbargc.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbargc.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_ARGC__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_ARGC__""
+ __FB_ARGC__
##
{{fbdoc item="desc"}}
- Substituted with the number of arguments passed in on the command line.
+ Remplacé par le nombre d'arguments passés dans la ligne de commande.
- **""__FB_ARGC__""** is the name of a parameter passed to the program's implicit main function, and therefore is only defined in the module level code of the main module for an application.
+ **__FB_ARGC__** est le nom d'un paramètre passé à la fonction "main" (principale) implicite du programme, et de ce fait est défini seulement dans le module de code de niveau "main module" (module principal) pour une application.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbargc.bas"}}%%(freebasic)
@@ -18,7 +18,7 @@ next i
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbargv __FB_ARGV__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfbargv.wakka b/fbdocs/manual/cache/KeyPgDdfbargv.wakka
index eac85a3ca8..132f8b777a 100644
--- a/fbdocs/manual/cache/KeyPgDdfbargv.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbargv.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_ARGV__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_ARGV__""
+ __FB_ARGV__
##
{{fbdoc item="desc"}}
- Substituted with a pointer to a list of pointers to the zero terminated command line arguments passed in on the command line.
+ Remplacé par un pointeur vers une liste de pointeurs vers des lignes d'arguments terminées par zéro passées à la ligne de commande.
- **""__FB_ARGV__""** is the name of a parameter passed to the program's implicit main function, and therefore is only defined in the module level code of the main module for an application.
+ **__FB_ARGC__** est le nom d'un paramètre passé à la fonction "main" (principale) implicite du programme, et de ce fait est défini seulement dans le module de code de niveau "main module" (module principal) pour une application.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbargv.bas"}}%%(freebasic)
@@ -36,7 +36,7 @@ end function
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbargc __FB_ARGC__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfbcygwin.wakka b/fbdocs/manual/cache/KeyPgDdfbcygwin.wakka
index d0577dcc08..e4f118bc07 100644
--- a/fbdocs/manual/cache/KeyPgDdfbcygwin.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbcygwin.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_CYGWIN__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_CYGWIN__""
+ __FB_CYGWIN__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time in the Cygwin version of the compiler, or when the //[[CompilerOpttarget -target cygwin]]// command line option is used. It can be used to compile parts of the program only if the target is Cygwin.
+ Définition sans valeur créée au moment de la compilation dans la version Cygwin du compilateur, ou quand l'option //[[CompilerOpttarget -target cygwin]]// de la commande en ligne est utilisée. Peut être utilisé pour compiler des parties du programme si la cible est Cygwin.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbcygwin.bas"}}%%(freebasic)
@@ -17,12 +17,12 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32_]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbdarwin.wakka b/fbdocs/manual/cache/KeyPgDdfbdarwin.wakka
index 5683677399..543af0702f 100644
--- a/fbdocs/manual/cache/KeyPgDdfbdarwin.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbdarwin.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_DARWIN__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_DARWIN__""
+ __FB_DARWIN__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time in the Darwin version of the compiler, or when the //[[CompilerOpttarget -target darwin]]// command line option is used. It can be used to compile parts of the program only if the target is Darwin.
+ Définition sans valeur créée au moment de la compilation dans la version Darwin du compilateur, ou quand l'option //[[CompilerOpttarget -target darwin]]// de la commande en ligne est utilisée. Peut être utilisé pour compiler des parties du programme si la cible est Darwin.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbdarwin.bas"}}%%(freebasic)
@@ -17,12 +17,12 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- - ##[[KeyPgDdfbunix __FB_UNIX__]]##
+ - [[CompilerOpttarget Option du compilateur: -target]]
- [[CompilerOpttarget Compiler Option: -target]]
diff --git a/fbdocs/manual/cache/KeyPgDdfbdebug.wakka b/fbdocs/manual/cache/KeyPgDdfbdebug.wakka
index fbf28aa081..d64d9760ba 100644
--- a/fbdocs/manual/cache/KeyPgDdfbdebug.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbdebug.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_DEBUG__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_DEBUG__""
+ __FB_DEBUG__
##
{{fbdoc item="desc"}}
- ##""__FB_DEBUG__""## indicates if the the generate debug information option '-g' was specified on the command line at the time of compilation.
+ ##__FB_DEBUG__## indique si l'option "-g" de généreration de l'information de débogage a été spécifiée sur la ligne de commande au moment de la compilation.
- Returns non-zero (-1) if the option was specified. Returns zero (0) otherwise.
+ Retourne non-zéro (-1) si l'option a été spécifiée. Autrement retourne zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbdebug.bas"}}%%(freebasic)
@@ -19,11 +19,11 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfberr __FB_ERR__]]##
- ##[[KeyPgDdfbmt __FB_MT__]]##
- - [[CompilerOptg Compiler Option: -g]]
+ - [[CompilerOptg Option du compilateur: -g]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbdos.wakka b/fbdocs/manual/cache/KeyPgDdfbdos.wakka
index 3cfe7a0e1c..42b0b79c47 100644
--- a/fbdocs/manual/cache/KeyPgDdfbdos.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbdos.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_DOS__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_DOS__""
+ __FB_DOS__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time if compiling for the DOS target. Default in the DOS hosted version, or active when the //[[CompilerOpttarget -target dos]]// command line option is used. It can be used to compile parts of the program only if the target is DOS. Note: the DOS hosted version cannot compile to other targets than DOS by now.
+ Définition sans valeur créée au moment de la compilation dans la version DOS. Par défaut dans le DOS version hébergée ou lorsque l'option //[[CompilerOpttarget -target dos]]// de la ligne de commande est utlisée. Ne peut être utilisé pour compiler des parties du programme que si la cible est DOS. Note: actuellement la version hébergée DOS ne peut compiler des cibles autres que DOS.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbdos.bas"}}%%(freebasic)
@@ -18,13 +18,13 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbpcos __FB_PCOS__]]##
- - ##[[FaqDOS DOS related FAQ]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - ##[[FaqDOS FAQ relatrive au DOS]]##
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfberr.wakka b/fbdocs/manual/cache/KeyPgDdfberr.wakka
index ac03fe666e..028fb26e32 100644
--- a/fbdocs/manual/cache/KeyPgDdfberr.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfberr.wakka
@@ -1,16 +1,16 @@
{{fbdoc item="title" value="__FB_ERR__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_ERR__""
+ __FB_ERR__
##
{{fbdoc item="desc"}}
- ##""__FB_ERR__""## indicates if //[[CompilerOpte -e]]//, //[[CompilerOptex -ex]]//, or //[[CompilerOptexx -exx]]// was specified on the compiler command line at the time of compilation of a module.
+ ##__FB_ERR__## indique si //[[CompilerOpte -e]]//, //[[CompilerOptex -ex]]//, ou //[[CompilerOptexx -exx]]// a été spécifié sur la ligne de commande du compilateur au moment de la compilation du module.
- Returns one of the following values:
- {{table columns="2" cellpadding="1" cells="value;description;0;'-e', '-ex', '-exx' not specified;1;'-e' was specified;3;'-ex' was specified;7;'-exx' was specified"}}
+ Retourne l'une des valeurs suivantes:
+ {{table columns="" cellpadding="2" cells="
valeur;description;0;'-e', '-ex', '-exx' pas specifié1;'-e' a été specifié3;'-ex' a été specifié7;'-exx' a été specifié
- ##""__FB_ERR__""## is always defined.
+ ##__FB_ERR__## est toujours défini.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fberr.bas"}}%%(freebasic)
@@ -33,14 +33,15 @@ end select
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfbmt __FB_MT__]]##
- ##[[KeyPgDdfbdebug __FB_DEBUG__]]##
- - [[CompilerOpte Compiler Option: -e]]
- - [[CompilerOptex Compiler Option: -ex]]
- - [[CompilerOptexx Compiler Option: -exx]]
- - [[ProPgErrorHandling Error Handling]]
+ - [[CompilerOpte Option du compilateur: -e]]
+ - [[CompilerOptex Option du compilateur: -ex]]
+ - [[CompilerOptexx Option du compilateur: -exx]]
+ - [[ProPgErrorHandling Gestion des erreurs]]
-{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
+{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
+
diff --git a/fbdocs/manual/cache/KeyPgDdfbfpmode.wakka b/fbdocs/manual/cache/KeyPgDdfbfpmode.wakka
index 78b9e35984..22b8459d42 100644
--- a/fbdocs/manual/cache/KeyPgDdfbfpmode.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbfpmode.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_FPMODE__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_FPMODE__""
+ __FB_FPMODE__
##
{{fbdoc item="desc"}}
- Defined as ##"fast"## if SSE fast arithmetics is enabled, or ##"precise"## otherwise.
+ Défini comme ##//"fast" = "rapide"//## si l'arithmétique rapide SSE est activée, ou ##//"precise" = "précis"//## autrement.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbfpmode.bas"}}%%(freebasic)
@@ -17,9 +17,9 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[compileroptfpmode Compiler Option: -fpmode]]
+ - [[compileroptfpmode Option du compilateur: -fpmode]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbfpu.wakka b/fbdocs/manual/cache/KeyPgDdfbfpu.wakka
index 21aefba678..3800b682b0 100644
--- a/fbdocs/manual/cache/KeyPgDdfbfpu.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbfpu.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_FPU__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_FPU__""
+ __FB_FPU__
##
{{fbdoc item="desc"}}
- Defined as ##"sse"## if SSE floating point arithmetics is enabled, or ##"x87"## otherwise.
+ Défini comme ##"sse"## si l'arithmétique en virgule flottante SSE est activée ou ##"x87"## autrement.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbfpu.bas"}}%%(freebasic)
@@ -17,10 +17,10 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbsse __FB_SSE__]]##
- - [[CompilerOptfpu Compiler Option: -fpu]]
+ - [[CompilerOptfpu Option du compilateur: -fpu]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbfreebsd.wakka b/fbdocs/manual/cache/KeyPgDdfbfreebsd.wakka
index 7e684d7426..e231bf769c 100644
--- a/fbdocs/manual/cache/KeyPgDdfbfreebsd.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbfreebsd.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_FREEBSD__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_FREEBSD__""
+ __FB_FREEBSD__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time in the ""FreeBSD"" version of the compiler, or when the //[[CompilerOpttarget -target freebsd]]// command line option is used. It can be used to compile parts of the program only if the target is ""FreeBSD"".
+ Définition sans valeur créée au moment de la compilation dans la version FreeBSD du compilateur ou quand l'option //[[CompilerOpttarget -target freebsd]]// de la commande en ligne est utilisée. Peut être utilisé pour compiler des parties du programme si la cible est FreeBSD.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbfreebsd.bas"}}%%(freebasic)
@@ -17,13 +17,13 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbgcc.wakka b/fbdocs/manual/cache/KeyPgDdfbgcc.wakka
index 18a127e26e..3e80b8413f 100644
--- a/fbdocs/manual/cache/KeyPgDdfbgcc.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbgcc.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_GCC__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque positionnée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_GCC__""
+ __FB_GCC__
##
{{fbdoc item="desc"}}
- Defined to true (##-1##) if [[CompilerOptgen -gen gcc]] is used, or false (##0##) otherwise.
+ Positionnée à vrai (##-1##) si [[CompilerOptgen -gen gcc]] est utilisé ou faux (##0##) sinon.
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existe pas dans QB
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
diff --git a/fbdocs/manual/cache/KeyPgDdfblang.wakka b/fbdocs/manual/cache/KeyPgDdfblang.wakka
index a08463caea..8d9d13a00c 100644
--- a/fbdocs/manual/cache/KeyPgDdfblang.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfblang.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="__FB_LANG__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_LANG__""
+ __FB_LANG__
##
{{fbdoc item="desc"}}
- ##""__FB_LANG__""## indicates which language compatibility option was set at the time of compilation of a module. By default ##""__FB_LANG__""## will be set to ##"fb"##. The language compatibility option can be changed using one (or more) of the following methods:
- - //[[CompilerOptlang -lang]]// command line option
- - //[[CompilerOptforcelang -forcelang]]// command line option
- - ##[[KeyPgPplang #lang]]## directive
- - ##[[KeyPgMetaLang $lang]]## metacommand
+ ##__FB_LANG__## indique la langue dans laquelle l'option de compatibilité a été fixée au moment de la compilation d'un module. Par défaut ##__FB_LANG__## sera réglé sur ##"fb"##. L'option de compatibilité langue peut être changée en utilisant une (ou plusieurs) des méthodes suivantes:
+ - //[[CompilerOptlang -lang]]// option ligne de commande
+ - //[[CompilerOptforcelang -forcelang]]// option ligne de commande
+ - ##[[KeyPgPplang #lang]]## instruction
+ - ##[[KeyPgMetaLang $Lang]]## méta-commande
- Returns a lower case string with one of the following values:
- {{table columns="2" cellpadding="1" cells="value;description;''fb'';FreeBASIC compatibility (default);''qb'';QBASIC compatibility;''fblite'';FreeBASIC language compatibility, with a more QBASIC-compatible coding style;''deprecated'';FBC version 0.16 compatibility"}}
+ Renvoie une chaîne en minuscules avec l'une des valeurs suivantes:
+ {{table columns="" cellpadding="2" cells="
valeur;description;''fb'';Compatibilité FreeBASIC (défault);''qb'';Compatibilité QBASIC;''fblite'';Compatibilité langage FreeBASIC, avec plus de codage en style QBASIC-compatible;''deprecated'';Compatibilité FBC version 0.16;
- ##""__FB_LANG__""## is always defined.
+ ##__FB_LANG__## est toujours défini.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fblang.bas"}}%%(freebasic)
@@ -31,13 +31,13 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfbversion __FB_VERSION__]]##
- ##[[KeyPgPplang #lang]]##
- - [[CompilerOptlang Compiler Option: -lang]]
- - [[CompilerOptforcelang Compiler Option: -forcelang]]
- - [[CompilerDialects Compiler Dialects]]
+ - [[CompilerOptlang Option du compilateur: -lang]]
+ - [[CompilerOptforcelang Option du compilateur: -forcelang]]
+ - [[CompilerDialects Dialectes du compilateur]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfblinux.wakka b/fbdocs/manual/cache/KeyPgDdfblinux.wakka
index 521b18cc97..2c49e87401 100644
--- a/fbdocs/manual/cache/KeyPgDdfblinux.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfblinux.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_LINUX__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_LINUX__""
+ __FB_LINUX__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time when compiling to the Linux target. Default in the Linux hosted version of the compiler, or active when the //[[CompilerOpttarget -target linux]]// command line option is used. It can be used to compile parts of the program only if the target is Linux.
+ Définition sans valeur créée au moment de la compilation dans la version Linux. Par défaut dans la version Linux hébergée ou lorsque l'option //[[CompilerOpttarget -target linux]]// de la ligne de commande est utlisée. Ne peut être utilisé pour compiler des parties du programme que si la cible est Linux.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fblinux.bas"}}%%(freebasic)
@@ -18,12 +18,12 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbdos __FB_DOS__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbmt.wakka b/fbdocs/manual/cache/KeyPgDdfbmt.wakka
index ed31e22067..de296ac355 100644
--- a/fbdocs/manual/cache/KeyPgDdfbmt.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbmt.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_MT__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_MT__""
+ __FB_MT__
##
{{fbdoc item="desc"}}
- ##""__FB_MT__""## indicates if the the multithreaded option //[[CompilerOptmt -mt]]// was specified on the command line at the time of compilation.
+ ##__FB_MT__## indique si l'option "multi-thread" //[[CompilerOptmt -mt]]// a été spécifiée sur la ligne de commande au moment de la compilation.
- Returns non-zero (-1) if the option was specified. Returns zero (0) otherwise.
+ Retourne non-zéro (-1) si l'option a été spécifiée. Autrement, retourne zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbmt.bas"}}%%(freebasic)
@@ -19,10 +19,10 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfbdebug __FB_DEBUG__]]##
- - [[CompilerOptmt Compiler Option: -mt]]
+ - [[CompilerOptmt Option du compilateur: -mt]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbnetbsd.wakka b/fbdocs/manual/cache/KeyPgDdfbnetbsd.wakka
index 6e97bb28b5..54fab3139d 100644
--- a/fbdocs/manual/cache/KeyPgDdfbnetbsd.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbnetbsd.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_NETBSD__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_NETBSD__""
+ __FB_NETBSD__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time in the ""NetBSD"" version of the compiler, or when the //[[CompilerOpttarget -target netbsd]]// command line option is used. It can be used to compile parts of the program only if the target is ""NetBSD"".
+ Définition sans valeur créée au moment de la compilation dans la version NetBSD du compilateur ou quand l'option //[[CompilerOpttarget -target netbsd]]// de la commande en ligne est utilisée. Peut être utilisé pour compiler des parties du programme si la cible est NetBSD.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbnetbsd.bas"}}%%(freebasic)
@@ -17,13 +17,13 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbopenbsd.wakka b/fbdocs/manual/cache/KeyPgDdfbopenbsd.wakka
index c40f4988c3..a6be65531c 100644
--- a/fbdocs/manual/cache/KeyPgDdfbopenbsd.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbopenbsd.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_OPENBSD__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPENBSD__""
+ __FB_OPENBSD__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time in the ""OpenBSD"" version of the compiler, or when the //[[CompilerOpttarget -target openbsd]]// command line option is used. It can be used to compile parts of the program only if the target is ""OpenBSD"".
+ Définition sans valeur créée au moment de la compilation dans la version OpenBSD du compilateur ou quand l'option //[[CompilerOpttarget -target openbsd]]// de la commande en ligne est utilisée. Peut être utilisé pour compiler des parties du programme si la cible est OpenBSD.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbopenbsd.bas"}}%%(freebasic)
@@ -17,13 +17,13 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfboptionbyval.wakka b/fbdocs/manual/cache/KeyPgDdfboptionbyval.wakka
index 608a5bbf4e..9463b0ad22 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptionbyval.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptionbyval.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OPTION_BYVAL__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_BYVAL__""
+ __FB_OPTION_BYVAL__
##
{{fbdoc item="desc"}}
- Indicates if parameters to a ##[[KeyPgFunction Function]]## or ##[[KeyPgSub Sub]]## are passed by reference as with ##[[KeyPgByref Byref]]##, or by value as with ##[[KeyPgByval Byval]]## by default when the by value / by reference specifier is not explicitly stated.
+ Indique si les paramètres d'une ##[[KeyPgFunction Function]]## ou d'une ##[[KeyPgSub Sub]]## sont passés par référence, comme avec ##[[KeyPgByref ByRef]]##, ou par valeur comme avec ##[[KeyPgByval ByVal]]##, par défaut, quand le spécificateur ##//by value//## (par valeur) / ##//by reference//## (par référence) n'est pas explicitement établi.
- ##""__FB_OPTION_BYVAL__""## is set to non-zero (-1) if by default parameters are passed value, and zero (0) if by default parameters are passed by reference.
+ ##__FB_OPTION_BYVAL__## est fixé à non-zéro (-1) si par les paramètres par défaut sont passés de valeur et zéro (0) si les paramètres par défaut sont passés par référence.
- The default for passing parameters by reference or by value is determined by the //[[CompilerOptlang -lang]]// command line option used during compilation or usage of ##[[KeyPgOptionbyval Option Byval]]## in the source file.
+ La valeur par défaut pour passer des paramètres par référence ou par valeur est déterminée par l'option //[[CompilerOptlang -lang]]// de la ligne de commande utilisée pendant la compilaton ou l'utilisation de ##[[KeyPgOptionbyval Option ByVal]]## dans le fichier source.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptionbyval.bas"}}%%(freebasic)
@@ -19,9 +19,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgByval Byval]]##
- ##[[KeyPgByref Byref]]##
- ##[[KeyPgOptionbyval Option Byval]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboptiondynamic.wakka b/fbdocs/manual/cache/KeyPgDdfboptiondynamic.wakka
index bd594e3f2f..e375dbd40b 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptiondynamic.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptiondynamic.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_OPTION_DYNAMIC__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_DYNAMIC__""
+ __FB_OPTION_DYNAMIC__
##
{{fbdoc item="desc"}}
- ##""__FB_OPTION_DYNAMIC__""## is defined as true (negative one (-1)) if a recent ##[[KeyPgOptiondynamic Option Dynamic]]## statement or ##[[KeyPgMetaDynamic '$Dynamic]]## meta-command was issued. Otherwise, it is defined as zero (0).
+ ##__FB_OPTION_DYNAMIC__## est définie comme vraie ##//(un négatif (-1))//## si une récente déclaration ##[[KeyPgOptiondynamic Option Dynamic]]## ou métacommande ##[[KeyPgMetaDynamic '$Dynamic]]## a été émise. Sinon, elle est définie comme zéro.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptiondynamic.bas"}}%%(freebasic)
@@ -15,9 +15,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgOptiondynamic Option Dynamic]]##
- ##[[KeyPgOptionstatic Option Static]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboptionescape.wakka b/fbdocs/manual/cache/KeyPgDdfboptionescape.wakka
index 1ca72964e1..c3f9a871f3 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptionescape.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptionescape.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OPTION_ESCAPE__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_ESCAPE__""
+ __FB_OPTION_ESCAPE__
##
{{fbdoc item="desc"}}
- Indicates if by default, string literals are processed for escape characters when not explicitly prefixed with the [[KeyPgOpPpNoescape $ operator]] for non-escaped strings, or the [[KeyPgOpPpEscape ! operator]] for escaped strings.
+ Indique si par défaut, les chaînes de littéraux sont prévues pour les caractères d'échappement quand elles ne sont pas explicitement préfixées avec [[KeyPgOpPpNoescape $ Operator]] pour les chaînes non-caractères-d'échappement, ou [[KeyPgOpPpEscape ! Operator]] pour les chaînes-à-caractères-d'échappement.
- The default method for processing string literals is set by usage of the //[[CompilerOptlang -lang]]// command line option during compilation or usage of ##[[KeyPgOptionescape Option Escape]]## in the source file.
+ La méthode par défaut pour traîter les chaînes littérales est fixée par l'utilisation de l'option //[[CompilerOptlang -lang]]// de la ligne de commande pendant la compilation ou l'utilisation de l'##[[KeyPgOptionescape Option Escape]]## dans le fichier source.
- ##""__FB_OPTION_ESCAPE__""## returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
+ ##__FB_OPTION_ESCAPE__## retourne zéro (0) si l'option n'est pas valide. Retourne non-zéro (-1) si l'option est valide.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptionescape.bas"}}%%(freebasic)
@@ -19,9 +19,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgOptionescape Option Escape]]##
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfboptionexplicit.wakka b/fbdocs/manual/cache/KeyPgDdfboptionexplicit.wakka
index 3ab2e75a51..81a108ac4b 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptionexplicit.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptionexplicit.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FB_OPTION_EXPLICIT__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_EXPLICIT__""
+ __FB_OPTION_EXPLICIT__
##
{{fbdoc item="desc"}}
- ##""__FB_OPTION_EXPLICIT__""## indicates if ##[[KeyPgOptionexplicit Option Explicit]]## has been used previously in the source.
+ ##__FB_OPTION_EXPLICIT__## indique si ##[[KeyPgOptionexplicit Option Explicit]]## a été utilisée précédemment dans le source.
- Returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
+ Retourne zéro (0) si l'option n'a pas été validée. Retourne non-zéro (-1) si l'option a été validée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptionexplicit.bas"}}%%(freebasic)
@@ -17,9 +17,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDim Dim]]##
- ##[[KeyPgOptionexplicit Option Explicit]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboptiongosub.wakka b/fbdocs/manual/cache/KeyPgDdfboptiongosub.wakka
index 92e989661d..e2db03e571 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptiongosub.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptiongosub.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OPTION_GOSUB__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_GOSUB__""
+ __FB_OPTION_GOSUB__
##
{{fbdoc item="desc"}}
- Indicates how ##[[KeyPgGosub Gosub]]## and ##[[KeyPgReturn Return]]## will be handled at compile time. If the option is set (-1) then ##[[KeyPgGosub Gosub]]## is allowed and ##[[KeyPgReturn Return]]## is recognized as return-from-gosub only. If the option is not set (0) then ##[[KeyPgGosub Gosub]]## is not allowed and ##[[KeyPgReturn Return]]## is recognized as return-from-procedure only.
+ Indique comment ##[[KeyPgGosub GoSub]]## et ##[[KeyPgReturn Return]]## seront pris en charge au moment de la compilation. Si l'option est validée (-1) alors ##[[KeyPgGosub GoSub]]## est permis et ##[[KeyPgReturn Return]]## est reconnu seulement comme ##//"retour-de-gosub"//##. Si l'option n'est pas validée (0) alors ##[[KeyPgGosub GoSub]]## n'est pas permis et ##[[KeyPgReturn Return]]## est reconnu seulement comme ##//"retour-de-procédure"//##.
- This macro value can be changed at compile time. ##[[KeyPgOptiongosub Option Gosub]]## will set the option (enable gosub support) and ##[[KeyPgOptionnogosub Option Nogosub]]## will clear the option (disable gosub support).
+ Cette valeur macro peut être changée au moment de la compilation. ##[[KeyPgOptiongosub Option Gosub]]## validera l'option (valide le support de gosub) et ##[[KeyPgOptionnogosub Option Nogosub]]## annulera l'option (annulation du support de gosub).
- ##""__FB_OPTION_GOSUB__""## returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
+ ##__FB_OPTION_GOSUB__## retourne zéro (0) si l'option n'a pas été validée. Retourne non-zéro (-1) si l'option a été validée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptiongosub.bas"}}%%(freebasic)
@@ -20,12 +20,12 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="lang"}}
- - Defaults to ##-1## in the //[[CompilerOptlang -lang qb]]// dialect and ##0## in all other dialects.
+ - Par défaut, ##-1## dans le dialecte //[[CompilerOptlang -lang qb]]// et ##0## dans tous les autres dialectes.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgOptiongosub Option Gosub]]##
- ##[[KeyPgOptionnogosub Option Noosub]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboptionprivate.wakka b/fbdocs/manual/cache/KeyPgDdfboptionprivate.wakka
index b266c3a947..9bb7dc79e1 100644
--- a/fbdocs/manual/cache/KeyPgDdfboptionprivate.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboptionprivate.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OPTION_PRIVATE__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OPTION_PRIVATE__""
+ __FB_OPTION_PRIVATE__
##
{{fbdoc item="desc"}}
- Indicates if by default ##[[KeyPgFunction Function]]##'s and ##[[KeyPgSub Sub]]##'s have module scope or global scope when not explicitly specified with ##[[KeyPgPrivate Private]]## or ##[[KeyPgPublic Public]]##.
+ Indique si par défaut les ##[[KeyPgFunction Function]]## et ##[[KeyPgSub Sub]]## ont une portée niveau-module ou au niveau-global si rien n'a été explicitement spécifié avec ##[[KeyPgPrivate Private]]## ou ##[[KeyPgPublic Public]]##.
- The default scope specifier for functions and subs is set by usage of the //[[CompilerOptlang -lang]]// command line option during compilation or usage of ##[[KeyPgOptionprivate Option Private]]## in the source file.
+ Le spécificateur de portée par défaut pour les **function**s et les **sub**s est fixé par l'option //[[CompilerOptlang -lang]]// de la ligne de commande durant la compilation ou l'utilisation de l'##[[KeyPgOptionprivate Option Private]]## dans le fichier source.
- ##""__FB_OPTION_PRIVATE__""## returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
+ ##__FB_OPTION_PRIVATE__## retourne zéro (0) si l'option n'a pas été validée. Retourne non-zéro (-1) si l'option a été validée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboptionprivate.bas"}}%%(freebasic)
@@ -19,9 +19,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgOptionprivate Option Private]]##
- ##[[KeyPgPrivate Private]]##
- ##[[KeyPgPublic Public]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboutdll.wakka b/fbdocs/manual/cache/KeyPgDdfboutdll.wakka
index 049c6eda9f..9e347c57a0 100644
--- a/fbdocs/manual/cache/KeyPgDdfboutdll.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboutdll.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OUT_DLL__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OUT_DLL__""
+ __FB_OUT_DLL__
##
{{fbdoc item="desc"}}
- ##""__FB_OUT_DLL__""## indicates that the specified output file type on the compiler command line at the time of compilation is a shared library.
+ ##__FB_OUT_DLL__## indique que le type de sortie fichier spécifié sur la ligne de commande du compilateur au moment de la compilation est une bibliothèque partagée (shared library).
- Returns non-zero (-1) if the output is a shared library. Returns zero (0) otherwise.
+ Retourne non-nul (-1) si la sortie est une bibliothèque partagée. Retourne zéro (0) autrement.
- Only one of ##""__FB_OUT_DLL__""##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, or ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## will evaluate to non-zero (-1). All others will evaluate to zero (0).
+ Un seul des ##__FB_OUT_DLL__##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, ou ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## sera à non-zéro (-1). Tous les autres seront à zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboutdll.bas"}}%%(freebasic)
@@ -17,16 +17,16 @@ Intrinsic define (macro value) set by the compiler
'... specific instructions when making a shared library (DLL)
#else
'... specific instructions when not making a shared library (DLL)
-#endif
+#endif
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##
- ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##
- ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]##
- - [[CompilerOptdll Compiler Option: -dll]]
+ - [[CompilerOptdll Option du compilateur: -dll]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfboutexe.wakka b/fbdocs/manual/cache/KeyPgDdfboutexe.wakka
index 820891d848..79e56780f4 100644
--- a/fbdocs/manual/cache/KeyPgDdfboutexe.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboutexe.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OUT_EXE__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OUT_EXE__""
+ __FB_OUT_EXE__
##
{{fbdoc item="desc"}}
- ##""__FB_OUT_EXE__""## indicates that the specified output file type on the compiler command line at the time of compilation is an executable.
+ ##__FB_OUT_EXE__## indique que le type de sortie fichier spécifié sur la ligne de commande du compilateur au moment de la compilation est un exécutable.
- Returns non-zero (-1) if the output is an executable. Returns zero (0) otherwise.
+ Retourne non-nul (-1) si la sortie est un exécutable. Retourne zéro (0) autrement.
- Only one of ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##""__FB_OUT_EXE__""##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, or ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## will evaluate to non-zero (-1). All others will evaluate to zero (0).
+ Seulement un des ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##__FB_OUT_EXE__##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, ou ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## sera à non-zéro (-1). Tous les autres seront à zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboutexe.bas"}}%%(freebasic)
@@ -21,9 +21,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##
- ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##
- ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfboutlib.wakka b/fbdocs/manual/cache/KeyPgDdfboutlib.wakka
index f526274004..6e9fc318f0 100644
--- a/fbdocs/manual/cache/KeyPgDdfboutlib.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboutlib.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OUT_LIB__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OUT_LIB__""
+ __FB_OUT_LIB__
##
{{fbdoc item="desc"}}
- ##""__FB_OUT_LIB__""## indicates that the specified output file type on the compiler command line at the time of compilation is a static library.
+ ##__FB_OUT_LIB__## indique que le type de sortie fichier spécifié sur la ligne de commande du compilateur au moment de la compilation est une librairie statique (static library).
- Returns non-zero (-1) if the output is a static library. Returns zero (0) otherwise.
+ Retourne non-nul (-1) si la sortie est une librairie statique (static library). Retourne zéro (0) autrement.
- Only one of ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##""__FB_OUT_LIB__""##, or ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## will evaluate to non-zero (-1). All others will evaluate to zero (0).
+ Seulement un des ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##__FB_OUT_LIB__##, ou ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]## sera à non-zéro (-1). Tous les autres seront à zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboutlib.bas"}}%%(freebasic)
@@ -21,12 +21,12 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##
- ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##
- ##[[KeyPgDdfboutobj __FB_OUT_OBJ__]]##
- - [[CompilerOptlib Compiler Option: -lib]]
+ - [[CompilerOptlib Option du compilateur: -lib]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfboutobj.wakka b/fbdocs/manual/cache/KeyPgDdfboutobj.wakka
index c0ee79ef7b..1d303d6707 100644
--- a/fbdocs/manual/cache/KeyPgDdfboutobj.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfboutobj.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FB_OUT_OBJ__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_OUT_OBJ__""
+ __FB_OUT_OBJ__
##
{{fbdoc item="desc"}}
- ##""__FB_OUT_OBJ__""## indicates that the specified output file type on the compiler command line at the time of compilation is an object module.
+ ##__FB_OUT_OBJ__## indique que le type de sortie fichier spécifié sur la ligne de commande du compilateur au moment de la compilation est un module objet.
- Returns non-zero (-1) if the output is an object module. Returns zero (0) otherwise.
+ Retourne non-nul (-1) si la sortie est un module objet. Retourne zéro (0) autrement.
- Only one of ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, or ##""__FB_OUT_OBJ__""##, will evaluate to non-zero (-1). All others will evaluate to zero (0).
+ Seulement un des ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##, ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##, ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##, ou ##__FB_OUT_OBJ__## sera à non-zéro (-1). Tous les autres seront à zéro (0).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fboutobj.bas"}}%%(freebasic)
@@ -21,9 +21,9 @@ Intrinsic define (macro value) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgDdfboutexe __FB_OUT_EXE__]]##
- ##[[KeyPgDdfboutdll __FB_OUT_DLL__]]##
- ##[[KeyPgDdfboutlib __FB_OUT_LIB__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfbpcos.wakka b/fbdocs/manual/cache/KeyPgDdfbpcos.wakka
index 0300b128e3..db005c2730 100644
--- a/fbdocs/manual/cache/KeyPgDdfbpcos.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbpcos.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_PCOS__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_PCOS__""
+ __FB_PCOS__
##
{{fbdoc item="desc"}}
- Define created at compile time if the OS has filesystem behavior styled like common PC OSes, e.g. DOS, Windows, OS/2, Symbian OS, possibly others. Drive letters, backslashes, that stuff, otherwise undefined.
+ Défini au moment de la compilation si l'OS a un comportement de système de fichiers comme les systèmes d'exploitation courants pour PC, par exemple avec -1 si l'OS a un comportement de système de fichiers de style commun aux OS PC, par exemple, DOS, Windows, OS / 2, Symbian OS, peut-être d'autres. Lettres de lecteur, barres obliques, ce genre de choses, sinon indéfini.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbpcos.bas"}}%%(freebasic)
@@ -17,13 +17,13 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- ##[[KeyPgDdfbdos __FB_DOS__]]##
- ##[[KeyPgDdfbxbox __FB_XBOX__]]##
- ##[[KeyPgDdfbunix __FB_UNIX__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbsignature.wakka b/fbdocs/manual/cache/KeyPgDdfbsignature.wakka
index 04877cb1de..9e8712cdc2 100644
--- a/fbdocs/manual/cache/KeyPgDdfbsignature.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbsignature.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_SIGNATURE__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_SIGNATURE__""
+ __FB_SIGNATURE__
##
{{fbdoc item="desc"}}
- Substituted by a signature of the compiler where used.
+ Remplacé par la signature du compilateur qui est utilisé.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbsignature.bas"}}%%(freebasic)
@@ -17,7 +17,7 @@ FreeBASIC 0.21.1
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbversion __FB_VERSION__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfbsse.wakka b/fbdocs/manual/cache/KeyPgDdfbsse.wakka
index 1388b6fac2..1914c09dc6 100644
--- a/fbdocs/manual/cache/KeyPgDdfbsse.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbsse.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_SSE__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_SSE__""
+ __FB_SSE__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time if SSE floating point arithmetics is enabled.
+ Définition sans valeur créée au moment de la compilation si l'arithmétique en virgule flottante SSE est activée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbsse.bas"}}%%(freebasic)
@@ -17,10 +17,10 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbfpu __FB_FPU__]]##
- - [[CompilerOptfpu Compiler Option: -fpu]]
+ - [[CompilerOptfpu Option du compilateur: -fpu]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbunix.wakka b/fbdocs/manual/cache/KeyPgDdfbunix.wakka
index f1a8cf553e..738c489387 100644
--- a/fbdocs/manual/cache/KeyPgDdfbunix.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbunix.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_UNIX__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_UNIX__""
+ __FB_UNIX__
##
{{fbdoc item="desc"}}
- Define created at compile time if the OS is reasonably enough like UNIX that you can call it UNIX, otherwise undefined.
+ Définition créée au momen de la compilation si le système d'exploitation est assez raisonnablement compatible UNIX, autrement indéfini.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbunix.bas"}}%%(freebasic)
@@ -17,7 +17,7 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
@@ -27,6 +27,6 @@ Intrinsic define set by the compiler
- ##[[KeyPgDdfbcygwin __FB_CYGWIN__]]##
- ##[[KeyPgDdfbdarwin __FB_DARWIN__]]##
- ##[[KeyPgDdfbpcos __FB_PCOS__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbvectorize.wakka b/fbdocs/manual/cache/KeyPgDdfbvectorize.wakka
index 34b60b04da..b8e52a04b9 100644
--- a/fbdocs/manual/cache/KeyPgDdfbvectorize.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbvectorize.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_VECTORIZE__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_VECTORIZE__""
+ __FB_VECTORIZE__
##
{{fbdoc item="desc"}}
- Defined as the vectorisation level number set by the //[[CompilerOptvec -vec]]// command-line option.
+ Défini comme le numéro de niveau de vectorisation fixé par l'option //[[CompilerOptvec -vec]]// de la ligne de commande.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbvectorize.bas"}}%%(freebasic)
@@ -17,9 +17,9 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CompilerOptvec Compiler Option: -vec]]
+ - [[CompilerOptvec Option du compilateur: -vec]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbversion.wakka b/fbdocs/manual/cache/KeyPgDdfbversion.wakka
index b86522f8b7..64ee7253ec 100644
--- a/fbdocs/manual/cache/KeyPgDdfbversion.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbversion.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_VERSION__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_VERSION__""
+ __FB_VERSION__
##
{{fbdoc item="desc"}}
- Substituted by the version number of the compiler where used.
+ Remplacé par le numéro de version du compilateur utilisé.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbversion.bas"}}%%(freebasic)
@@ -13,11 +13,11 @@ Intrinsic define (macro string) set by the compiler
#error Please compile with FB version 0.18 or above
#endif
%%
- This will stop the compilation if the compiler version is below 0.18
+ Cela arrêtera la compilation si la version du compilateur est inférieure à 0,18
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'éxistait pas dans QB
{{fbdoc item="see"}}
- ##[[KeyPgDdfbsignature __FB_SIGNATURE__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfbwin32.wakka b/fbdocs/manual/cache/KeyPgDdfbwin32.wakka
index 3ab0438335..86244628cb 100644
--- a/fbdocs/manual/cache/KeyPgDdfbwin32.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbwin32.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_WIN32__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_WIN32__""
+ __FB_WIN32__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time if compiling to the ""Win32"" target. Default in ""Win32"" hosted version, or active if the //[[CompilerOpttarget -target win32]]// command line option is used. It can be used to compile parts of the program only if the target is ""Win32"".
+ Définition sans valeur créée au moment de la compilation, si compilation vers une cible Win32. Par défaut dans la version Win32 hébergée, ou actif si l'option //[[CompilerOpttarget -target win32]]// de la ligne de commande est utilisée. Peut être utilisé pour compiler des parties d'un programme que si la cible est Win32.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbwin32.bas"}}%%(freebasic)
@@ -18,12 +18,12 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfbdos __FB_DOS__]]##
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbpcos __FB_PCOS__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfbxbox.wakka b/fbdocs/manual/cache/KeyPgDdfbxbox.wakka
index b0d1aadf9a..8a21a328d1 100644
--- a/fbdocs/manual/cache/KeyPgDdfbxbox.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfbxbox.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FB_XBOX__"}}----
-Intrinsic define set by the compiler
+Définition intrinsèque fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FB_XBOX__""
+ __FB_XBOX__
##
{{fbdoc item="desc"}}
- Define without a value created at compile time when the //[[CompilerOpttarget -target xbox]]// command line option is used. It can be used to compile parts of the program only if the target is Xbox.
+ Définition sans valeur créée au moment de la compilation lorsque l'option //[[CompilerOpttarget -target xbox]]// de la ligne de commande est utilisée. Peut être utilisé pour compiler des parties d'un programme seulement si la cible est Xbox.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbxbox.bas"}}%%(freebasic)
@@ -17,12 +17,12 @@ Intrinsic define set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux __FB_LINUX__]]##
- ##[[KeyPgDdfbwin32 __FB_WIN32__]]##
- - [[CompilerOpttarget Compiler Option: -target]]
+ - [[CompilerOpttarget Option du compilateur: -target]]
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDdfile.wakka b/fbdocs/manual/cache/KeyPgDdfile.wakka
index 02c915552d..4312d95bb3 100644
--- a/fbdocs/manual/cache/KeyPgDdfile.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfile.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FILE__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FILE__""
+ __FILE__
##
{{fbdoc item="desc"}}
- Substituted with the quoted source file name where used.
+ Remplacé par le nom, entre guillemets, du fichier source où il est utilisé.
- An example of normal use is to report wrong values in debugging.
+ Un exemple d'utilisation habituelle est de rendre compte des valeurs erronées dans le débogage.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/file.bas"}}%%(freebasic)
@@ -22,7 +22,7 @@ Error: a = -32767 in test.bas (MAIN) line 47
%%
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existait pas dans QB
{{fbdoc item="see"}}
- ##[[KeyPgDdfilenq __FILE_NQ__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfilenq.wakka b/fbdocs/manual/cache/KeyPgDdfilenq.wakka
index 3722775076..c21730e50c 100644
--- a/fbdocs/manual/cache/KeyPgDdfilenq.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfilenq.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__FILE_NQ__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FILE_NQ__""
+ __FILE_NQ__
##
{{fbdoc item="desc"}}
- Substituted with the non-quoted source file name where used.
+ Remplacé par le nom du fichier source entre guillemets où il est utilisé.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/filenq.bas"}}%%(freebasic)
@@ -13,7 +13,7 @@ Intrinsic define (macro string) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfile __FILE__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfunction.wakka b/fbdocs/manual/cache/KeyPgDdfunction.wakka
index ebae91bb8f..552dccb876 100644
--- a/fbdocs/manual/cache/KeyPgDdfunction.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfunction.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="__FUNCTION__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FUNCTION__""
+ __FUNCTION__
##
{{fbdoc item="desc"}}
- Substituted with the quoted name of the current function block where used.
+ Remplacé par le nom du fichier source entre guillemets où il est utilisé.
- Its normal use is to report wrong values in debugging.
+ Son utilisation normale est de rendre compte de valeurs erronées lors du débogage.
- If ##**""__FUNCTION__""**## is used at the module level, the function name given will be ##"""__FB_MAINPROC__"""## for the main module, or ##"""__FB_MODLEVELPROC__"""## for a different module.
+ Si ##**__FUNCTION__**## est utilisé au niveau module, le nom de fonction donné sera ##"__FB_MAINPROC__"## pour le module principal (main), ou ##"__FB_MODLEVELPROC__"## pour un module différent.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/function.bas"}}%%(freebasic)
@@ -27,7 +27,7 @@ Error: a = -32767 in test.bas (__FB_MAINPROC__) line 47
%%
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existait pas dans QB
{{fbdoc item="see"}}
- ##[[KeyPgDdfile __FILE__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdfunctionnq.wakka b/fbdocs/manual/cache/KeyPgDdfunctionnq.wakka
index 4b55f281d4..aeb6ef297a 100644
--- a/fbdocs/manual/cache/KeyPgDdfunctionnq.wakka
+++ b/fbdocs/manual/cache/KeyPgDdfunctionnq.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__FUNCTION_NQ__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__FUNCTION_NQ__""
+ __FUNCTION_NQ__
##
{{fbdoc item="desc"}}
- Substituted with the non-quoted name of the current function block where used.
+ Remplacé par le nom du fichier source entre guillemets où il est utilisé.
- If ##**""__FUNCTION_NQ__""**## is used at the module level, the function name given will be ##""__FB_MAINPROC__""## for the main module, or ##""__FB_MODLEVELPROC__""## for a different module. This is not the actual function name though, so it's not as useful there.
+ Si ##**__FUNCTION_NQ__**## est utilisé au niveau module, le nom de fonction donné sera ##__FB_MAINPROC__## pour le module principal (main), ou ##__FB_MODLEVELPROC__## pour un module différent. Cependant ce n'est pas le nom réel de la fonction, ce n'est donc pas très utile.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/functionnq.bas"}}%%(freebasic)
@@ -25,7 +25,7 @@ Address of MYSUB is 4012D0
%%
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existait pas dans QB
{{fbdoc item="see"}}
- ##[[KeyPgDdfilenq __FILE_NQ__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdline.wakka b/fbdocs/manual/cache/KeyPgDdline.wakka
index 2c8b310fb5..8cad8e52a4 100644
--- a/fbdocs/manual/cache/KeyPgDdline.wakka
+++ b/fbdocs/manual/cache/KeyPgDdline.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="__LINE__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__LINE__""
+ __LINE__
##
{{fbdoc item="desc"}}
- Substituted with the current line number of the source file where used.
+ Remplacé, où il est utilisé, par le numéro de la ligne courante du fichier source.
- Its normal use is to report wrong values in debugging.
+ Son utilisation normale est de rendre compte de valeurs erronées lors du débogage.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/line.bas"}}%%(freebasic)
@@ -23,7 +23,7 @@ Error: a = -32767 in test.bas (MAIN) line 47
%%
{{fbdoc item="diff"}}
- - Did not exist in QB
+ - N'existait pas dans QB
{{fbdoc item="see"}}
- ##[[KeyPgDdfile __FILE__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdpath.wakka b/fbdocs/manual/cache/KeyPgDdpath.wakka
index 9415bc80e9..663e707f0f 100644
--- a/fbdocs/manual/cache/KeyPgDdpath.wakka
+++ b/fbdocs/manual/cache/KeyPgDdpath.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="__PATH__"}}----
-Intrinsic define (macro string) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__PATH__""
+ __PATH__
##
{{fbdoc item="desc"}}
- Set to the quoted absolute path of the source file at the time of compilation.
+ Définir le chemin absolu du fichier source (entre guillemets) au moment de la compilation.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/path.bas"}}%%(freebasic)
@@ -16,7 +16,7 @@ Intrinsic define (macro string) set by the compiler
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgDdfile __FILE__]]##
diff --git a/fbdocs/manual/cache/KeyPgDdtime.wakka b/fbdocs/manual/cache/KeyPgDdtime.wakka
index 624f96e7e3..682dda4b6e 100644
--- a/fbdocs/manual/cache/KeyPgDdtime.wakka
+++ b/fbdocs/manual/cache/KeyPgDdtime.wakka
@@ -1,23 +1,25 @@
{{fbdoc item="title" value="__TIME__"}}----
-Intrinsic define (macro value) set by the compiler
+Définition intrinsèque (valeur de la macro) fixée par le compilateur
{{fbdoc item="syntax"}}##
- ""__TIME__""
+ __TIME__
##
{{fbdoc item="desc"}}
- Substitutes the compiler time in 24 hour format were used.
+ Remplacé, où il est utilisé, par l'heure de compilation, dans le format 24 heures.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/time.bas"}}%%(freebasic)
-PRINT "CompileTime: ";__TIME__
+Print "CompileTime: ";__TIME__
%%
%%
Compile Time: 11:42:57
-%%
{{fbdoc item="diff"}}
- - New to Freebasic
+- Nouveau pour Freebasic
+ {{fbdoc item="see"}}
-{{fbdoc item="see"}}
+- ##[[KeyPgDddate __DATE__]]##
- ##[[KeyPgDddate __DATE__]]##
+ - ##[[KeyPgDddateiso __DATE_ISO__]]##
+ - ##[[KeyPgTime Time]]##
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
diff --git a/fbdocs/manual/cache/KeyPgDeallocate.wakka b/fbdocs/manual/cache/KeyPgDeallocate.wakka
index 67a3ceab55..4fec02c69e 100644
--- a/fbdocs/manual/cache/KeyPgDeallocate.wakka
+++ b/fbdocs/manual/cache/KeyPgDeallocate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DEALLOCATE"}}----
-Frees previously allocated memory
+Libère la mémoire précédemment allouée
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Deallocate** [[KeyPgCdecl cdecl]] ( [[KeyPgByval byval]] //pointer// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
@@ -9,15 +9,15 @@ Frees previously allocated memory
##
{{fbdoc item="param"}}
##//pointer//##
- the address of the previously allocated buffer.
+ l'adresse de la mémoire tampon précédemment allouée.
{{fbdoc item="desc"}}
- This procedure frees memory that was previously allocated with ##[[KeyPgAllocate Allocate]]##. ##//pointer//## must be a valid pointer. After the procedure returns, ##//pointer//## will be rendered invalid (pointing to an invalid memory address), and its use will result in undefined behavior.
+ Cette procédure libère de la mémoire qui a été précédemment allouée avec ##[[KeyPgAllocate Allocate]]##. ##//pointer//## doit être un pointeur valide. Après le retour de procédure, ##//pointer//## sera considéré comme invalide (pointant vers une adresse mémoire invalide) et son utilisation se traduira par un comportement non défini.
-~&**##Deallocate##** is an alias for the C runtime library's **##free##**, so it's not guaranteed to be thread safe in all platforms.
+**##Deallocate##** est un alias pour la bibliothèque d'exécution C **##libre##**, elle n'est donc pas garantie d'être "thread-safe" sur toutes les plates-formes.
{{fbdoc item="ex"}}
-The following example shows how to free previously allocated memory. Note that the pointer is set to null following the deallocation:
+L'exemple suivant montre comment libérer de la mémoire précédemment allouée. Notez que le pointeur a la valeur nulle après la désallocation:
{{fbdoc item="filename" value="examples/manual/memory/deallocate.bas"}}%%(freebasic)
sub DeallocateExample1()
@@ -35,9 +35,9 @@ end sub
end 0
%%
-Although in this case it is unnecessary - since 1. the pointer is not a reference to another pointer, 2. no other pointers point to the deallocated memory and 3. the function immediately exits afterward - setting the pointer to null is a good habit to get into. If the function deallocated memory from a pointer that was passed in by reference, for instance, the pointer that was used in the function call will be rendered invalid, and it is up to the caller to either reassign the pointer or set it to null. Example 3 shows how to correctly handle this kind of situation, and the next example shows the effects of deallocating memory with multiple references.
+Bien que, dans ce cas, ce ne soit pas nécessaire -##// puisque 1°) le pointeur n'est pas une référence à un autre pointeur, 2°) aucun autre pointeur ne pointe sur la mémoire libérée et 3°) la fonction quitte immédiatement après //##- fixer le pointeur à NULL est une bonne habitude à prendre. Si la fonction libère la mémoire à partir d'un pointeur qui a été passé par référence, dans cette circonstance, le pointeur qui a été utilisé dans l'appel de la fonction sera considéré comme invalide, et il appartient à l'appelant soit de le réaffecter ou de le configurer pour qu'il soit nul. L'exemple 3 montre comment gérer correctement ce genre de situation et l'exemple suivant montre les effets de la désallocation de mémoire avec de multiples références.
-In the following example, a different pointer is used to free previously allocated memory.
+Dans l'exemple suivant, un pointeur différent est utilisé pour libérer la mémoire précédemment allouée.
{{fbdoc item="filename" value="examples/manual/memory/deallocate2.bas"}}%%(freebasic)
'' WARNING: "evil" example showing how things should NOT be done
@@ -63,7 +63,7 @@ end sub
end 0
%%
-Note that after the deallocation, //both// pointers are rendered invalid. This illustrates another one of the ways that bugs can arise when working with pointers. As a general rule, only deallocate memory previously allocated when you know that there is only one (1) pointer currently pointing at it.
+Notez qu'après la désallocation, //les deux// pointeurs sont invalidés. Cela illustre une autre cause de bugs lorsque l'on travaille avec des pointeurs. En règle générale, ne libérez de la mémoire précédemment allouée que lorsque vous savez qu'il n'y a qu'un seul (1) pointeur qui pointe actuellement sur elle.
{{fbdoc item="filename" value="examples/manual/memory/deallocate3.bas"}}%%(freebasic)
function createInteger() as integer ptr
@@ -90,13 +90,13 @@ end sub
end 0
%%
-In the program above, a reference pointer in a function is set to null after deallocating the memory it points to. An ##[[KeyPgAssert ASSERT]]## macro is used to test if the original pointer is in fact null after the function call. This example implies the correct way to pass pointers to functions that deallocate the memory they point to is by reference.
+Dans le programme ci-dessus, un pointeur de référence dans une fonction est fixé à null après libération de la mémoire sur laquelle il il pointe. Une macro ##[[KeyPgAssert Assert]]## est utilisée pour tester si le pointeur original est en fait nul après l'appel de la fonction. Cet exemple implique que la bonne façon de passer des pointeurs de fonctions qui désallouent la mémoire qu'ils pointent, est par référence.
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Deallocate""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Deallocate**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgAllocate Allocate]]##
diff --git a/fbdocs/manual/cache/KeyPgDeclare.wakka b/fbdocs/manual/cache/KeyPgDeclare.wakka
index ee4070b3be..eac520fddb 100644
--- a/fbdocs/manual/cache/KeyPgDeclare.wakka
+++ b/fbdocs/manual/cache/KeyPgDeclare.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DECLARE"}}----
-Declares a module-level or member procedure
+Déclare une procédure au niveau module ou un membre de procédure
{{fbdoc item="syntax"}}##
**Declare** [[KeyPgSub Sub]] //name// [ //param_list// ] [ [[KeyPgModuleConstructor Constructor]] | [[KeyPgModuleDestructor Destructor]] ]
@@ -17,28 +17,28 @@ Declares a module-level or member procedure
##
{{fbdoc item="param"}}
##//param_list//##
- Parenthesized comma-separated list of parameters.
+ Liste entre parenthèses de paramètres séparés par des virgules.
##//return_type//##
- The return type of a ##[[KeyPgFunction Function]]##, ##[[KeyPgOperator Operator]]##, or ##[[KeyPgProperty Property]]## procedure.
+ Le type de retour d'une procédure ##[[KeyPgFunction Function]]##, ##[[KeyPgOperator Operator]]##, ou ##[[KeyPgProperty Property]]##.
##//name//##
- The name or symbol of the routine.
+ Le nom ou le symbole de la routine.
##//op_symbol//##
- The name or symbol of an operator.
+ Le nom ou le symbole d'un opérateur.
##//T//##
- The name of a new user-defined type.
+ Le nom d'un nouveau type défini par l'utilisateur.
{{fbdoc item="desc"}}
- The ##**Declare**## statement declares a ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgOperator Operator]]##, ##[[KeyPgConstructor Constructor]]##, or ##[[KeyPgDestructor Destructor]]##. We will refer to one of these as a routine.
- The routine can be referred to in code without seeing its definition, although it must be defined somewhere. Essentially, the ##**Declare**## statement introduces a routine, and states that its definition is elsewhere. For example, a function can be declared at the top of a source module, called, then defined at the bottom of the source file, as shown below the example.
+ L'instruction ##**Declare**## déclare un(e) ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgOperator Operator]]##, ##[[KeyPgConstructor Constructor]]##, ou ##[[KeyPgDestructor Destructor]]##. Nous ferons référence à l'un d'entre eux comme une routine.
+ La routine peut être mentionnée dans le code sans voir sa définition, cependant elle doit être définie quelque part. Essentiellement, l'instruction ##**Declare**## introduit une routine, et déclare que sa définition est ailleurs. Par exemple, une fonction peut être déclarée en haut d'un module source, appelée, puis définie à la fin du fichier source, comme le montre l'exemple ci-dessous.
- A routine's declaration is almost identical to the first line of its definition, except the declaration is preceded by the ##**Declare**## keyword and has no body. Also, attributes such as [[KeyPgExport Export]] are left off the declaration.
+ Une déclaration de routine est presque identique à la première ligne de sa définition, sauf que la déclaration est précédée par le mot-clé ##**Declare**## et n'a pas de corps. De plus, des attributs tels que [[KeyPgExport Export]] sont laissés hors de la déclaration.
- FreeBASIC, as QB, does not require the declaration of the functions unless they are defined in a different source file or in the same file past the point where they are called. This is no longer true for routines declared inside a [[KeyPgType Type]] body, which must **always** be declared first in the [[KeyPgType Type]]'s body before use. If you do not declare [[KeyPgType Type]] routines you will receive an error.
+ FreeBASIC, comme QB, n'exige pas la déclaration des fonctions à moins qu'elles soient définies dans un fichier source différent ou dans le même fichier après le point où elles sont appelées. Ce n'est pas vrai pour les routines déclarées à l'intérieur d'un corps de [[KeyPgType Type]], qui doivent **toujours** être déclarées en premier dans le corps du [[KeyPgType Type]] avant de les utiliser. Si vous ne déclarez pas les routines [[KeyPgType Type]] vous recevrez un message d'erreur.
- As every file using a function must have its declaration, declarations are usually kept in one or more //include files// to allow usage of the function by any module that needs it using the ##[[KeyPgInclude #include]]## statement.
+ Comme chaque fichier utilisant une fonction doit avoir sa déclaration, les déclarations sont habituellement groupée dans un ou plusieurs //fichiers include// pour permettre l'utilisation de la fonction par un module quelconque qui en a besoin en utilisant l'instruction ##[[KeyPgInclude #include]]##.
{{fbdoc item="ex"}}
-Module-level Function:
+Fonction niveau module:
{{fbdoc item="filename" value="examples/manual/procs/declare.bas"}}%%(freebasic)
'' declare the function sum which takes two integers and returns an integer
declare function sum( as integer, as integer ) as integer
@@ -51,7 +51,7 @@ function sum( a as integer, b as integer ) as integer
end function
%%
-Type-level Sub:
+Niveau type Sub:
{{fbdoc item="filename" value="examples/manual/procs/declare2.bas"}}%%(freebasic)
type my_type
my_data as integer
@@ -71,12 +71,12 @@ an_instance.increment_data( )
Print an_instance.my_data
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang fb]]// dialect, ##**Byval**## is the default parameter passing convention.
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang deprecated]]// dialects, ##**Byref**## is the default parameter passing convention.
- - Type-level ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]##/##[[KeyPgOperator Operator]]##/##[[KeyPgConstructor Constructor]]##/##[[KeyPgDestructor Destructor]]##'s are only allowed in //[[CompilerOptlang -lang fb]]//
+ - Dans le dialecte //[[CompilerOptlang -lang fb]]//, ##**ByVal**## est la convention par défaut de passage de paramètre.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang deprecated]]//, ##**ByRef**## est la convention par défaut de passage de paramètre.
+ - Niveaux type ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]##/##[[KeyPgOperator Operator]]##/##[[KeyPgConstructor Constructor]]##/##[[KeyPgDestructor Destructor]]## ne sont permis qu'en //[[CompilerOptlang -lang fb]]//
{{fbdoc item="diff"}}
- - In FreeBASIC, the parameter names are optional.
+ - Dans FreeBASIC, les noms de paramètres sont facultatifs.
{{fbdoc item="see"}}
- ##[[KeyPgSub Sub]]##
diff --git a/fbdocs/manual/cache/KeyPgDefbyte.wakka b/fbdocs/manual/cache/KeyPgDefbyte.wakka
index b154111f98..9ec20a08e4 100644
--- a/fbdocs/manual/cache/KeyPgDefbyte.wakka
+++ b/fbdocs/manual/cache/KeyPgDefbyte.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFBYTE"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defbyte** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defbyte**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgByte Byte]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefByte**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgByte Byte]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##bNumber## a ##[[KeyPgByte Byte]]## number since it's first letter starts with b:
+ Ceci fera de ##bNumber## un ##[[KeyPgByte Byte]]## car sa première lettre commence par un "b":
{{fbdoc item="filename" value="examples/manual/switches/defbyte.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -25,11 +25,11 @@ Dim bNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defbyte""**##.
+ - Disponible dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defbyte**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgByte Byte]]##
diff --git a/fbdocs/manual/cache/KeyPgDefdbl.wakka b/fbdocs/manual/cache/KeyPgDefdbl.wakka
index a3e26c48c8..1c1541ddd3 100644
--- a/fbdocs/manual/cache/KeyPgDefdbl.wakka
+++ b/fbdocs/manual/cache/KeyPgDefdbl.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFDBL"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defdbl** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defdbl**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgDouble Double]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefDbl**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgDouble Double]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##aNum## a ##[[KeyPgDouble Double]]##-precision decimal number since it is in the range of a-d:
+ Ceci fera de ##aNum## un nombre décimal ##[[KeyPgDouble Double]]##-précision car sa première lettre est dans la plage a-d:
{{fbdoc item="filename" value="examples/manual/switches/defdbl.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -27,10 +27,10 @@ Print Len(aNum) ' Prints 8, the number of bytes in a double.
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefined.wakka b/fbdocs/manual/cache/KeyPgDefined.wakka
index 0d560d9f87..cfcaede4db 100644
--- a/fbdocs/manual/cache/KeyPgDefined.wakka
+++ b/fbdocs/manual/cache/KeyPgDefined.wakka
@@ -1,22 +1,22 @@
{{fbdoc item="title" value="DEFINED"}}----
-Preprocessor function to test if a symbol has been defined
+Fonction du préprocesseur pour tester si un symbole a déjà été défini
{{fbdoc item="syntax"}}##
**defined** (//symbol_name//)
##
{{fbdoc item="param"}}
##//symbol_name//##
- Name of the symbol to test
+ Nom du symbole à tester
-{{fbdoc item="ret"}}
- Returns non-zero (-1) if the symbol has been defined, otherwise returns zero (0).
+{{fbdoc item="section" value="Valeur retournée
+ Retourne non-zéro (-1) si le symbole a été défini, autrement retourne zéro (0).
{{fbdoc item="desc"}}
- Given the symbol name, the **defined()** preprocessor function returns true if the symbol has been defined - or false if the symbol is unknown of.
+ Etant donné le nom du symbole, la fonction préprocesseur **defined()** retourne vrai (true) si le symbole a été défini - ou faux (false) si le symbole est inconnu.
- This is used mainly with ##[[KeyPgPpif #if]]##.
+ Utilisé principalement avec ##[[KeyPgPpif #if]]##.
- Similar to ##[[KeyPgPpifdef #ifdef]]## except it allows more than one check to occur because of its flexibility.
+ Similaire à ##[[KeyPgPpifdef #ifdef]]## sauf qu'il permet de faire plus d'une vérification en raison de sa flexibilité.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/defined.bas"}}%%(freebasic)
@@ -41,7 +41,7 @@ dim c as single
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
diff --git a/fbdocs/manual/cache/KeyPgDefint.wakka b/fbdocs/manual/cache/KeyPgDefint.wakka
index acd9b2913c..71c5985c97 100644
--- a/fbdocs/manual/cache/KeyPgDefint.wakka
+++ b/fbdocs/manual/cache/KeyPgDefint.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFINT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defint** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defint**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgInteger Integer]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefInt**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgInteger Integer]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##iNumber## an ##[[KeyPgInteger Integer]]## number since it's first letter starts with i.
+ Ceci fera de ##iNumber## un nombre ##[[KeyPgInteger Integer = entier]]## car sa première lettre est i.
{{fbdoc item="filename" value="examples/manual/switches/defint.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -25,10 +25,10 @@ Dim iNumber
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDefbyte Defbyte]]##
diff --git a/fbdocs/manual/cache/KeyPgDeflng.wakka b/fbdocs/manual/cache/KeyPgDeflng.wakka
index a3a4534fb0..e4350fea8d 100644
--- a/fbdocs/manual/cache/KeyPgDeflng.wakka
+++ b/fbdocs/manual/cache/KeyPgDeflng.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFLNG"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Deflng** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Deflng**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgLong Long]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefLng**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgLong Long]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##lNumber## a ##[[KeyPgLong Long]]## integer number since it starts with l.
+ Ceci fera de ##lNumber## un nombre entier ##[[KeyPgLong Long]]## car sa première lettre est l.
{{fbdoc item="filename" value="examples/manual/switches/deflng.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -27,10 +27,10 @@ Print Len(lNumber) ' Displays 4, the number of bytes in a long.
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDeflongint.wakka b/fbdocs/manual/cache/KeyPgDeflongint.wakka
index 6080f0f75f..7692ebdc0b 100644
--- a/fbdocs/manual/cache/KeyPgDeflongint.wakka
+++ b/fbdocs/manual/cache/KeyPgDeflongint.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFLONGINT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Deflongint** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Deflongint**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgLongint Longint]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**Deflongint**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgLongint LongInt]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##lNumber## a ##[[KeyPgLongint Longint]]## number since it's first letter starts with l.
+ Ceci fera de ##lNumber## un nombre ##[[KeyPgLongint LongInt]]## car sa première lettre est l.
{{fbdoc item="filename" value="examples/manual/switches/deflongint.bas"}}%%(freebasic)
'' Compile with -lang fblite
@@ -25,11 +25,11 @@ Dim lNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Deflongint""**##.
+ - Disponible dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Deflongint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefshort.wakka b/fbdocs/manual/cache/KeyPgDefshort.wakka
index e6944a693a..463868f2f1 100644
--- a/fbdocs/manual/cache/KeyPgDefshort.wakka
+++ b/fbdocs/manual/cache/KeyPgDefshort.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFSHORT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defshort** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defshort**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgShort Short]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefShort**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgShort Short]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##sNumber## a ##[[KeyPgShort Short]]## number since it's first letter starts with s.
+ Ceci fera de ##sNumber## un nombre ##[[KeyPgShort Short]]## car sa première lettre est s.
{{fbdoc item="filename" value="examples/manual/switches/defshort.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -25,12 +25,12 @@ Dim sNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defshort""**##.
+ - Disponible dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defshort**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
- - In QBasic, to make variables default to a 2 byte integer, DEFINT is used.
+ - Nouveau pour FreeBASIC
+ - Dans QBasic, pour que les variables aient par défaut 2 octets entiers, utilisez DEFINT.
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefsng.wakka b/fbdocs/manual/cache/KeyPgDefsng.wakka
index 35aad8f57f..f4ef2039f8 100644
--- a/fbdocs/manual/cache/KeyPgDefsng.wakka
+++ b/fbdocs/manual/cache/KeyPgDefsng.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFSNG"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defsng** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defsng**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgSingle Single]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefSng**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgSingle Single]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##sNumber## and ##yNumber## a ##[[KeyPgSingle Single]]##-precision decimal number since it is in the range of s-z.
+ Ceci fera de ##sNumber## et ##yNumber## un nombre décimal ##[[KeyPgSingle Single]]##-précision car sa première lettre est dans la plage s-z.
{{fbdoc item="filename" value="examples/manual/switches/defsng.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -25,10 +25,10 @@ Dim sNumber, yNumber
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefstr.wakka b/fbdocs/manual/cache/KeyPgDefstr.wakka
index 31a57d5a6d..83b15b01c2 100644
--- a/fbdocs/manual/cache/KeyPgDefstr.wakka
+++ b/fbdocs/manual/cache/KeyPgDefstr.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFSTR"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defstr** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defstr**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgString String]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefStr**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgString String]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##sMessage## a ##[[KeyPgString String]]## since it starts with s.
+ Ceci fera de ##sMessage## une ##[[KeyPgString String]]## car sa première lettre est s.
{{fbdoc item="filename" value="examples/manual/switches/defstr.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -25,10 +25,10 @@ Dim sMessage
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefubyte.wakka b/fbdocs/manual/cache/KeyPgDefubyte.wakka
index 9e7e51b295..a8ee23165c 100644
--- a/fbdocs/manual/cache/KeyPgDefubyte.wakka
+++ b/fbdocs/manual/cache/KeyPgDefubyte.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFUBYTE"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defubyte** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defubyte**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgUbyte Ubyte]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefUByte**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgUbyte UByte]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##uNumber## a ##[[KeyPgUbyte Ubyte]]## number since it's first letter starts with u.
+ Ceci fera de ##uNumber## un nombre ##[[KeyPgUbyte UByte]]## car sa première lettre est u.
{{fbdoc item="filename" value="examples/manual/switches/defubyte.bas"}}%%(freebasic)
'' Compile with -lang fblite
@@ -25,11 +25,11 @@ Dim uNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defubyte""**##.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defubyte**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDefbyte Defbyte]]##
diff --git a/fbdocs/manual/cache/KeyPgDefuint.wakka b/fbdocs/manual/cache/KeyPgDefuint.wakka
index 8f5fe9bece..0bef695cbe 100644
--- a/fbdocs/manual/cache/KeyPgDefuint.wakka
+++ b/fbdocs/manual/cache/KeyPgDefuint.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFUINT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defuint** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defuint**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgUinteger Uinteger]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefUInt**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgUinteger UInteger]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##uNumber## a ##[[KeyPgUinteger Uinteger]]## number since it's first letter starts with u.
+ Ceci fera de ##uNumber## un nombre ##[[KeyPgUinteger UInteger]]## car sa première lettre est u.
{{fbdoc item="filename" value="examples/manual/switches/defuint.bas"}}%%(freebasic)
'' Compile with -lang fblite
@@ -25,11 +25,11 @@ Dim uNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defuint""**##.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defuint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefulongint.wakka b/fbdocs/manual/cache/KeyPgDefulongint.wakka
index 694179ad27..d5432fee32 100644
--- a/fbdocs/manual/cache/KeyPgDefulongint.wakka
+++ b/fbdocs/manual/cache/KeyPgDefulongint.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFULONGINT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defulongint** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defulongint**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgUlongint Ulongint]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**Defulongint**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgUlongint ULongInt]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##lNumber## a ##[[KeyPgUlongint Ulongint]]## number since it's first letter starts with l.
+ Ceci fera de ##lNumber## un nombre ##[[KeyPgUlongint ULongInt]]## car sa première lettre est l.
{{fbdoc item="filename" value="examples/manual/switches/defulongint.bas"}}%%(freebasic)
'' Compile with -lang fblite
@@ -25,11 +25,11 @@ Dim lNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defulongint""**##.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defulongint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDefushort.wakka b/fbdocs/manual/cache/KeyPgDefushort.wakka
index ac8a8aae45..ce6cf40173 100644
--- a/fbdocs/manual/cache/KeyPgDefushort.wakka
+++ b/fbdocs/manual/cache/KeyPgDefushort.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="DEFUSHORT"}}----
-Specifies a default data type for a range of variable names
+Spécifie un type de données par défaut pour une série de noms de variables
{{fbdoc item="syntax"}}##
**Defushort** //start_letter//[**-**//end_letter// ][, ...]
##
{{fbdoc item="param"}}
##//start_letter//##
- the first letter in the range
+ la première lettre dans la série
##//end_letter//##
- the last letter in the range
+ la dernière lettre dans la série
{{fbdoc item="desc"}}
- ##**Defushort**## specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type ##[[KeyPgUshort Ushort]]## if the first letter of their names matches a certain letter or lies within an inclusive range of letters.
+ ##**DefUShort**## précise que les variables et les tableaux qui ne sont pas déclarés avec un type de données - ou non déclarés entièrement - sont implicitement déclarés de type ##[[KeyPgUshort UShort]]## si la première lettre de leur nom correspond à une certaine lettre ou se trouve dans une plage inclusive de lettres.
{{fbdoc item="ex"}}
- This will make ##uNumber## a ##[[KeyPgUshort Ushort]]## number since it's first letter starts with u.
+ Ceci fera de ##uNumber## un nombre ##[[KeyPgUshort UShort]]## car sa première lettre est u.
{{fbdoc item="filename" value="examples/manual/switches/defushort.bas"}}%%(freebasic)
'' Compile with -lang fblite
@@ -25,11 +25,11 @@ Dim uNumber
%%
{{fbdoc item="lang"}}
- - Available in the //[[CompilerOptlang -lang fblite]]// dialect.
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Defushort""**##.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fblite]]//.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Defushort**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDefint Defint]]##
diff --git a/fbdocs/manual/cache/KeyPgDestructor.wakka b/fbdocs/manual/cache/KeyPgDestructor.wakka
index ed37034abc..7a4028c635 100644
--- a/fbdocs/manual/cache/KeyPgDestructor.wakka
+++ b/fbdocs/manual/cache/KeyPgDestructor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DESTRUCTOR"}}----
-Called automatically when a class or user defined type goes out of scope or is destroyed
+Appelé automatiquement lorsqu'une classe ou un type défini par l'utilisateur est hors de portée ou est détruit
{{fbdoc item="syntax"}}##
[[KeyPgType Type]] //typename//
@@ -13,18 +13,18 @@ Called automatically when a class or user defined type goes out of scope or is d
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]## of ##[[KeyPgClass Class]]##
+ nom du ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##
{{fbdoc item="desc"}}
- The destructor method is called when a user defined ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]## variable goes out of scope or is destroyed explicitly with the ##[[KeyPgOpDelete Delete]]## operator.
+ La méthode ##**Destructor**## est appelée lorsqu'un ##[[KeyPgType Type]]## défini par l'utilisateur ou une variable ##[[KeyPgClass Class]]## est hors de portée ou est détruit explicitement avec l'opérateur ##[[KeyPgOpDelete Delete]]##.
- The ##**Destructor**## method is passed a hidden ##[[KeyPgThis this]]## parameter having the same type as ##//typename//##.
+ La méthode ##**Destructor**## est passée à un paramètre caché ##[[KeyPgThis This]]## qui a le même type que ##//typename//##.
- The destructor in a type is called before the destructors on any of its fields. Therefore, all fields are accessible with the hidden ##[[KeyPgThis this]]## parameter in the destructor body.
+ Le ##**Destructor**## dans un type est appelé avant les ##**Destructor**##s de ses propres champs. Par conséquent, tous les champs sont accessibles avec le paramètre caché ##[[KeyPgThis This]]## dans le corps du destructeur.
- Only one destructor may be declared and defined per type.
+ Un seul destructeur peut être déclaré et défini par type.
- Since the ##[[KeyPgEnd End]]## statement does not close any scope, object destructors will not automatically be called if the ##[[KeyPgEnd End]]## statement is used to terminate the program.
+ Comme la déclaration ##[[KeyPgEnd End]]## ne ferme aucune portée, les destructeurs d'objet ne seront pas automatiquement appelés si l'instruction ##[[KeyPgEnd End]]## est utilisée pour terminer le programme.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/destructor.bas"}}%%(freebasic)
@@ -55,7 +55,7 @@ end scope
MySub
%%
-Output:
+Affichera:
%%
Creating: main.x
Creating: main.scope.x
@@ -63,18 +63,18 @@ Destroying: main.scope.x
Creating: A.x
Destroying: A.x
Destroying: main.x
-%%
{{fbdoc item="lang"}}
- - Object-related features are supported only in the //[[CompilerOptlang -lang fb]]// dialect.
+- Les caractéristiques liées à l'objet sont prises en charge uniquement dans le dialecte //[[CompilerOptlang -lang fb]]//
+ {{fbdoc item="diff"}}
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgClass Class]]##
+- ##[[KeyPgClass Class]]##
- ##[[KeyPgConstructor Constructor]]##
- ##[[KeyPgOpDelete Delete]]##
- ##[[KeyPgModuleDestructor Destructor (Module)]]##
- ##[[KeyPgType Type]]##
+ - ##[[KeyPgType Type]]##
{{fbdoc item="back" value="CatPgUserDefTypes|User Defined Types"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDim.wakka b/fbdocs/manual/cache/KeyPgDim.wakka
index 6fed8c2fb5..0e09fb794e 100644
--- a/fbdocs/manual/cache/KeyPgDim.wakka
+++ b/fbdocs/manual/cache/KeyPgDim.wakka
@@ -1,33 +1,33 @@
{{fbdoc item="title" value="DIM"}}----
-Declares a variable
+Déclare une variable
{{fbdoc item="syntax"}}
- Declaring a Single Variable:
+ Déclaration d'une variable unique:
##**Dim** [[[KeyPgShared Shared]]] //symbolname// [As [[DataType DataType]]] [, ...]##
##**Dim** [[[KeyPgShared Shared]]] As [[DataType DataType]] //symbolname// [, ...]##
- Declaring Arrays:
+ Déclaration de tableaux:
##**Dim** [[[KeyPgShared Shared]]] //symbolname// ( [//lbound// To] //ubound// [, ...] ) [As [[DataType DataType]]] [,...]##
##**Dim** [[[KeyPgShared Shared]]] As [[DataType DataType]] //symbolname// ( [//lbound// To] //ubound// [, ...] ) [,...]##
- Initializing Values:
+ Initialisation de variables:
##**Dim** //scalar_symbol// As [[DataType DataType]]] = //expression// | [[KeyPgAny Any]]##
##**Dim** //array_symbol// ([//lbound// To] //ubound//) [AS [[DataType DataType]]] => { //expression// [, ...] } | [[KeyPgAny Any]]##
##**Dim** //udt_symbol// As [[DataType DataType]] = ( //expression// [, ...] ) | [[KeyPgAny Any]]##
{{fbdoc item="desc"}}
- Declares a variable by name and reserves memory to accommodate it.
+ Déclare une variable par son nom et réserve de la mémoire pour la stocker.
- Variables must be declared before they can be used in the //[[CompilerOptlang -lang fb]]// dialect or when using ##[[KeyPgOptionexplicit Option Explicit]]## in the other dialects. Only in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects variables may be used without first declaring them, in such a case they are called implicit variables.
+ Les variables doivent être déclarées avant leur utilisation dans le dialecte //[[CompilerOptlang -lang fb]]// ou lors de leur utilisation si vous utilisez l'##[[KeyPgOptionexplicit Option Explicit]]## des autres dialectes. Seuls les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]// acceptent que les variables soient utilisées sans déclaration préalable, dans ce cas elles sont appelées en tant que variables implicites.
- ##**Dim**## can be used to declare and assign variables of any of the supported data types, user defined types, or enumerations.
+ ##**Dim**## peut être utilisé pour déclarer et affecter des variables de l'un des types de données pris en charge, types définis par l'utilisateur ou énumérations.
- Depending on where and how a variable or array is declared can change how it is allocated in memory. See //[[ProPgStorageClasses Storage Classes]]//.
+ Selon l'endroit, où et comment une variable ou un tableau est déclaré peut changer la façon dont il(elle) est alloué(e) dans la mémoire. Voir //[[ProPgStorageClasses Classes de stockage]]//.
-{{fbdoc item="section" value="Explicit Variables with Explicit Data Types"}}
- In the default dialect //[[CompilerOptlang -lang fb]]//, each variable must be explicitly declared with a desired data type. Type suffixes are not allowed.
+{{fbdoc item="section" value="Variables explicites avec des données de type explicite
+ Dans le dialecte par défaut //[[CompilerOptlang -lang fb]]//, chaque variable doit être explicitement déclarée avec le type de données désiré. Les suffixes de type ne sont pas permis.
- More than one variable may be declared in a single ##**Dim**## statement by separating each variable declaration with a comma.
+ Plus d'une variable peut être déclarée dans un seul ##**Dim**## en séparant les déclarations de variable par des virgules.
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_1.bas"}}%%(freebasic)
'' Variable declaration examples
@@ -46,8 +46,8 @@ dim as integer mx, my, mz ,mb
dim px as double ptr = @x
%%
-{{fbdoc item="section" value="Explicit Variables with Implicit Data Types"}}
- In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, even if the variable is declared explicitly, it will be given a default data type if the data type is not explicitly given either by name or by type suffix. The default data type is ##[[KeyPgSingle Single]]## in the //[[CompilerOptlang -lang qb]]// dialect and ##[[KeyPgInteger Integer]]## in the //[[CompilerOptlang -lang fblite]]// dialect. The default data type can be changed throughout a source listing by use of the ##**Def""###""**## statements. (for example, ##[[KeyPgDefint DefInt]]##, ##[[KeyPgDefstr DefStr]]##, ##[[KeyPgDefsng DefSng]]##)
+{{fbdoc item="section" value="Variables explicites avec des types de données implicites
+ Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, même si la variable est déclarée explicitement, un type sera automatiquement attribué si le type de données n'est pas explicitement donné, soit par le nom, soit par le suffixe. Le type de données par defaut est ##[[KeyPgSingle Single]]## dans le dialecte //[[CompilerOptlang -lang qb]]// et ##[[KeyPgInteger Integer]]## dans le dialecte //[[CompilerOptlang -lang fblite]]//. Le type de données par défaut peut être changé au cours du listing du code source par l'utilisation des déclarations du style ##**Def###**##. (par exemple, ##[[KeyPgDefint DefInt]]##, ##[[KeyPgDefstr DefStr]]##, ##[[KeyPgDefsng DefSng]]##)
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_2.bas"}}%%(freebasic)
'' Compile with -lang qb
@@ -66,8 +66,8 @@ DefInt I-N
Dim I, J, X, Y, T$, D As Double
%%
-{{fbdoc item="section" value="Arrays"}}
- As with most BASIC dialects, ""FreeBASIC"" supports arrays with indexes ranging from a lower bound to an upper bound. In the syntaxes shown, ##//lbound//## refers to the lower bound, or the smallest index. And ##//Ubound//## refers to the upper bound, or the largest index. If a lower bound is not specified, it is assumed to be zero by default, unless ##[[KeyPgOptionbase Option Base]]## is used.
+{{fbdoc item="section" value="Tableaux
+ Comme avec la plupart des dialectes BASIC, FreeBasic supporte les tableaux avec des indices allant d'une limite inférieure à une limite supérieure. Dans les différentes syntaxes ci-dessus, ##//lbound//## se réfère à la limite inférieure, ou au plus petit indice. Et ##//Ubound//## se réfère à la limite supérieure, ou au plus grand indice. Si la limite inférieure n'est pas spécifiée, elle sera zéro par défaut, à moins que ##[[KeyPgOptionbase Option Base]]## ne soit utilisée.
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_3.bas"}}%%(freebasic)
Const upperbound = 10
@@ -77,7 +77,7 @@ Const upperbound = 10
Dim array(upperbound) As Single
%%
- Multidimensional arrays can be declared as well. and are stored in row-major order: values with the same last index are contiguous. (This is different from QB's default). The maximum number of dimensions of a multidimensional array is 8.
+ Les tableaux multi-dimensionnels peuvent être déclarés ainsi et sont stockés dans l'ordre des lignes: les valeurs avec le même dernier indice sont contiguës. (Ceci est différent de QB par défaut. Le nombre maximum de dimensions d'un tableau multi-dimensionnel est de 8.
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_4.bas"}}%%(freebasic)
'' declare a three-dimensional array of single
@@ -87,36 +87,36 @@ Dim array(1 To 2, 6, 3 To 5) As Single
'' The first dimension of the declared array
'' has indices from 1 to 2, the second, 0 to 6,
'' and the third, 3 to 5.
-%%
+%%
- For more information on arrays see [[ProPgArrays Arrays Overview]].
+ Pour plus d'informations sur les tableaux voir [[ProPgArrays Vue d'ensemble sur les tableaux ]].
- If the values used with ##**Dim**## to declare the dimensions of an array are all constants, the array will be created ##[[KeyPgOptionstatic Static]]## (unless ##[[KeyPgOptiondynamic Option Dynamic]]## is specified), while using one or more variables to declare the dimensions of an array makes it variable length, even if ##[[KeyPgOptionstatic Option Static]]## is in effect.
+ Si les valeurs utilisées avec ##**Dim**## pour déclarer les dimensions d'un tableau sont toutes des constantes, le tableau sera créé ##[[KeyPgOptionstatic Static]]## (sauf si l'##[[KeyPgOptiondynamic Option Dynamic]]## est spécifiée), bien qu'en utilisant une ou plusieurs variables pour déclarer les dimensions d'un tableau cela le rende de longueur variable, même si l'##[[KeyPgOptionstatic Option Static]]## est effective.
- Arrays can be declared as variable length in several ways: Using ##**Dim**## with an empty set of indexes (##**Dim** x()##), using ##**Dim**## with indexes that are variables or using the keyword ##[[KeyPgRedim Redim]]##, or declaring it past the metacommand ##[[KeyPgMetaDynamic $Dynamic]]##. Variable length arrays can't use initializers.
+ Les tableaux peuvent être déclarés de longueur variable de plusieurs façons: en utilisant ##**Dim**## avec un ensemble vide d'indices (##**Dim** x()##), en utilisant ##**Dim**## avec des indices qui sont des variables ou en utilisant le mot-clef ##[[KeyPgRedim ReDim]]##, ou le en déclarant par la méta-commande ##[[KeyPgMetaDynamic $Dynamic]]##. les tableaux de longueur variable ne peuvent pas utiliser des initialiseurs.
- Arrays declared with ##**Dim**## having constant indexes and not preceeded by ##[[KeyPgOptiondynamic Option Dynamic]]## are fixed length (not resizable at runtime) and can use initializers.
+ Les tableaux déclarés avec ##**Dim**## ayant des indices constants et non précédés par ##[[KeyPgOptiondynamic Option Dynamic]]## sont de longueur fixe (non redimensionnables pendant l'exécution) et peuvent utiliser des initialiseurs.
- The upper bound can be an ellipsis (##[[KeyPgDots ...]]##, 3 dots). This will cause to upper bound to be set automatically based on the number of elements found in the initializer. When ellipsis is used in this manner, an initializer must be used, and it may not be ##**Any**##. See the [[KeyPgDots Ellipsis]] page for a short example.
+ La limite supérieure peut être suggérée (##[[KeyPgDots ...]]##, 3 points). Ainsi la limite supérieure sera réglée automatiquement en fonction du nombre d'éléments présents lors de l'initialisation. Lorsque l'ellipse est utilisée de cette manière, un initialiseur doit être utilisé, et il ne peut pas être ##**Any**##. Voir la page [[KeyPgDots Ellipse - suggestion]] pour un court exemple.
- See also //[[ProPgFixLenArrays Fixed-Length Arrays]]// and //[[ProPgVarLenArrays Variable-Length Arrays]]//.
+ Voir aussi //[[ProPgFixLenArrays Tableaux de longueur fixe]]// et //[[ProPgVarLenArrays Tableaux de longueur variable]]//.
-{{fbdoc item="section" value="Initializers"}}
- Arrays, variables, strings, and user defined types (UDTs) are initialized to zero or null strings by default when they are created.
+{{fbdoc item="section" value="Initialiseurs
+ Tableaux, variables, chaînes et types définis par l'utilisateur sont initialisés à zéro ou avec des chaînes nulles par défaut lors de leur création.
- To avoid the overhead of initializing the variables the ##**Any**## initializer can be used with ##**Dim**## to tell the compiler to only reserve the place for the variable in memory but don't initialize it, so the variable will contain garbage. In this case the programmer should not make assumptions about the initial values.
+ Pour éviter la surcharge des variables à l'initialisation, l'initialiseur ##**Any**## peut être utilisé avec ##**Dim**## pour dire au compilateur de seulement réserver de la place en mémoire pour la variable, mais qu'elle ne doit pas être initialisée, de sorte que la variable contiendra n'importe quoi. Dans ce cas, le programmeur ne doit pas tenir compte des valeurs initiales.
- Fixed-length arrays, variables, zstrings and UDTs may be given a value at the time of their declaration by following the variable declaration with an initializer. Note the difference between initializing different types. Arrays, variables and UDTs are initialized as they would in a normal assignment, using an equal ( ##=## ) sign. The ##=>## sign can be used with fixed length strings to avoid the declaration resembling an expression.
+ Les tableaux à longueur fixe, les variables, les zstrings et les types définis par l'utilisateur peuvent recevoir une valeur au moment de leur déclaration, en faisantsuivre la déclaration de la variable par un initialiseur. Notez la différence entre les différents types d'initialisation. Les tableaux, les variables et les types définis par l'utilisateur sont initialisés comme dans une affectation normale, en utilisant un signe d'égalité ( ##=## ). Le signe ##=>## peut être utilisé avec des chaînes de longueur fixe, pour éviter que la déclaration ne ressemble à une expression.
- Array values are given in comma-delimited values enclosed by curly brackets, and UDT values are given in comma delimited values enclosed by parenthesis. These methods of initializing variables can be nested within one another for complex assignments. Nesting allows for arrays of any dimension to be initialized.
+ Les valeurs d'un tableau sont données par des valeurs séparées par des virgules, l'ensemble délimité par des accolades, et les valeurs des types utilisateur sont données par des valeurs séparées par des virgules, le tout délimité par des parenthèses. Ces méthodes d'initialisation des variables peuvent être imbriquées les unes dans les autres pour des tâches complexes. L'imbrication permet l'initialisation de tableaux de n'importe quelle dimension.
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_5.bas"}}%%(freebasic)
'' Declare an array of 2 by 5 elements
'' and initialize
Dim array(1 To 2, 1 To 5) As Integer => {{1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}}
-%%
+%%
- {{fbdoc item="filename" value="examples/manual/check/KeyPgDim_6.bas"}}%%(freebasic)
+ %%(freebasic)
'' declare a simple UDT
Type mytype
var1 As Double
@@ -126,13 +126,13 @@ End Type
'' declare a 3 element array and initialize the first
'' 2 mytype elements
Dim myvar(0 To 2) As mytype => {(1.0, 1), (2.0, 2)}
-%%
- For module-level, fixed-length, or global variables, initialized values must be constant expressions. ""FreeBASIC"" will report a compile-time error if otherwise.
+%%
+ Au niveau module, de longueur fixe ou variables globales, les valeurs d'initialisation doivent être des expressions constantes. FreeBasic signalera autrement une erreur de compilation.
- Note: Initializing UDT's with strings is not supported at this time.
+ Note: L'initialisation de types de données utilisateur avec des chaînes n'est pas supportée pour le moment.
-{{fbdoc item="section" value="Explicit Variables with Type Suffixes"}}
- In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, the data type of a variable may be indicated with a type suffix ( ##$## ##%## ##""#""## ##!## ### ).
+{{fbdoc item="section" value="Variables explicites avec type suffixes
+ Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, le type de données d'une variable peut être indiquée par un suffixe de type ( ##$## ##%## ##### ##!## ### ).
{{fbdoc item="filename" value="examples/manual/check/KeyPgDim_7.bas"}}%%(freebasic)
'' Compile with -lang qb or fblite
@@ -197,17 +197,17 @@ Print "ZString: "; Len(*s3)
Deallocate(s3)
%%
-{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, variables have procedure scope if the variable is defined inside a procedure, and for the entire module if the variable is defined with ##**Dim Shared**##.
- - In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang deprecated]]// dialects, variables defined inside compound block statements (##[[KeyPgFornext For..Next]]##, ##[[KeyPgWhilewend While..Wend]]##, ##[[KeyPgDoloop Do..Loop]]##, ##[[KeyPgScope Scope..End Scope]]##) have local [[ProPgVariableScope scopes]], and are visible only within these blocks.
- - In the //[[CompilerOptlang -lang fb]]// dialect, ##**Option**## statements (e.g. ##[[KeyPgOptionbase Option Base]]##, ##[[KeyPgOptiondynamic Option Dynamic]]##), metacommands(e.g. ##[[KeyPgMetaStatic $Static]]##) and ##**Def""###""**## statements (e.g. ##[[KeyPgDefint DefInt]]##) are not allowed.
+{{fbdoc item="section" value="Differences de dialectes
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, les variables ont une portée procédure si elles sont définies dans une procédure, et pour l'ensemble du module si elles sont définies avec ##**Dim Shared**##.
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang deprecated]]//, les variables définies à l'intérieur de blocs composés (##[[KeyPgFornext For..Next]]##, ##[[KeyPgWhilewend While..Wend]]##, ##[[KeyPgDoloop Do..Loop]]##, ##[[KeyPgScope Scope..End Scope]]##) ont une [[ProPgVariableScope portée]] locale, et ne sont visibles que dans ces blocs.
+ - Dans le dialecte //[[CompilerOptlang -lang fb]]//, la déclaration ##**Option**## (par exemple ##[[KeyPgOptionbase Option Base]]##, ##[[KeyPgOptiondynamic Option Dynamic]]##), les métacommandes (par exemple ##[[KeyPgMetaStatic $Static]]##) et les ##**Def###**## (par exemple ##[[KeyPgDefint DefInt]]##) ne sont pas permises.
{{fbdoc item="diff"}}
- - Variable Initializers are new to ""FreeBASIC"".
- - The alternate syntax ##Dim As DataType //symbolname//, [...]## is new to ""FreeBASIC"".
- - Multidimensional arrays are stored in row-major order in ""FreeBASIC"", they were stored in column-major order in QB by default. Row major order: values with the same last index are contiguous. Column-major order: values with the same first index are contiguous.
- - Variable length arrays up to 2 ""GiB"" in size are possible in ""FreeBASIC"". In QB, ##$STATIC## arrays were limited to 64 ""KiB"" , or to the DOS memory available (several 100 ""KiB"" at best) if made ##$DYNAMIC## and ///AH// was used.
- - The ellipsis form for upper bounds is new to ""FreeBASIC"".
+ - Les initialiseurs de variables sont nouveaux pour FreeBASIC
+ - La syntaxe alternative ##Dim As DataType //symbolname//, [...]## est nouvelle pour FreeBASIC
+ - Les tableaux multidimensionnels sont stockés dans l'ordre ligne-prioritaire dans FreeBASIC, ils sont stockés dans l'ordre des colonnes-prioritaire dans QB par défaut. Ordre ligne-prioritaire: les valeurs avec le même indice de fin sont contiguës. Ordre colonne-prioritaire: les valeurs avec le même indice de début sont contiguës.
+ - Des tableaux de longueur variable jusqu'à 2 Go de taille sont possibles dans FreeBASIC. Dans QB, ##$STATIC## les tableaux sont limités à 64 KiB , ou à la mémoire DOS libre (quelques 100 KiB, au mieux) si ##$DYNAMIC## et ///AH// sont utilisés.
+ - La forme elliptique pour les limites supérieures est nouvelle pour FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgVar Var]]##
diff --git a/fbdocs/manual/cache/KeyPgDir.wakka b/fbdocs/manual/cache/KeyPgDir.wakka
index d8bd9018db..ac8bf8529f 100644
--- a/fbdocs/manual/cache/KeyPgDir.wakka
+++ b/fbdocs/manual/cache/KeyPgDir.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DIR"}}----
-Searches for and returns information about an item in the filesystem, performs a directory search.
+Recherche et renvoie des informations sur un élément dans le système de fichiers, effectue une recherche dans les répertoire.
{{fbdoc item="syntax"}}##
# [[KeyPgInclude include]] "dir.bi"
@@ -17,60 +17,60 @@ Searches for and returns information about an item in the filesystem, performs a
##
{{fbdoc item="param"}}
##//item_spec//##
- The pattern to match an item's name against.
+ Le modèle correspondant au nom d'un élément.
##//attrib_mask//##
- The bit mask to match an item's attributes against.
+ Le masque de bits correspondant aux attributs d'un élément.
##//out_attrib//##
- Reference to a bit mask that's assigned each of the found item's attributes, if any.
+ Référence à un masque de bits qui est assigné à chacun des attributs de l'objet trouvé, le cas échéant.
##//p_out_attrib//##
- Pointer to a bit mask that's assigned each of the found item's attributes, if any.
+ Pointeur vers un masque de bits qui est assigné à chacun des attributs de l'objet trouvé, le cas échéant.
-{{fbdoc item="ret"}}
- If no item matching the name ##//item_spec//## or the attribute mask ##//attrib_mask//## was found, then ##//out_attrib//## (or ##*//p_out_attrib//##) is assigned to zero and an empty string is returned. Otherwise, ##//out_attrib//## (or ##*//p_out_attrib//##) is assigned the attribute mask of the item, and the item name, without a path, is returned.
+{{fbdoc item="section" value="Valeur retournée
+ Si aucun item correspondant au nom ##//item_spec//## ou au masque d'attribut ##//attrib_mask//## nest trouvé, alors ##//out_attrib//## (ou ##*//p_out_attrib//##) reçoit la valeur zéro et ue chaîne vide est retournée. Autrement, ##//out_attrib//## (ou ##*//p_out_attrib//##) reçoit le masque d'attribut de l'item, et le nom de l'item, sans chemin, est retourné.
{{fbdoc item="desc"}}
- If ##//item_spec//## contains an absolute path, then the first procedure searches the filesystem for an item that matches the name ##//item_spec//## and whose attributes are all contained in ##//attrib_mask//##. Otherwise, it searches relative to the current directory (see ##[[KeyPgCurdir CurDir]]##). In any case, if a matching item is not found, ##//out_attrib//## is assigned to zero and an empty string is returned. Otherwise, ##//out_attrib//## is assigned with the attribute flags of the item, and the name of the item, without a path, is returned.
+ Si ##//item_spec//## contient un chemin absolu, alors la première procédure recherche dans le système de fichiers un item qui correspond au nom ##//item_spec//## et dont tous les attributs sont tous contenus dans ##//attrib_mask//##. Autrement, il recherche par rapport au répertoire courant (voir ##[[KeyPgCurdir CurDir]]##). En tout cas, si aucun élément correspondant n'est trouvé, zéro est attribué à ##//out_attrib//## et une chaîne vide est retournée. Sinon, ##//out_attrib//## est affecté avec les indicateurs d'attribut de l'élément, et le nom de l'élément, sans chemin d'accès, est retourné.
- ##//item_spec//## may include an asterisk (##*##, for matching any adjacent characters) or one or more question marks (##?##, for matching any individual character). If it does, the procedure searches for the first such item. If found, subsequent calls with ##//item_spec//## equal to an empty string will return the next item matching the name ##//item_spec//## until no more such items are found. If ##//attrib_mask//## is omitted from these subsequent calls, the procedure searches for items with the same attributes as in the previous call.
+ ##//item_spec//## peut inclure un astérisque (##*##, pour correspondre à des caractères adjacents) ou un ou plusieurs points d'interrogation (##?##, pour correspondre à tout caractère individuel). Si c'est le cas, la procédure recherche le premier item du genre. S'il est trouvé, les appels suivants avec ##//item_spec//## égal à une chaîne vide retournera l'élément suivant correspondant au nom ##//item_spec//## jusqu'à ce qu'aucun autre item correspondant ne soit trouvé. Si ##//attrib_mask//## est omis de ces appels ultérieurs, la procédure recherche des items avec les mêmes attributs que lors de l'appel précédent.
- The second procedure behaves the same as ##**Dir**( //item_spec//, //attrib_mask//, *//p_out_attrib// )##.
+ La seconde procédure a le même comportement que ##**Dir**( //item_spec//, //attrib_mask//, *//p_out_attrib// )##.
- The third procedure behaves the same as ##**Dir**( "####", , //out_attrib// )##.
+ La troisième procédure a le même comportement que ##**Dir**( "####", , //out_attrib// )##.
- The fourth procedure behaves the same as ##**Dir**( "####", , *//p_out_attrib// )##.
+ La quatrième procédure a le même comportement que ##**Dir**( "####", , *//p_out_attrib// )##.
-**File Attributes:**
- Files and directories and other items can be said to possess so-called file attributes; metadata that describes the item. The meaning of this metadata varies with operating system and the file system it uses. The following macros are used as bit-flags with ##//attrib_mask//##, ##//out_attrib//## and ##*//p_out_attrib//##. Their values can be combined to form a mask using ##[[KeyPgOpOr Operator Or]]##, or individual values can be checked using ##[[KeyPgOpAnd Operator And]]##. To access them, ##[[KeyPgInclude Include]] "dir.bi"##.
+**Attributs des fichiers:**
+ Les fichiers, répertoires et autres items, si on peut dire, possèdent des sortes d'attributs de fichier; les métadonnées qui décrivent l'item. Le sens de ces métadonnées varie en fonction du système d'exploitation et du système utilisé. Les macros suivantes sont utilisées comme "bit-flags" avec ##//attrib_mask//##, ##//out_attrib//## et ##*//p_out_attrib//##. Leurs valeurs peuvent être combinées pour former un masque en utilisant l'##[[KeyPgOpOr Opérateur Or]]##. Pour y accéder, ##[[KeyPgInclude Include]] "dir.bi"##.
- ## # define fbReadOnly &h01 ##
- //The item cannot be written to or deleted.//
- **DOS & Windows**: The item has the "read-only" attribute set.
- **Linux**:The item has no write permissions associated with the current user or group, nor is it globally writable. (Whether or not the user has root permissions is ignored.)
+ Les items trouvés sans attributs correspondent toujours, indépendamment de la valeur de ##//attrib_mask//##. Un item ne correspondra pas s'il a un ou plusieurs attributs qui ne sont pas spécifiés dans ##//attrib_mask//##. De plus, si ##//attrib_mask// [[KeyPgOpAnd And]] **fbArchive**## égale zéro, alors ##//attrib_mask//## est attribué à ##//attrib_mask// [[KeyPgOpOr Or]] **fbDirectory**## avant de vérifier si les attributs du fichier correspondent.
+ ## # define fbReadOnly &h01 ##
+ //L'item ne peut être écrit ou supprimé.//
+ **DOS & Windows**: L'item a l'attribut "read-only" (lecture seule) validé.
- ## # define fbHidden &h02 ##
- //The item is hidden in ordinary directory listings.//
- **DOS & Windows**: The item has the "hidden" attribute set.
- **Linux**: The item's name has a period (##.##) as the first character.
+ **Linux**:L'item n'a pas de permission d'écriture associée avec l'utilisateur ou le groupe courant, il n'est pas accessible en écriture au niveau global. (Que l'utilisateur ait ou non les permissions "root" n'a aucune importance.)
+ ## # define fbHidden &h02 ##
+ //L'item est caché dans dans une liste normale de répertoire.//
+ **DOS & Windows**: L'item a l'attribut "hidden" (caché) validé.
- ## # define fbSystem &h04 ##
- //The item is used almost exclusively by the system.//
- **DOS & Windows**: The item has the "system" attribute set.
- **Linux**: The item is either a character device, block device, named pipe (FIFO) or Unix socket.
+ **Linux**: Le nom de l'item a un point (##.##) comme premier caractère.
+ ## # define fbSystem &h04 ##
+ //L'item est utilisé presque exclusivement par le système.//
+ **DOS & Windows**: L'item a l'attribut "system" (système) validé.
- ## # define fbDirectory &h10 ##
- //The item is a directory. Includes the current (##.##) and parent (##..##) directories as well.//
- **DOS & Windows & Linux**: The item is a directory.
+ **Linux**: L'item est soit un périphérique en mode caractère, un périphérique en mode bloc, un tube nommé (FIFO) ou un socket Unix.
+ ## # define fbDirectory &h10 ##
+ //L'item est un répertoire. Inclus les répertoire courant (##.##) et parent (##..##).//
- ## # define fbArchive &h20 ##
- //The item may be backed up after some automated operations.//
- **DOS & Windows**: The item has the "archive" attribute set (automatically set after every write access to a file).
- **Linux**: The item is not a directory; typical filesystems do not support this metadata.
+ **DOS & Windows**: L'item a l'attribut "directory" (répertoire) validé.
+ **Linux**: L'item est un répertoire.
+ ## # define fbArchive &h20 ##
+ //L'item peut être sauvegardé après quelque opération automatisée.//
- ## # define fbNormal (fbReadOnly or fbArchive) ##
- //The item is a file or directory.//
+ **DOS & Windows**: L'item a l'attribut "archive" validé.
+ **Linux**: L'item n'est pas un répertoire; les systèmes de fichiers typiques ne supportent pas ces métadonnées.
- Items found having no attributes are always matched, regardless of the value of ##//attrib_mask//##. An item will not be matched if it has one or more attributes that aren't specified in ##//attrib_mask//##.
- If ##//attrib_mask//## does not include ##**fbArchive**##, then ##**Dir**## may widen the check to include ##**fbDirectory**##, but it is recommended to add ##**fbDirectory**## explicitly, if that is the behaviour sought. Finer control can be gained by checking the ##//out_attrib//## value for the desired set of attributes.
+ ## # define fbNormal (fbReadOnly ou fbArchive) ##
+ //L'item est un fichier ou un répertoire.//
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/dir.bas"}}%%(freebasic)
@@ -118,17 +118,17 @@ Do Until Len(fname) = 0 '' loop until Dir returns empty string
Print fname,
- If (out_attr And fbDirectory) <> 0 Then
+ If out_attr And fbDirectory Then
Print "- directory";
dircount += 1
Else
Print "- file";
filecount += 1
End If
- If (out_attr And fbReadOnly) <> 0 Then Print ", read-only";
- If (out_attr And fbHidden) <> 0 Then Print ", hidden";
- If (out_attr And fbSystem) <> 0 Then Print ", system";
- If (out_attr And fbArchive) <> 0 Then Print ", archived";
+ If out_attr And fbReadOnly Then Print ", read-only";
+ If out_attr And fbHidden Then Print ", hidden";
+ If out_attr And fbSystem Then Print ", system";
+ If out_attr And fbArchive Then Print ", archived";
Print
End If
@@ -142,15 +142,15 @@ Print "Found " & filecount & " files and " & dircount & " subdirs"
%%
{{fbdoc item="target"}}
- - Linux requires the ##//filename//## case to match the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes ##/##. Windows uses backslashes ##\## but it allows for forward slashes. DOS uses backslashes.
- - In DOS, the attrib mask value of ##&h37## (##&h3F## usually works also, but ##&h37## is safer) returns all files and directories, including "." and "..", but no Volume: the value ##8## returns the Volume, even if current directory is not the main directory.
+ - Linux requiert que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin, sous Linux, sont des barres obliques ##/##. Windows utilise des anti-slashs ##\## mais il permet de barres obliques. DOS utilise des anti-slashs.
+ - Sous DOS, une valeur du masque "attrib" de ##&h37## (##&h3F## fonctionne habituellement aussi, mais ##&h37## est plus sûr) retourne tous les fichiers et répertoires, incluant "." and "..", mais pas de "Volume": la valeur ##8## retourne le "Volume", même si le répertoire courant n'est pas dans le répertoire principal.
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Dir""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Dir**##.
{{fbdoc item="diff"}}
- - Not found in ""QBasic"" but present in Visual Basic. The ##//out_attrib//## parameter is new to ""FreeBASIC"".
+ - N'existe pas en QBasic mais en Basic. Le paramètre ##//out_attrib//## est nouveau pour FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgDo.wakka b/fbdocs/manual/cache/KeyPgDo.wakka
index 0041f37b5e..3c160eb985 100644
--- a/fbdocs/manual/cache/KeyPgDo.wakka
+++ b/fbdocs/manual/cache/KeyPgDo.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DO"}}----
-Control flow statement for looping.
+Déclaration de contrôle de flux pour une boucle.
{{fbdoc item="syntax"}}##
**Do** [ { **Until** | **While** } //condition// ]
@@ -11,7 +11,7 @@ Control flow statement for looping.
**Loop** [ { **Until** | **While** } //condition// ]
##
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgDoloop Do...Loop]]##
diff --git a/fbdocs/manual/cache/KeyPgDoloop.wakka b/fbdocs/manual/cache/KeyPgDoloop.wakka
index a40088b369..0d7d29debb 100644
--- a/fbdocs/manual/cache/KeyPgDoloop.wakka
+++ b/fbdocs/manual/cache/KeyPgDoloop.wakka
@@ -1,28 +1,28 @@
{{fbdoc item="title" value="DO...LOOP"}}----
-Control flow statement for looping
+Déclaration de contrôle de flux pour une boucle.
{{fbdoc item="syntax"}}##
**Do** [ { **Until** | **While** } //condition// ]
[ //statement block// ]
**Loop**
-//or//
+//ou//
**Do**
[ //statement block// ]
**Loop** [ { **Until** | **While** } //condition// ]
##
{{fbdoc item="desc"}}
- The ##**Do**## statement executes the statements in the following //statement block// until/while the //condition//, if any, evaluates to true.
+ L'instruction ##**Do**## exécute les instructions dans le //statement block (= bloc d'instructions)// jusqu'à ce que / tandis que la //condition//, s'il y en a une, soit vraie.
- If ##**Until**## is used, the ##**Do**## statement stops repetition of the //statement block// when //condition// evaluates to true. The ##**While**## keyword has opposite effect, stopping the loop if //condition// evaluates to false. If both //condition// and either ##**Until**## or ##**While**## are omitted, the ##**Do**## statement loops indefinitely.
+ Si ##**Until**## est utilisé, la déclaration ##**Do**## arrête la répétition du //statement block (= bloc d'instructions)// quand //condition// devient vraie. Le mot-clé ##**While**## a un effet contraire, il arrête la boucle si //condition// est vraie. Si les deux //condition// et soit ##**Until**## ou ##**While**## sont omis, l'instruction ##**Do**## boucle indéfiniment.
- If an ##[[KeyPgExit Exit]]## ##**Do**## statement is encountered inside the //statement block//, the loop is terminated, and execution resumes immediately following the enclosing ##**Loop**## statement. If a ##[[KeyPgContinue Continue]]## ##**Do**## statement is encountered, the rest of the //statement block// is skipped and execution resumes at the ##**Do**## statement.
+ Si une instruction ##[[KeyPgExit Exit]]## ##**Do**## est rencontrée à l'intérieur du //statement block (= bloc d'instructions)//, la boucle est terminée, et l'exécution reprend immédiatement après la déclaration ##**Loop**## qui l'enferme. Si une déclaration ##[[KeyPgContinue Continue]]## ##**Do**## est rencontrée, le reste du //statement block (= bloc d'instructions) // est ignoré et l'exécution reprend à l'instruction ##**Do**##.
- In the first syntax, the //condition// is checked when the ##**Do**## statement is first encountered, and if the //condition// is met, the //statement block// will be skipped. In the second syntax, //condition// is initially checked //after// the //statement block// is executed. This means that the //statement block// is always guaranteed to execute //at least// once.
+ Dans la première syntaxe, la //condition// est vérifiée lorsque l'instruction ##**Do**## est rencontrée pour la première fois et si la //condition// est remplie, le //statement block (= bloc d'instructions)// sera ignoré. Dans la seconde syntaxe, la //condition// est d'abord vérifiée //après// l'exécution du //statement block (= bloc d'instructions)//. Cela signifie que le //statement block (= bloc d'instructions)// est toujours garanti d'être exécuté //au moins// une fois.
- //condition// may be any valid expression that evaluates to False (zero) or True (non-zero).
+ //condition// peut être n'importe quelle expression valide qui a la valeur False (zéro) ou True (non nul).
{{fbdoc item="ex"}}
- In this example, a ##**Do**## loop is used to count the total number of odd numbers from 1 to 10. It will repeat //until// it's //n > 10// condition is met:
+ Dans cet exemple, une boucle ##**Do**## est utilisée pour compter le nombre total de nombres impairs de 1 à 10. La boucle sera répétée //until = jusqu'à// ce que la condition //n > 10// soit remplie:
{{fbdoc item="filename" value="examples/manual/control/do-loop.bas"}}%%(freebasic)
dim as integer n = 1 '' number to check
dim as integer total_odd = 0 '' running total of odd numbers
@@ -35,7 +35,7 @@ print "total odd numbers: " ; total_odd '' prints '5'
end 0
%%
- Here, an infinite DO loop is used to count the total number of evens. We place the conditional check inside the loop via an ##[[KeyPgIfthen If...Then]]## statement, which exits the loop if and when //n > 10// becomes true:
+ Ici, une boucle DO infinie est utilisée pour compter le nombre total de nombres pairs. Nous plaçons le test de condition dans la boucle par l'intermédiaire de ##[[KeyPgIfthen If...Then]]##, qui fait sortir de la boucle quand //n > 10// devient vrai:
{{fbdoc item="filename" value="examples/manual/control/do-loop2.bas"}}%%(freebasic)
dim as integer n = 1 '' number to check
dim as integer total_even = 0 '' running total of even numbers
@@ -51,11 +51,11 @@ end 0
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, variables declared inside a DO..LOOP block have a function-wide [[ProPgVariableScope scope]] as in QB
- - In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang deprecated]]// dialects, variables declared inside a FOR..NEXT block are visible only inside the block, and can't be accessed outside it.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, les variables déclarées dans le bloc de la boucle DO..LOOP ont une [[ProPgVariableScope portée]] à l'échelle de la fonction comme dans QB.
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang deprecated]]//, les variables déclarées dans un bloc FOR..NEXT ne sont visibles que dans ce bloc et ne peut être consultées à l'extérieur.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgContinue Continue]]##
diff --git a/fbdocs/manual/cache/KeyPgDots.wakka b/fbdocs/manual/cache/KeyPgDots.wakka
index 12244b7014..da4326971b 100644
--- a/fbdocs/manual/cache/KeyPgDots.wakka
+++ b/fbdocs/manual/cache/KeyPgDots.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="... (Ellipsis)"}}----
-Used in place of procedure parameter to pass a variable number of arguments, or as the upper bound in an array declaration to denote that the number of elements will be determined by the initializer.
+Utilisé à la place d'un paramètre de procédure pour passer un nombre variable d'arguments, ou comme limite supérieure dans une déclaration de tableau pour indiquer que le nombre d'éléments sera déterminé par l'initialiseur.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// [[KeyPgCdecl cdecl]] ( //param// [[KeyPgAs as]] [[DataType datatype]], **...** )
@@ -8,25 +8,35 @@ Used in place of procedure parameter to pass a variable number of arguments, or
[[KeyPgPpdefine #define]] //identifier//( [ //parameters//, ] //variadic_parameter//**...** ) //macro_text//
##
-
{{fbdoc item="desc"}}
- The ellipsis (three dots, ##**...**##) is used in procedure declarations and definitions to indicate a variable argument list. A first argument must always be specified and the function must be called with the C calling convention ##[[KeyPgCdecl cdecl]]##. In the procedure body, ##[[KeyPgVaFirst va_first]]##, ##[[KeyPgVaArg va_arg]]## and ##[[KeyPgVaNext va_next]]## are used to handle the variable arguments.
+ Les points de suspension (trois points, ##**...**##) sont utilisés dans les déclarations de procédure et les définitions pour indiquer une liste d'arguments variable. Un premier argument doit toujours être spécifié et la fonction doit être appelée avec la convention d'appel ##[[KeyPgCdecl cdecl]]## du langage C. Dans le corps de la procédure, ##[[KeyPgVaFirst va_first]]##, ##[[KeyPgVaArg va_arg]]## et ##[[KeyPgVaNext va_next]]## sont utilisés pour traiter les arguments variables.
+ L'utilisation des points de suspension (##**...**##) pour remplacer la limite supérieure dans une déclaration de tableau, fait que la limite supérieure sera fixée selon les données qui apparaissent dans ##//expression_list//##. Lorsque l'ellipse est utilisée de cette manière, un initialiseur doit apparaître, et ne peut être ##[[KeyPgAny Any]]##.
- Using an ellipsis in place of the upper bound in an array declaration causes the upper bound to be set according to the data that appears in the ##//expression_list//##. When the ellipsis is used in this manner, an initializer must appear, and cannot be ##[[KeyPgAny Any]]##.
+ L'utilisation de l'ellipse dans [[KeyPgPpdefine #define]] ou une déclaration de [[KeyPgPpmacro #macro]] permet de créer une macro variable, voir [[KeyPgPpdefine #define]].
- Using an ellipsis in a [[KeyPgPpdefine #define]] or [[KeyPgPpmacro #macro]] declaration allows to create a variadic macro, see [[KeyPgPpdefine #define]].
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/procs/ellipsis.bas"}}%%(freebasic)
-DECLARE FUNCTION FOO CDECL (X AS INTEGER, ...) AS INTEGER
+Declare Function FOO cdecl (X As Integer, ...) As Integer
%%
-
{{fbdoc item="ex"}}
+
{{fbdoc item="filename" value="examples/manual/array/ellipsis.bas"}}%%(freebasic)
Dim As Integer myarray(0 To ...) = {0, 1, 2, 3}
Print Lbound(myarray), Ubound(myarray) '' 0, 3
%%
+{{fbdoc item="diff"}}
+- Nouveau pour Freebasic
+{{fbdoc item="see"}}
+- ##[[KeyPgCdecl cdecl]]##
+- ##[[KeyPgVaArg va_arg]]##
+
+- ##[[KeyPgVaFirst va_first]]##
+- ##[[KeyPgVaNext va_next]]##
+- ##[[KeyPgDim Dim]]##
+- ##[[KeyPgStatic Static]]##
+
{{fbdoc item="diff"}}
- New to ""FreeBASIC""
@@ -37,5 +47,6 @@ Print Lbound(myarray), Ubound(myarray) '' 0, 3
- ##[[KeyPgVaNext va_next]]##
- ##[[KeyPgDim dim]]##
- ##[[KeyPgStatic static]]##
+ - ##[[KeyPgPpdefine #define]]##
{{fbdoc item="back" value="CatPgProcedures|Procedures"}}{{fbdoc item="back" value="CatPgVarArg|Variable Argument list"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDouble.wakka b/fbdocs/manual/cache/KeyPgDouble.wakka
index 1af9200f35..c917426d16 100644
--- a/fbdocs/manual/cache/KeyPgDouble.wakka
+++ b/fbdocs/manual/cache/KeyPgDouble.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="DOUBLE"}}----
-Standard data type: 64 bit floating point
+Type de données standard: 64 bits à virgule flottante
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Double**
##
{{fbdoc item="desc"}}
- Double is a 64-bit, floating-point data type used to store more precise decimal numbers. They can hold positive values in the range ##4.940656458412465e-324## to ##1.797693134862316e+308##, or negative values in the range ##-4.940656458412465e-324## to ##-1.797693134862316e+308##, or zero (##0##). They contain at most 53 bits of precision, or about 15 decimal digits.
+ Double est un type de données 64-bit, à virgule flottante utilisé pour stocker précisément des nombres décimaux. Ils peuvent contenir des valeurs positives de ##4.940656458412465e-324## à ##1.797693134862316e+308##, ou négatives de ##-4.940656458412465e-324## à ##-1.797693134862316e+308##, ou zéro (##0##). Ils contiennent au plus 53 bits de précision ou jusqu'à 15 chiffres décimaux.
- ##**Double**##s have a greater range and precision than ##[[KeyPgSingle Single]]##s, they still have limited accuracy which can lead to significant inaccuracies if not used properly. They are dyadic numbers - i.e. they can only accurately hold multiples of powers of two, which will lead to inaccuracies in most base-10 fractions.
+ Les ##**Double**##s ont une plus grande plage et plus de précision que les ##[[KeyPgSingle Single]]##s, ils ont encore une précision limitée qui peut conduire à des inexactitudes importantes s'ils ne sont pas utilisés correctement. Ce sont des nombres dyadiques - c'est à dire qu'ils ne peuvent représenter correctement que des multiples de puissances de deux, ce qui conduira à des inexactitudes dans la plupart des fractions en base 10.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/double.bas"}}%%(freebasic)
@@ -21,11 +21,11 @@ sleep
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgSingle Single]]## Less precise float type
+ - ##[[KeyPgSingle Single]]## Le moins précis des types à virgule flottante
- ##[[KeyPgCdbl Cdbl]]##
- - [[TblVarTypes]] Table with variable types overview, limits and suffixes
+ - ##[[TblVarTypes Types de variables standard et leurs limites]]##: Tableau des types de variables, leurs limites et suffixes
{{fbdoc item="back" value="CatPgStdDataTypes|Standard Data Types"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDraw.wakka b/fbdocs/manual/cache/KeyPgDraw.wakka
index 77e429e3a5..46f323f4cf 100644
--- a/fbdocs/manual/cache/KeyPgDraw.wakka
+++ b/fbdocs/manual/cache/KeyPgDraw.wakka
@@ -1,99 +1,99 @@
-{{fbdoc item="title" value="DRAW"}}----
-Statement for sequenced pixel plotting
-
-{{fbdoc item="syntax"}}##
- **Draw** [//target//,] //cmd//
-##
-{{fbdoc item="param"}}
- ##//target//##
- the buffer to draw on
- ##//cmd//##
- a string containing the sequence of commands
-
-{{fbdoc item="desc"}}
- Drawing will take place onto the current work page set via ##[[KeyPgScreenset ScreenSet]]## or onto the ##//target//## ##[[KeyPgGetgraphics Get]]##/##[[KeyPgPutgraphics Put]]## buffer if specified.
- The ##**Draw**## statement can be used to issue several drawing commands all at once; it is useful to quickly draw figures. The command string accepts the following commands:
-
- Commands to plot pixels:
- {{table columns="2" cellpadding="1" cells="Command;Description;###;Commands to plot pixels:;B;Optional prefix: move but do not draw.;N;Optional prefix: draw but do not move.;M x,y;Move to specified screen location. if a '+' or '-' sign precedes x, movement is relative to current cursor position. x's sign has no effect on the sign of y.;U [n];Move n units up. If n is omitted, 1 is assumed.;D [n];Move n units down. If n is omitted, 1 is assumed.;L [n];Move n units left. If n is omitted, 1 is assumed.;R [n];Move n units right. If n is omitted, 1 is assumed.;E [n];Move n units up and right. If n is omitted, 1 is assumed.;F [n];Move n units down and right. If n is omitted, 1 is assumed.;G [n];Move n units down and left. If n is omitted, 1 is assumed.;H [n];Move n units up and left. If n is omitted, 1 is assumed.;###;Commands to color:;C n;Changes current foreground color to n.;P p,b;PAINTs (flood fills) region of border color b with color p.;###;Commands to scale and rotate:;S n;Sets the current unit length, default is 4. A unit length of 4 is equal to 1 pixel.;A n;Rotate n*90 degrees (n ranges 0-3).;TA n;Rotate n degrees (n ranges 0-359).;###;Extra commands:;X p;Executes commands at p, where p is a STRING PTR."}}
+{{fbdoc item="title" value="Draw"}}----
+Déclaration pour l'écriture séquentielle de pixel
{{fbdoc item="syntax"}}##
**Draw** [//target//,] //cmd//
##
+
+{{fbdoc item="param"}}
##//target//##
le tampon où dessiner
+ ##//cmd//##
une chaîne contenant une séquence de commandes
+{{fbdoc item="desc"}}
Le dessin sera sur la page courante de travail validée par ##[[KeyPgScreenset ScreenSet]]## ou sur le tampon ##//cible (target)//## ##[[KeyPgGetgraphics Get]]##/##[[KeyPgPutgraphics Put]]## s'il est spéecifié.
La déclaration ##**Draw**##peut être utilisée pour exécuter plusieurs commandes de dessin d'unseul coup; c'est très utile pour dessiner rapidement des figures. Lachaîne contenant les commandes accepte les commandes suivantes:
Commandes pour écrire des pixels:
+{{table columns="" cellpadding="2" cells="
Commande;Description; Commandes pour écrire des pixels:;B;Préfixe facultatif: déplace mais n'écrit pas.;N;Préfixe facultatif: écrit mais ne déplace pas.;Mx,y;Déplace à la position écran spécifiée. Si + ou - précède x, le mouvement est relatif à la position courante du curseur.;U[n];Déplace de n unités vers le haut. Si n est omis, n = 1 par défaut.;D[n];Déplace de n unités vers le bas. Si n est omis, n = 1 par défaut.;L[n];Déplace de n unités vers la gauche. Si n est omis, n = 1 par défaut.;R[n];Déplace de n unités vers la droite. Si n est omis, n = 1 par défaut.;E[n];Déplace de n unités vers le haut et la droite. Si n est omis, n = 1 par défaut.;F[n];Déplace de n unités vers le bas et la droite. Si n est omis, n = 1 par défaut..;G[n];Déplace de n unités vers le bas et la gauche. Si n est omis, n = 1 par défaut.;H[n];Déplace de n unités vers le haut et la gauche. Si n est omis, n = 1 par défaut.; Commandes de couleur:;Cn;La couleur de premier-plan courante devient n.;Pp,b;Remplit la région avec une bordure de couleur b en utilisant la couleur p.; Commandes pour modifier la taille et effectuer une rotation:;Sn;Valide l'unité courante de longueur, 4 par défaut. Une unité de longueur 4 est égale à 1 pixel.;An;Rotation de n*90 degrés (n de 0 à 3).;TAn;Rotation de n degrés (n de 0 à 359); Commande supplémentaire:;Xp;Exécute la commande à l'addresse p, où p est un STRING PTR.;
+
+ Les commandes pour régler la couleur, la taille et l'angle auront une incidence sur toutes les opérations ##**Draw**## ultérieures.
+ {{fbdoc item="ex"}}
%%(freebasic)
+ Screen 13
+
+'Deplace vers (50,50) sans dessin
+ Draw "BM 50,50"
+ 'Valide couleur dessin a 2 (vert)
+
+ Draw "C2"
+ 'Dessine une boite
-Commands to set the color, size and angle will take affect all subsequent ##**Draw**## operations.
+Draw "R50 D30 L50 U30"
-{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/gfx/draw.bas"}}%%(freebasic)
-screen 13
+'Deplace dans la boite
+Draw "BM +1,1"
+'Remplit couleur 1 (bleu) jusqu'aux bords couleur 2
-'Move to (50,50) without drawing
-draw "BM 50,50"
+Draw "P 1,2"
+Sleep
-'Set drawing color to 2 (green)
-draw "C2"
+%%
+
'Draw a box
-draw "R50 D30 L50 U30"
+'' Dessine une fleur sur ecran
-'Move inside the box
-draw "BM +1,1"
+Dim As Integer i, a, c
+Dim As String fill, setangle
-'Flood fill with color 1 (blue) up to border color 2
-draw "P 1,2"
+'' motif pour chaque petale
+Dim As Const String petal = _
-sleep
-%%
-{{image class="center" title="Draw example output" url="/images/draw1.png"}}
-
-{{fbdoc item="filename" value="examples/manual/gfx/draw2.bas"}}%%(freebasic)
-'' Draws a flower on-screen
-
-dim as integer i, a, c
-dim as string fill, setangle
-
-'' pattern for each petal
-dim as const string petal = _
- _
- ("X" & varptr(setangle)) _ '' link to angle-setting string
- _
- & "C15" _ '' set outline color (white)
- & "M+100,+10" _ '' draw outline
- "M +15,-10" _
- "M -15,-10" _
- "M-100,+10" _
- _
+_
+("X" & VarPtr(setangle)) _ '' link to angle-setting string
+_
+
+& "C15" _ '' set outline color (white)
+& "M+100,+10" _ '' draw outline
+
+"M +15,-10" _
+"M -15,-10" _
+
+"M-100,+10" _
+_
& "BM+100,0" _ '' move inside petal
- & ("X" & varptr(fill)) _ '' flood-fill petal (by linking to fill string)
+ & ("X" & VarPtr(fill)) _ '' flood-fill petal (by linking to fill string)
& "BM-100,0" '' move back out
+ '' set screen
+ ScreenRes 320, 240, 8
+ '' move to center
+ Draw "BM 160, 120"
+ '' set initial angle and color number
+ a = 0: c = 32
+ For i = 1 To 24
+ '' make angle-setting and filling command strings
+ setangle = "TA" & a
-'' set screen
-screenres 320, 240, 8
+fill = "P" & c & ",15"
+'' draw the petal pattern, which links to angle-setting and filling strings
-'' move to center
-draw "BM 160, 120"
+Draw petal
+'' short delay
-'' set initial angle and color number
-a = 0: c = 32
+Sleep 100
+'' increment angle and color number
-for i = 1 to 24
+a += 15: c += 1
- '' make angle-setting and filling command strings
- setangle = "TA" & a
- fill = "P" & c & ",15"
+ Next i
+ Sleep
+ ##
- '' draw the petal pattern, which links to angle-setting and filling strings
- draw petal
+
+ {{fbdoc item="diff"}}
- '' short delay
- sleep 100
+ - ##//target//## est nouveau pour FreeBASIC
+ - QB utilise le pointeur spécial VARPTR$ avec la commande ##X p##.
- '' increment angle and color number
- a += 15: c += 1
+ - FB ne permet pas actuellement de mouvements de sous-pixels: tous les mouvements sont arrondis à l'entier de coordonnée le plus proche .
+ {{fbdoc item="see"}}
-next i
+- ##[[KeyPgDrawString Draw String]]##
-sleep
-%%
-{{image class="center" title="Draw example output" url="/images/draw2.png"}}
+- ##[[KeyPgScreengraphics Screen (Graphique)]]##
+- ##[[KeyPgOpVarptr VarPtr]]##
+- ##[[KeyPgPaint Paint]]##
{{fbdoc item="diff"}}
- ##//target//## is new to ""FreeBASIC""
diff --git a/fbdocs/manual/cache/KeyPgDrawString.wakka b/fbdocs/manual/cache/KeyPgDrawString.wakka
index 31a0217a72..636c49a813 100644
--- a/fbdocs/manual/cache/KeyPgDrawString.wakka
+++ b/fbdocs/manual/cache/KeyPgDrawString.wakka
@@ -1,31 +1,31 @@
-{{fbdoc item="title" value="DRAW STRING"}}----
-Graphics statement to render text to an image or screen.
+ {{fbdoc item="title" value="Draw String"}}----
+Déclaration graphique pour afficher un texte surune image ou à l'écran.
{{fbdoc item="syntax"}}##
**Draw String** [//buffer//,] [STEP] (//x//, //y//), //text//[,//color// [, //font// [, //method// [, (//alpha//|//blender//)] ] ] ]
##
-{{fbdoc item="syntax"}}##
- **Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// [,//color// [, //font// [, //method// [, (//alpha//|//blender//) [, //parameter//] ] ] ] ]
-##
{{fbdoc item="usage"}}##
**Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// [, //color//]
- **Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// , , //font// [, //method// [, //alpha// ] ]
- **Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// , , //font//, [[KeyPgCustomgfx Custom]], //blender// [, //parameter//]
-##
-{{fbdoc item="param"}}
- ##//buffer//##
- the sprite to draw the string on. If this is not supplied, it will be drawn to the screen.
- ##STEP##
- use relative coordinates. If ##STEP## is added, the x and y coordinates are translated relative to the last drawn point.
- ##//x//##, ##//y//##
- the horizontal / vertical position to draw to, relative to the top left hand corner of the screen (unless ##STEP## is used - see above). The top left corner of the text will be drawn at this position.
- ##//text//##
- the string containing the text to draw
- ##//color//##
- if no font is supplied, this allows you to choose the color of the text. If omitted, the default foreground ##[[KeyPgColor Color]]## is used.
- If a font is supplied, ##//color//## is ignored, and the font itself specifies the color for each pixel.
- ##//font//##
- an image buffer containing a custom font. If no font is supplied, the standard font for the current text resolution is used, and the following parameters are ignored.
- ##//method//## | ##**Custom**##
- specifies how the font characters are drawn on top of the target surface. The same methods as found for the ##[[KeyPgPutgraphics Put]]## statement are allowed, with the only difference that the default method is ##[[KeyPgTransGfx Trans]]## for this function. This parameter only applies to custom fonts.
- ##//alpha//##
+**Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// , , //font// [, //method// [, //alpha// ] ]
+**Draw String** [//buffer//,] [STEP] (//x//, //y//), //text// , , //font//, [[KeyPgCustomgfx Custom]], //blender// [, //parameter//]
+ ##
+ {{fbdoc item="param"}}
##//buffer//##
le
sprite sur lequel écrire la chaîne. S'il n'est pas précisé, l'écriture se fera à l'écran.
+ ##STEP##
utilise des coordonnées relatives. Si ##STEP## est ajouté, les coordonnées x et y sont calculées par rapport au dernier point tracé.
+##//x//##, ##//y//##
les coordonnées horizontales / verticales où dessiner, par rapport au coin en haut à gauche de l'écran (sauf si ##STEP## est utilisé - voir au-dessus). Le coin en haut à gauche du texte sera dessiné à cette position.
+##//text//##
la chaîne contenant le texte à dessiner
+ ##//color//##
si aucune police n'a été précisée, ceci vous permet de choisir la couleur du texte. Si omis, la ##[[KeyPgColor Color]]## d'arrière-plan est utilisée par défaut.
+ ##//font//##
un tampon image contenant une police personnalisée. Si aucune police n'est fournie, la police standard dans la résolution du texte actuel est utilisée, et les paramétres suivants sont ignorés.
+ ##//method//##
spécifie comment les caractères de la police sont dessinés sur la surface cible. Les mêmes méthodes utilisées pour la déclaration ##[[KeyPgPutgraphics Put]]## sont permises, avec la seule différence que la méthode par défaut est la fonction ##TRANS##.
+ ##//alpha//##
valeur alpha, de 0 à 255. Ce paramètre s'applique seulement aux méthodes ##[[KeyPgAddGfx Add]]## ou ##[[KeyPgAlphaGfx Alpha]]##.
+ ##//blender//##
fonction blender personnelle pour la méthode de dessin ##[[KeyPgCustomgfx Custom]]##; voir la description de la méthode ##[[KeyPgPutgraphics Put (Graphique)]]## pour plus de détails. Ce paramètre s'applique seulement à la méthode ##[[KeyPgCustomgfx Custom]]##.
+ ##//parameter//##
+ ##[[KeyPgPointer Pointeur]]## facultatif passé à la fonction blender personnelle; si omis, la valeur par défaut est (##0##).
+
+ {{fbdoc item="desc"}}
Ce mot-clef graphique affiche une chaîne à l'écran avec positionnement des pixels, un arrière-plan transparent et peut utiliser une police personnelle. **##Draw String##** ne met pas à jour le curseur texte ou graphique. Il ne coupe pas en fin de ligne. Tabulations, retours chariot et autres caractères spéciaux n'ont pas de comportement spécial dans **##Draw String##**, et sont traîtés comme des caractères normaux.
En mode graphique, cette fonction procure une alternative flexible à ##[[KeyPgPrint Print]]##. Elle a plusieurs avantages:
- ##**Draw String**## peut afficher un texte à n'importe quelle position de l'écran , alors que ##[[KeyPgPrint Print]]## est obligé de respecter la grille de caractères accessibles par ##[[KeyPgLocate Locate]]##.
- ##[[KeyPgPrint Print]]## remplace l'arrière-plan derrière le texte avec la couleur courante d'arrière-plan. ##**Draw String**## ne fait pas cela et laisse les pixels de l'arrière-plan intacts.
- Comme ##[[KeyPgPutgraphics Put]]##, ##**Draw String**## a différentes méthodes pour afficher un texte, comme ##[[KeyPgAlphaGfx Alpha]]## et ##[[KeyPgCustomgfx Custom]]##.
- ##**Draw String**## ne se limite pas à un seul jeu de caractères: il est possible de fournir une police personnelle en remplacement.
Note: Si aucune police n'est fournie, **##Draw String##** utilise par défaut la police standard, comme pour ##[[KeyPgPrint Print]]##, avec la taille de caractères indiquée par ##[[KeyPgWidth Width]]##. ##//method//## - s'il est donné - sera ignoré, et le texte sera dans la couleur sécifiée, avec un arrière-plan transparent.
**Format de la police personnelle:**
La police est stockée dans un tampon ##[[KeyPgGetgraphics Get]]##/##[[KeyPgPutgraphics Put]]## standard; la police doit être stockée dans un tampon utilisant la même profondeur que la profondeur de couleur courante, autrement **##Draw String##** provoquera une erreur d'appel illégal à une fonction.
La première ligne de pixels dans le tampon de la police contient l'en-tête de la police, sur la base d'un octet (**not** pixel). Le premier octet identifie la version en-tête de la police; actuellement, ce doit être 0. Le second octet donne le code ASCII du premier caractère pris en charge par la police; le troisième octet donne le code ASCII du dernier caractère pris en charge. Ainsi si la police prend en charge de 0 à 255, ##0## et ##255## seront le contenu de ces deux octets.
Puis vient la largeur de chacun des caractères pris en charge, chacune dans un octet. Supposons que la police prenne en charge 96 caractères, de 32 à 127 (inclus), les trois premiers octets de l'en-tête contiendront ##0##, ##32## et ##127##, suivis de 96 octets donnant les largeurs des caractères correspondants.
La hauteur de la police est obtenue en soustrayant 1 de la hauteur du tampon, ceci étant, tandis que la première ligne de pixels du tampon agit comme un en-tête de la police, les lignes restantes définissent les glyphes. Le tampon doit être assez large pour contenir tous les dessins des caractères supportés dans la même ligne, l'un après l'autre.
+ {{fbdoc item="ex"}}
Ceci est un exemple de l'usage basic de ##**Draw String**## : on l'utilise pour écrire ##"Hello world"## au centre de l'écran:
##Const w = 320, h = 200 ''dimensions ecran
Dim x As Integer, y As Integer, s As String
'' Ouvre une fenetre graphique
ScreenRes w, h
'' Affiche une chaine au centre de l' ecran:
s = "Hello world"
x = (w - Len(s) * 8) \ 2
y = (h - 1 * 8) \ 2
Draw String (x, y), s
'' Attente d'une touche appuyee avant sortie du programme
Sleep
+ ##
+
Cet exemple montre comment vous pouvez créer et utiser votre proprepolice. Pour plus de simplicité, on utilise ##**Draw String**##avec la police par défaut pour créer les glyphes.
##
'' Definition espace caracteres
Const FIRSTCHAR = 32, LASTCHAR = 127
Const NUMCHARS = (LASTCHAR - FIRSTCHAR) + 1
Dim As UByte Ptr p, myFont
Dim As Integer i
'' Ouvrir un ecran 256 couleurs (320*200)
ScreenRes 320, 200, 8
'' Creer police personnelle dans tampon PUT
myFont = ImageCreate(NUMCHARS * 8, 9)
'' Place entete police au debut des donnees pixel
#ifndef ImageInfo '' older versions of FB don't have the ImageInfo feature
p = myFont + IIf(myFont[0] = 7, 32, 4)
#else
ImageInfo( myFont, , , , , p )
#endif
p[0] = 0
p[1] = FIRSTCHAR
p[2] = LASTCHAR
'' PUT chaque caractere dans la police et mise-a-jour information longueur
For i = FIRSTCHAR To LASTCHAR
'' Ici nous pouvons definir une largeur utilisateur pour chaque lettre, mais par simplicite nous utilisons
'' une largeur fixe de 8 puisque nous re-utilisons les glyphes par defaut de police
p[3 + i - FIRSTCHAR] = 8
'' Creer un caractere dans tampon police utilisateur en dessinant avec police defaut
Draw String myFont, ((i - FIRSTCHAR) * 8, 1), Chr(i), 32 + (i Mod 24) + 24
Next i
'' Maintenant le tampon police est pret; nous pouvons le sauver avec BSAVE pour utilisation ulterieur
Rem BSave "myfont.bmp", myFont
'' Ici nous affichons une chaine avec la police personelle
Draw String (10, 10), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", , myFont
Draw String (10, 26), "abcdefghijklmnopqrstuvwxyz", , myFont
Draw String (66, 58), "Hello world!", , myFont
'' Libere la police de la memoire, maintenant que nous en avons fini
ImageDestroy myFont
Sleep
+ ##
+
+ {{fbdoc item="diff"}}
- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgDraw Draw]]##
- ##[[KeyPgImagecreate ImageCreate]]##
- ##[[KeyPgImageDestroy ImageDestroy]]##
- ##[[KeyPgImageInfo ImageInfo]]##
- ##[[KeyPgPutgraphics Put (Graphique)]]##
- ##[[KeyPgWidth Width]]##
alpha value, ranging 0-255. This parameter only applies to the ##[[KeyPgAddGfx Add]]## or ##[[KeyPgAlphaGfx Alpha]]## methods.
##//blender//##
custom blender function for the ##[[KeyPgCustomgfx Custom]]## drawing method; see ##[[KeyPgPutgraphics Put (Graphics)]]## statement description for details. This parameter only applies to the ##[[KeyPgCustomgfx Custom]]## method.
diff --git a/fbdocs/manual/cache/KeyPgDylibfree.wakka b/fbdocs/manual/cache/KeyPgDylibfree.wakka
index b29646dfb2..09fcd22ac1 100644
--- a/fbdocs/manual/cache/KeyPgDylibfree.wakka
+++ b/fbdocs/manual/cache/KeyPgDylibfree.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DYLIBFREE"}}----
-Unloads a dynamic link library from memory
+Décharge une bibliothèque à liens dynamiques de la mémoire
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Dylibfree** ( [[KeyPgByval byval]] //library// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPointer pointer]] )
@@ -9,33 +9,26 @@ Unloads a dynamic link library from memory
##
{{fbdoc item="param"}}
##//library//##
- The handle of a library to unload.
+ Le nom du pointeur d'une bibliothèque à décharger.
{{fbdoc item="desc"}}
- ##**Dylibfree**## is used to release at runtime libraries previously linked to your program with ##[[KeyPgDylibload Dylibload]]##. The argument is the handle to the library returned by ##[[KeyPgDylibload Dylibload]]##.
+ ##**DyLibFree**## est utilisé pour libérer les bibliothèques d'exécution préalablement liées à votre programme avec ##[[KeyPgDylibload DyLibLoad]]##. L'argument est le nom du pointeur de la bibliothèque retourné par ##[[KeyPgDylibload DyLibLoad]]##.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/module/dylibfree.bas"}}%%(freebasic)
+ %%(freebasic)
+
Dim hndl As Any Ptr
+ hndl=DyLibLoad("MYLIB.DLL")
-hndl=DyLibLoad("MYLIB.DLL")
' ...
-DyLibFree(hndl)
+ DyLibFree(hndl)
%%
+ {{fbdoc item="target"}}
-{{fbdoc item="target"}}
- - Dynamic link libraries are not available in DOS, as the OS doesn't support them.
-
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Dylibfree""**##.
-
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
-
-{{fbdoc item="see"}}
- - ##[[KeyPgDylibsymbol Dylibsymbol]]##
- - ##[[KeyPgDylibload Dylibload]]##
- - ##[[KeyPgExport Export]]##
+- Les bibliothèques à liens dynamiques ne sont pas disponibles dans DOS, car le système d'exploitation ne les prend pas en charge.
+ {{fbdoc item="lang"}}
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Dylibfree**##.
+ {{fbdoc item="diff"}}
-{{fbdoc item="back" value="CatPgModularizing|Modularizing"}}
\ No newline at end of file
+- Nouveau pour FreeBASIC
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDylibload.wakka b/fbdocs/manual/cache/KeyPgDylibload.wakka
index 2830e35a81..c8d0566d9b 100644
--- a/fbdocs/manual/cache/KeyPgDylibload.wakka
+++ b/fbdocs/manual/cache/KeyPgDylibload.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DYLIBLOAD"}}----
-Loads to a Dynamic Link Library (DLL) into memory at runtime
+Charge, à l'exécution, une bibliothèque à liens dynamiques (DLL) dans la mémoire
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Dylibload** ( [[KeyPgByref byref]] //filename// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPointer Pointer]]
@@ -9,33 +9,29 @@ Loads to a Dynamic Link Library (DLL) into memory at runtime
##
{{fbdoc item="param"}}
##//filename//##
- A ##[[KeyPgString string]]## containing the filename of the library to load.
+ Une ##[[KeyPgString String = Chaîne]]## contenant le nom de fichier de la librairie à charger.
-{{fbdoc item="ret"}}
- The ##[[KeyPgPointer pointer]]## handle of the library loaded. Zero on error
+{{fbdoc item="section" value="Valeur retournée
+ Le ##[[KeyPgPointer Pointer]]## de prise en charge de la librairie chargée. Zéro si erreur.
{{fbdoc item="desc"}}
- ##[[KeyPgDylibload Dylibload]]## is used to link at runtime libraries to your program. This function does the link and returns a handle that must be used with ##[[KeyPgDylibsymbol Dylibsymbol]]## when calling a function in the library and with ##[[KeyPgDylibfree Dylibfree]]## when releasing the library.
+ ##[[KeyPgDylibload DyLibLoad]]## est utilisé pour lier au démarrage des librairies à votre programme. Cette fonction réalise le lien et retourne un pointeur qui doit être utilisé avec ##[[KeyPgDylibsymbol DyLibSymbol]]## lorsque vous appelez une fonction dans la bibliothèque et avec ##[[KeyPgDylibfree DyLibFree]]## lors de la libéation de la bibliothèque.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/module/dylibload.bas"}}%%(freebasic)
+ %%(freebasic)
+
Dim hndl As Any Ptr
+ hndl=DyLibLoad("MYLIB.DLL")
-hndl=DyLibLoad("MYLIB.DLL")
%%
+ {{fbdoc item="target"}}
-{{fbdoc item="target"}}
- - Dynamic link libraries are not available in DOS, as the OS doesn't support them.
-
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Dylibload""**##.
-
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Les bibliothèques de liens dynamiques ne sont pas disponibles sous DOS, car l'OS ne les supporte pas.
+ {{fbdoc item="lang"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgDylibsymbol Dylibsymbol]]##
- - ##[[KeyPgDylibfree Dylibfree]]##
- - ##[[KeyPgExport Export]]##
+- Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Dylibload**##.
+ {{fbdoc item="diff"}}
+ - Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
-{{fbdoc item="back" value="CatPgModularizing|Modularizing"}}
\ No newline at end of file
+- ##[[KeyPgDylibsymbol DyLibSymbol]]##
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgDylibsymbol.wakka b/fbdocs/manual/cache/KeyPgDylibsymbol.wakka
index d96608bbc1..371a70f807 100644
--- a/fbdocs/manual/cache/KeyPgDylibsymbol.wakka
+++ b/fbdocs/manual/cache/KeyPgDylibsymbol.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DYLIBSYMBOL"}}----
-Returns the address of a function or variable in a dll
+Renvoie l'adresse d'une fonction ou d'une variable dans une dll
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Dylibsymbol** ( [[KeyPgByval byval]] //library// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]], [[KeyPgByref byref]] //symbol// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]]
@@ -10,74 +10,40 @@ Returns the address of a function or variable in a dll
##
{{fbdoc item="param"}}
##//library//##
- The [[KeyPgAny any]] [[KeyPgPtr ptr]] handle of a DLL returned by ##[[KeyPgDylibload Dylibload]]##
+ Le [[KeyPgAny Any]] [[KeyPgPtr Ptr]] de prise en charge de la DLL retourné par ##[[KeyPgDylibload DyLibLoad]]##
##//symbol//##
- A [[KeyPgString string]] containing name of the function, or variable in the library to return the address of. In Windows only, can also be a ##[[KeyPgShort short]]## containing the ordinal of the function/variable.
+ Une [[KeyPgString String = Chaîne]] contenant le nom de la fonction, ou de la variable dans la librairie pour laquelle on retourne l'adresse. Sous Windows seulement, peut aussi être un ##[[KeyPgShort Short]]## contenant l'ordinal de la fonction/variable.
-{{fbdoc item="ret"}}
- A ##[[KeyPgPtr pointer]]## to the function or variable in the library.
+{{fbdoc item="section" value="Valeur retournée
+ Un ##[[KeyPgPtr Pointer]]## vers la fonction ou la variable dans la librairie.
- If the function fails, the return value is 0.
+ Si la fonction échoue, la valeur retournée est 0.
{{fbdoc item="desc"}}
- ##**Dylibsymbol**## returns a pointer to the variable or function named ##//symbol//## , in the dll pointed by ##//libhandle//##. ##//libhandle//## is obtained by loading the dll with ##[[KeyPgDylibload Dylibload]]##. The symbol must have been ##[[KeyPgExport Export]]##ed in the dll.
- If ##//libhandle//## is 0, the symbol is searched in the current executable or dll.
+ ##**DyLibSymbol**## renvoie un pointeur sur la variable ou une fonction appelée ##//symbol//## , dans la dll pointée par ##//libhandle//##. ##//libhandle//## est obtenu en chargeant la dll avec ##[[KeyPgDylibload DyLibLoad]]##. Le symbole doit avoir été ##[[KeyPgExport Export]]##é dans la DLL.
+ Si ##//libhandle//## est 0, le symbole est recherché dans l'exécutable ou la dll courant.
- If using ##[[KeyPgCdecl Cdecl]]## functions, only the name of the procedure needs to be specified. If dynamically linking to a function created using STDCALL (default in windows), then the function must be decorated. To decorate a function, use its name, '@', then the number of bytes passed as arguments. For instance if the function ##FOO## takes 3 integer arguments, the decorated function would be 'FOO@12'. Remember, without an explicit ##[[KeyPgAlias alias]]##, the procedure name will be uppercase.
+ Si on utilise les fonctions ##[[KeyPgCdecl cdecl]]##, seule le nom de la procédure nécessite d'être spécifié. Si lien dynamique à une fonction en utilisant STDCALL (par défaut dans Windows), alors la fonction doit être "decorated". Pour "decorate" une fonction, utilisez son nom, '@', puis le nombre d'octets passé comme arguments. Par exemple, si la fonction ##FOO## prend 3 arguments entiers, la fonction "decorated" serait 'FOO@12'. Rappelez-vous, sans un ##[[KeyPgAlias Alias]]## explicite, le nom de la procédure sera en majuscules.
- If linking to a dll created in Visual C""++""(tm), decoration need not be used. For GCC, decoration is needed.
+ Si lien vers une dll créée dans Visual C++(tm), "decoration" ne doit pas être utilisé. Pour GCC, "decoration" est nécessaire.
- **Note:** The dylibsymbol, if failing, will attempt to automatically decorate the procedure, from @0 to @256, in 4 byte increments.
+ **Note:** Le dylibsymbol, si échec, essaiera automatiquement de "decorate" la procédure, de @0 à @256, en incréments de 4 octets.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/module/mydll2.bas"}}%%(freebasic)
-'' mydll.dll
+ %%(freebasic)
-'' in the DLL the function must be declared as CDECL and export
+'' mydll.dll
+ '' in the DLL the function must be declared as CDECL and export
+ Function AddNumbers cdecl Alias "AddNumbers" _
-Function AddNumbers cdecl Alias "AddNumbers" _
- ( _
+( _
ByVal operand1 As Integer, ByVal operand2 As Integer _
- ) As Integer Export
- AddNumbers = operand1 + operand2
+) As Integer Export
+ AddNumbers = operand1 + operand2
End Function
-%%
-
-{{fbdoc item="filename" value="examples/manual/module/dylibsymbol.bas"}}%%(freebasic)
-'' create a function pointer, arguments must be the same
-'' as in the original function
-
-Dim AddNumbers As Function ( ByVal operand1 As Integer, ByVal operand2 As Integer ) As Integer
-
-Dim hndl As Any Ptr
-
-hndl=DyLibLoad("mydll.dll")
-
-'' find the procedure address (case matters!)
-AddNumbers = DyLibSymbol( hndl, "AddNumbers" )
-
-'' then call it..
-Print "1 + 2 ="; AddNumbers( 1, 2 )
-
-DyLibFree hndl
-
-Sleep
-%%
-
-{{fbdoc item="target"}}
- - Dynamic link libraries are not available in DOS ,as the OS doesn't support them.
- - Ordinals are not supported on Linux, 0 is always returned.
-
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Dylibsymbol""**##.
-
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
-
-{{fbdoc item="see"}}
- - ##[[KeyPgDylibload Dylibload]]##
- - ##[[KeyPgExport Export]]##
+ %%
+ %%(freebasic)
-{{fbdoc item="back" value="CatPgModularizing|Modularizing"}}
\ No newline at end of file
+'' create a function pointer, arguments must be the same
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgElse.wakka b/fbdocs/manual/cache/KeyPgElse.wakka
index 03b929753f..c4bfa9ee4d 100644
--- a/fbdocs/manual/cache/KeyPgElse.wakka
+++ b/fbdocs/manual/cache/KeyPgElse.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="ELSE"}}----
-Control flow statement for conditional branching
+Déclaration de contrôle de flux pour le branchement conditionnel
{{fbdoc item="syntax"}}##
**If** //expression// **Then** //statement(s)// [**Else** //statement(s)//]
-//or//
+//ou//
**If** //expression// **Then** : //statement(s)// [**Else** //statement(s)//] : **End If**
-//or//
+//ou//
**If** //expression// **Then**
//statement(s)//
[ **Elseif** //expression// **Then** ]
@@ -15,7 +15,7 @@ Control flow statement for conditional branching
**End If**
##
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgIfthen If...Then]]##
diff --git a/fbdocs/manual/cache/KeyPgElseif.wakka b/fbdocs/manual/cache/KeyPgElseif.wakka
index c3f790bf79..a337eea846 100644
--- a/fbdocs/manual/cache/KeyPgElseif.wakka
+++ b/fbdocs/manual/cache/KeyPgElseif.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ELSEIF"}}----
-Control flow statement for conditional branching
+Déclaration de contrôle de flux pour le branchement conditionnel
{{fbdoc item="syntax"}}##
**If** //expression// **Then**
@@ -11,7 +11,7 @@ Control flow statement for conditional branching
**End If**
##
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgIfthen If...Then]]##
diff --git a/fbdocs/manual/cache/KeyPgEncoding.wakka b/fbdocs/manual/cache/KeyPgEncoding.wakka
index 5dda76bef2..ccdf63bf10 100644
--- a/fbdocs/manual/cache/KeyPgEncoding.wakka
+++ b/fbdocs/manual/cache/KeyPgEncoding.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="ENCODING"}}----
-Specifies character format of a text file
+Spécifie le format des caractères d'un fichier texte
{{fbdoc item="syntax"}}##
[[KeyPgOpen open]] //filename// for {Input|Output|Append} **Encoding** "//utf-8//"|"//utf-16//"|"//utf-32//"|"//ascii//" as [#]//filenum//
##
{{fbdoc item="param"}}
##//filename//## for {Input|Output|Append}
- file name to open for ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]##, or ##[[KeyPgAppend Append]]##
+ nom du fichier à ouvrir pour ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]##, ou ##[[KeyPgAppend Append]]##
##**Encoding** "//utf-8//"|"//utf-16//"|"//utf-32//"|"//ascii//"##
- indicates encoding type for the file
+ indique le type d'encodage du fichier
##//filenum//##
- unused file number to associate with the open file
+ numéro de fichier à associer avec le fichier à ouvrir
{{fbdoc item="desc"}}
- ##**Encoding**## specifies the format for an Unicode text file, so ##[[KeyPgWinput Winput #]]## and ##[[KeyPgPrintPp Print #]]## use the correct encoding. If omitted from an ##[[KeyPgOpen Open]]## statement, "ascii" encoding is the default.
+ ##**Encoding**## spécifie le format d'un fichier texte Unicode, pour que ##[[KeyPgWinput Winput #]]## et ##[[KeyPgPrintPp Print #]]## utilisent l'encodage correct. Si omis à partir d'une déclaration ##[[KeyPgOpen Open]]##, l'encodage "ascii" sera utilisé par défaut.
- Only little endian character encodings are supported at the moment.
- -"utf8",
- -"utf16"
- -"utf32"
- -"ascii" (the default)
+ Seul, les caractères encodés "little endian" sont pris en charge pour le moment.
+
"utf8",
+ "utf16"
+ "utf32"
+ "ascii" (par défaut)
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/encoding.bas"}}%%(freebasic)
@@ -92,26 +92,26 @@ scope
print
end scope
%%
-Output:
+Affichage:
%%
Text to write to sample.txt:
FreeBASIC
Binary contents of sample.txt:
-FF FE 46 00 72 00 65 00 65 00 42 00 41 00 53 00 49 00 43 00 0D 00 0A 00
+FF FE 46 00 72 00 65 00 65 00 42 00 41 00 53 00 49 00 43 00 0D 00 0A 00
Text read from sample.txt:
FreeBASIC
%%
{{fbdoc item="target"}}
- - Unicode (w)strings are not supported in the DOS port of FreeBASIC
+ - Les chaînes Unicode ne sont pas supportées dans le portage DOS de FreeBASIC
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Encoding""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Encoding**##.
{{fbdoc item="diff"}}
- - QB had no support for Unicode
+ - QB n'a pas de support d'Unicode
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgEnd.wakka b/fbdocs/manual/cache/KeyPgEnd.wakka
index baf34698b3..bdc6323e39 100644
--- a/fbdocs/manual/cache/KeyPgEnd.wakka
+++ b/fbdocs/manual/cache/KeyPgEnd.wakka
@@ -1,5 +1,5 @@
-{{fbdoc item="title" value="END (Statement)"}}----
-Control flow statement to end the program.
+{{fbdoc item="title" value="End (Déclaration)"}}----
+Déclaration de contrôle de flux pour terminer un programme.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **End** ( [[KeyPgByval byval]] //retval// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 )
@@ -9,12 +9,12 @@ Control flow statement to end the program.
##
{{fbdoc item="param"}}
##//retval//##
- Error code returned to system.
+ Le code d'erreur retourné au système.
{{fbdoc item="desc"}}
- Used to terminate the program, and return to the operating system. An optional integer return value can be specified to indicate an error code to the system. If no return value is given, a value of 0 is automatically returned.
+ Utilisé pour terminer le programme et retourner au système d'exploitation. Une valeur retournée (entière facultative) peut être spécifiée pour indiquer un code d'erreur au système. Si aucune valeur de retour n'est donnée, une valeur de 0 est automatiquement retournée.
- Usage of this statement does not cleanly close scope. Variables and memory are not destroyed automatically and object destructors are not called. Calling the required destructors and other clean-up should be explicitly performed before an ##**End**## statement.
+ L'utilisation de cette déclaration ne ferme pas proprement le champ d'application. Les variables et la mémoire ne sont pas détruits automatiquement et les destructeurs d'objet ne sont pas appelés. L'appel des destructeurs et autres moyens nécessaires au nettoyage doit être effectué explicitement avant une déclaration ##**End**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/end.bas"}}%%(freebasic)
@@ -43,9 +43,9 @@ sleep : end 0
%%
{{fbdoc item="diff"}}
- - The END statement supports specifying a custom return value to be returned to the operating system.
+ - La déclaration END permet de spécifier une valeur de retour personnalisée pour la retourner au système d'exploitation.
{{fbdoc item="see"}}
- - ##[[KeyPgEndblock End (Block)]]##
+ - ##[[KeyPgEndblock End (Bloc)]]##
{{fbdoc item="back" value="CatPgMisc|Miscellaneous"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgEndblock.wakka b/fbdocs/manual/cache/KeyPgEndblock.wakka
index 7f12cb0155..0a47da8bb6 100644
--- a/fbdocs/manual/cache/KeyPgEndblock.wakka
+++ b/fbdocs/manual/cache/KeyPgEndblock.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="END (Block)"}}----
-Indicates the end of a compound statement block.
+Indique la fin d'un bloc d'instructions composé.
{{fbdoc item="syntax"}}##
**End** { [[KeyPgSub Sub]] | [[KeyPgFunction Function]] | [[KeyPgIfthen If]] | [[KeyPgSelectcase Select]] | [[KeyPgType Type]] | [[KeyPgEnum Enum]] | [[KeyPgScope Scope]] | [[KeyPgWith With]] | [[KeyPgNamespace Namespace]] | [[KeyPgExtern Extern]] | [[KeyPgConstructor Constructor]] | [[KeyPgDestructor Destructor]] | [[KeyPgOperator Operator]] | [[KeyPgProperty Property]] }
##
{{fbdoc item="desc"}}
- Used to indicate the end of the most recent code block.
+ Utilisé pour indiquer la fin du bloc de code le plus récent.
- The type of the block must be included in the command: one of ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgIfthen If]]##, ##[[KeyPgSelectcase Select]]##, ##[[KeyPgType Type]]##, ##[[KeyPgEnum Enum]]##, ##[[KeyPgScope Scope]]##, ##[[KeyPgWith With]]##, ##[[KeyPgNamespace Namespace]]##, ##[[KeyPgExternBlock Extern]]##, ##[[KeyPgConstructor Constructor]]##, ##[[KeyPgDestructor Destructor]]##, ##[[KeyPgOperator Operator]]##, or ##[[KeyPgProperty Property]]##.
+ Le type du bloc doit être inclus dans la commande: soit ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgIfthen If]]##, ##[[KeyPgSelectcase Select]]##, ##[[KeyPgType Type]]##, ##[[KeyPgEnum Enum]]##, ##[[KeyPgScope Scope]]##, ##[[KeyPgWith With]]##, ##[[KeyPgNamespace Namespace]]##, ##[[KeyPgExternBlock Extern]]##, ##[[KeyPgConstructor Constructor]]##, ##[[KeyPgDestructor Destructor]]##, ##[[KeyPgOperator Operator]]##, ou ##[[KeyPgProperty Property]]##.
- Ending a ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgIfthen If]]##, ##[[KeyPgSelectcase Select]]##, ##[[KeyPgScope Scope]]##, ##[[KeyPgConstructor Constructor]]##, ##[[KeyPgDestructor Destructor]]##, ##[[KeyPgOperator Operator]]##, or ##[[KeyPgProperty Property]]## block also closes the scope for variables defined inside that block. When the scope is closed, variables defined inside the scope are destroyed, calling their destructors as needed.
+ La fin d'un bloc ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgIfthen If]]##, ##[[KeyPgSelectcase Select]]##, ##[[KeyPgScope Scope]]##, ##[[KeyPgConstructor Constructor]]##, ##[[KeyPgDestructor Destructor]]##, ##[[KeyPgOperator Operator]]##, ou ##[[KeyPgProperty Property]]## ferme aussi la portée des variables définies dans ce bloc. Quand la portée est fermée, les variables définies dans cette portée sont détruites, l'appel de leur destructeur est demandé.
- To end a program, see ##[[KeyPgEnd End (Statement)]]##.
+ Pour mettre fin à un programme, voir ##[[KeyPgEnd End (Déclaration)]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/endblock.bas"}}%%(freebasic)
@@ -33,12 +33,12 @@ End Sub
%%
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgConstructor Constructor]]##
- ##[[KeyPgDestructor Destructor]]##
- - ##[[KeyPgEnd End (Statement)]]##
+ - ##[[KeyPgEnd End (Déclaration)]]##
- ##[[KeyPgEnum Enum]]##
- ##[[KeyPgExternBlock Extern]]##
- ##[[KeyPgFunction Function]]##
diff --git a/fbdocs/manual/cache/KeyPgEndif.wakka b/fbdocs/manual/cache/KeyPgEndif.wakka
index 1a1f5a2bb6..01d46b33ce 100644
--- a/fbdocs/manual/cache/KeyPgEndif.wakka
+++ b/fbdocs/manual/cache/KeyPgEndif.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="END IF"}}----
-Control flow statement for conditional branching.
+Déclaration de contrôle de flux pour le branchement conditionnel.
{{fbdoc item="syntax"}}##
**If** //expression// **Then** : //statement(s)// [**Else** //statement(s)//] : **End If**
-//or//
+//ou//
**If** //expression// **Then**
//statement(s)//
**End If**
##
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgIfthen If...Then]]##
diff --git a/fbdocs/manual/cache/KeyPgEnum.wakka b/fbdocs/manual/cache/KeyPgEnum.wakka
index e9292c4684..66c34d303c 100644
--- a/fbdocs/manual/cache/KeyPgEnum.wakka
+++ b/fbdocs/manual/cache/KeyPgEnum.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ENUM"}}----
-Declares an enumerated type.
+Déclare un type énuméré.
{{fbdoc item="syntax"}}##
**Enum** [//typename// [ Explicit ] ]
@@ -9,22 +9,22 @@ Declares an enumerated type.
##
{{fbdoc item="param"}}
##//typename//##
- Name of the ##**Enum**##
+ Nom de l'##**Enum**##
##//symbolname//##
- Name of the constant
+ Nom de la constante
##//expression//##
- A constant expression
+ Une expression constante
##Explicit##
- Requires that symbols must be explicitly referred to by ##//typename//.//symbolname//##
+ Exige que les symboles doivent explicitement être référencés par ##//typename//.//symbolname//##
{{fbdoc item="desc"}}
- ##**Enum**##, short for enumeration, declares a list of symbol names that correspond to discrete values. If no initial value is given, the first item will be set to ##0##. Each subsequent symbol has a value one more than the previous unless ##//expression//## is given.
+ ##**Enum**##, abréviation de énumération, déclare une liste de noms de symboles qui correspondent à des valeurs discrètes. Si aucune valeur initiale n'est donnée, le premier item sera mis à ##0##. Chaque symbole suivant a une valeur de un de plus que le précédent sauf si ##//expression//## existe.
- Symbols may be each on their own line, or separated on a single line by commas.
+ Ces symboles peuvent être chacun sur leur propre ligne ou sur une seule ligne séparés par des virgules.
- An ##**Enum**## is a useful way of grouping together a set of related ##[[KeyPgConst const]]##ants. A symbol can be accessed like constant, e.g: ##a = //symbolname//##. But if the name clashes with another symbol, it must be resolved using ##//typename//.//symbolname//##. This resolution method is always required if you make the enum ##Explicit##.
+ ##**Enum**## est un moyen utile de regrouper un ensemble de ##[[KeyPgConst Const]]##antes liées. Un symbole peut être consulté comme constante, par exemple: ##a = //symbolname//##. Mais s'il y a conflit de nom avec un autre symbole, il doit être résolu à l'aide de ##//typename//.//symbolname//##. Cette méthode de résolution est toujours nécessaire si l'énumération est ##//Explicit//##.
- An ##**Enum**## can be passed as a user defined type to ##[[KeyPgOverload overload]]##ed operator functions.
+ ##**Enum**## peut être passé comme un type défini par l'utilisateur pour les fonctions de ##[[KeyPgOverload Surcharge]]## d'opérateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/enum.bas"}}%%(freebasic)
@@ -49,11 +49,11 @@ end select
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the aliases ##**""__Enum""**## and ##**""__Explicit""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec les alias ##**__Enum**## et ##**__Explicit**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgConst Const]]##
diff --git a/fbdocs/manual/cache/KeyPgEnviron.wakka b/fbdocs/manual/cache/KeyPgEnviron.wakka
index 3d44848d84..dfe270fbab 100644
--- a/fbdocs/manual/cache/KeyPgEnviron.wakka
+++ b/fbdocs/manual/cache/KeyPgEnviron.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ENVIRON"}}----
-Returns the value of a system environment variable
+Renvoie la valeur d'une variable d'environnement système
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Environ** ( [[KeyPgByref byref]] //varname// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,13 +9,13 @@ Returns the value of a system environment variable
##
{{fbdoc item="param"}}
##//varname//##
- The name of an environment variable.
+ Le nom d'une variable d'environnement.
-{{fbdoc item="ret"}}
- Returns the text value of the environmental variable, or the empty string (##"####"##) if the variable does not exist.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la valeur du texte de la variable d'environnement ou la chaîne vide (##"####"##) si la variable n'existe pas.
{{fbdoc item="desc"}}
- ##**Environ**## returns the text value of a system environment variable.
+ ##**Environ**## retourne la valeur texte d'une variable d'environnement système.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/environ.bas"}}%%(freebasic)
@@ -25,7 +25,7 @@ print environ("path")
%%
{{fbdoc item="diff"}}
- - The ##**ENVIRON**## statement is now called ##[[KeyPgSetenviron Setenviron]]##.
+ - La déclaration ##**Environ**## est maintenant appelée ##[[KeyPgSetenviron SetEnviron]]##.
{{fbdoc item="see"}}
- ##[[KeyPgSetenviron Setenviron]]##
diff --git a/fbdocs/manual/cache/KeyPgEof.wakka b/fbdocs/manual/cache/KeyPgEof.wakka
index 920d879ab4..654c26fe4c 100644
--- a/fbdocs/manual/cache/KeyPgEof.wakka
+++ b/fbdocs/manual/cache/KeyPgEof.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="EOF"}}----
-Checks to see if the end of an open file has been reached
+Vérifie si la fin d'un fichier ouvert a été atteinte
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Eof** ( [[KeyPgByval byval]] //filenum// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,15 +9,15 @@ Checks to see if the end of an open file has been reached
##
{{fbdoc item="param"}}
##//filenum//##
- An ##[[KeyPgInteger integer]]## file number of an open file.
+ Un ##[[KeyPgInteger Integer]]## numéro d'un fichier ouvert.
-{{fbdoc item="ret"}}
- Returns true (-1) if end-of-file has been reached, zero (0) otherwise.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne vrai (true) (-1) si la fin du fichier (End Of File) a été atteinte, autrement zéro (0).
{{fbdoc item="desc"}}
- When reading from files opened for ##[[KeyPgInputfilemode Input (File Mode)]]##, it is useful to know when the end of the file has been reached, thus avoiding errors caused by reading past the ends of files. Use EOF to determine this. EOF expects a valid file number from an already opened file. Use ##[[KeyPgFreefile Freefile]]## to retrieve an available file file number.
+ Lors d'une lecture de fichier ouvert avec ##[[KeyPgInputfilemode Input (File Mode)]]##, il est utile de savoir quand la fin du fichier est atteinte, ceci évite d'avoir une erreur causée par un essai de lecture après la fin du fichier. L'utilisation de ##**EOF**## permet de déterminer quand on a atteint la fin. ##**EOF**## attend un numéro valide de fichier déjà ouvert. Utilisez ##[[KeyPgFreefile FreeFile]]## pour récupérer un numéro de fichier disponible.
- For file numbers bound to files opened for ##[[KeyPgOutput Output]]##, EOF always returns 0.
+ Pour les numéros de fichiers liés aux fichiers ouverts pour ##[[KeyPgOutput Output]]##, EOF retourne toujours 0.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/eof.bas"}}%%(freebasic)
@@ -49,11 +49,11 @@ close #file_num '' close file via our file number
end 0
%%
- Because of underlying differences in the libraries used by the compiler on different platforms, the EOF function can be unreliable when reading text files created in Linux (with LF line endings) in the Windows version of the compiler. The DOS and Linux compilers do not have this problem. One solution is to open the file for Binary access instead of for Input. Line Input# and EOF can still be used as in the above example, and the EOF function will work reliably. This solution will not detect the end of file character, but this is only used to mark the end of text streams that are not disk files.
+ En raison des différences sous-jacentes dans les librairies utilisées par le compilateur sur les différentes plates-formes, la fonction ##**EOF**## peut être peu fiable lors de la lecture de fichiers texte créés dans Linux (avec des fins de ligne indiquées par LF) dans la version Windows du compilateur. Les compilateur DOS et Linux n'ont pas ce problème. Une solution consiste à ouvrir le fichier pour un accès [[KeyPgBinary Binary]] au lieu d'un [[KeyPgInputfilemode Input]]. [[KeyPgLineinputPp Line Input#]] et ##**EOF**## peuvent encore être utilisés comme dans l'exemple ci-dessus, et la fonction EOF sera fiable. Cette solution ne détecte pas le caractère de fin de fichier, mais ceci n'est utilisé que pour marquer la fin des flux de texte qui ne sont pas des fichiers sur le disque.
{{fbdoc item="diff"}}
- - In QB the comm port signaled an EOF when there were no chars waiting to be read.
- - In QB, for files opened in RANDOM or BINARY mode, EOF returned non-zero only after a read past the end of file has been attempted. In FreeBASIC, EOF returns true after the last item is read.
+ - Dans QB le port COM signale un EOF quand il n'y a aucun caractère en attente de lecture.
+ - Dans QB, pour les fichiers ouverts en mode RANDOM ou BINARY, EOF retourne une valeur différente de zéro seulement après une lecture une fois la fin du fichier atteinte. Dans FreeBASIC, EOF retourne "true" (vrai) après la lecture du dernier item.
{{fbdoc item="see"}}
- ##[[KeyPgLof Lof]]##
diff --git a/fbdocs/manual/cache/KeyPgErase.wakka b/fbdocs/manual/cache/KeyPgErase.wakka
index 959a2e2d26..017978ee36 100644
--- a/fbdocs/manual/cache/KeyPgErase.wakka
+++ b/fbdocs/manual/cache/KeyPgErase.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERASE"}}----
-Statement to erase arrays
+Déclaration pour effacer les tableaux
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Erase** ( array [[KeyPgAs as]] [[KeyPgAny any]] [, ... ] )
@@ -9,10 +9,10 @@ Statement to erase arrays
##
{{fbdoc item="param"}}
##//array//##
- An array to be erase.
+ Un tableau à effacer.
{{fbdoc item="desc"}}
- Erases the element data of one or more variable-length arrays from memory, or clears (initializes) all elements in a fixed-length array.
+ Efface de la mémoire les éléments de données d'un ou plusieurs tableaux de longueur variable, ou remet à zéro (initialise) tous les éléments d'un tableau à longueur fixe.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/array/erase.bas"}}%%(freebasic)
@@ -23,7 +23,7 @@ erase MyArray1, MyArray2
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgCommon Common]]##
diff --git a/fbdocs/manual/cache/KeyPgErfn.wakka b/fbdocs/manual/cache/KeyPgErfn.wakka
index c2a7cf9bef..c1f22d7b0a 100644
--- a/fbdocs/manual/cache/KeyPgErfn.wakka
+++ b/fbdocs/manual/cache/KeyPgErfn.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERFN"}}----
-Error reporting function
+Signaler une erreur survenue dans une fonction
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Erfn** ( ) [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]]
@@ -7,13 +7,13 @@ Error reporting function
{{fbdoc item="usage"}}##
//result// = **Erfn** ( )
##
-{{fbdoc item="ret"}}
- Returns a pointer to the string identifying the function where the error occurred.
+{{fbdoc item="section" value="Valeur retourné
+ Retourne un pointeur vers la chaîne de caractères identifiant la fonction où l'erreur s'est produite.
- Returns NULL if the source is not compiled with the //[[CompilerOptexx -exx]]// compiler option.
+ Retourne NULL si la source n'est pas compilé avec l'option de compilation //[[CompilerOptexx -exx]]//.
{{fbdoc item="desc"}}
- An error reporting function returning a pointer to the name of the function.
+ Une fonction de rapport d'erreur retournant un pointeur sur le nom de la fonction.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/error/erfn.bas"}}%%(freebasic)
@@ -34,19 +34,19 @@ End Sub
Generate_Error
%%
-**Output:**
+**Affichage:**
%%Error Function: GENERATE_ERROR
Error Module : test.bas
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Erfn""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Erfn**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
+{{fbdoc item="see"}}
- ##[[KeyPgErl Erl]]##
- ##[[KeyPgErmn Ermn]]##
- ##[[KeyPgOnerror On...Error]]##
diff --git a/fbdocs/manual/cache/KeyPgErl.wakka b/fbdocs/manual/cache/KeyPgErl.wakka
index 16ea77daab..0f211a9567 100644
--- a/fbdocs/manual/cache/KeyPgErl.wakka
+++ b/fbdocs/manual/cache/KeyPgErl.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERL"}}----
-Error handling function to return the line where the error occurred
+Fonction de gestion d'erreur retournant le numéro de ligne où l'erreur s'est produite
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Erl** ( ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -7,15 +7,15 @@ Error handling function to return the line where the error occurred
{{fbdoc item="usage"}}##
//result// = **Erl**
##
-{{fbdoc item="ret"}}
- An [[KeyPgInteger integer]] return value containing the line number where the last error occurred.
+{{fbdoc item="section" value="Valeur retourné
+ Une valeur retournée [[KeyPgInteger Integer]] contenant le numéro de la ligne où la dernière erreur s'est produite.
{{fbdoc item="desc"}}
- ##**Erl**## will return the line number where the last error occurred. If no error has occurred, ##**Erl**## will return 0.
+ ##**Erl**## retournera le numéro de la ligne où la dernière erreur s'est produite. Si aucune erreur ne s'est produite, ##**Erl**## retournera 0.
- ##**Erl**## cannot always be used effectively -- QB-like error handling must be enabled.
+ ##**Erl**## ne peut pas toujours être utilisé efficacement -- la gestion des erreurs QB-like doit être activée.
- ##**Erl**## is reset by RESUME and RESUME NEXT
+ ##**Erl**## est réinitialisé par RESUME et RESUME NEXT
{{fbdoc item="ex"}}
@@ -43,10 +43,10 @@ ErrorHandler:
%%
{{fbdoc item="diff"}}
- - FreeBASIC returns the source code line number and ignores the values of all explicit line numbers, where as QB returns the last encountered explicit line number, and will return zero (0) when explicit line numbers are not used.
+ - FreeBasic retourne le numéro de la ligne de code source et ignore les valeurs de tous les numéros de ligne explicites, alors que QB retourne le dernier numéro explicite de la ligne rencontrée, et sera de retour à zéro (0) lorsque les numéros de ligne explicites ne sont pas utilisés.
{{fbdoc item="see"}}
- - {{fbdoc item="keyword" value="ProPgErrorHandling|Error Handling"}}
- - ##{{fbdoc item="keyword" value="KeyPgErr|Err"}}##
+ - [[ProPgErrorHandling Error Handling]]
+ - ##[[KeyPgErr Err]]##
{{fbdoc item="back" value="CatPgError|Error Handling Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgErmn.wakka b/fbdocs/manual/cache/KeyPgErmn.wakka
index ae8cb6e7e7..ce817ee2cd 100644
--- a/fbdocs/manual/cache/KeyPgErmn.wakka
+++ b/fbdocs/manual/cache/KeyPgErmn.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERMN"}}----
-Error reporting function
+Signaler une erreur de fonctionnement dans un module
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Ermn** ( ) [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]]
@@ -8,12 +8,12 @@ Error reporting function
//result// = **Ermn** ( )
##
{{fbdoc item="ret"}}
- Returns a pointer to the string identifying the module where the error occurred.
+ Retourne un pointeur vers la chaîne de caractères identifiant le module où l'erreur s'est produite.
- Returns NULL if the source is not compiled with the //[[CompilerOptexx -exx]]// compiler option.
+ Retourne NULL si la source n'est pas compilée avec l'option de compilation //[[CompilerOptexx -exx]]//.
{{fbdoc item="desc"}}
- An error reporting function returning a pointer to the name of the module.
+ Une fonction de rapport d'erreur retournant un pointeur sur le nom du module.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/error/ermn.bas"}}%%(freebasic)
@@ -34,17 +34,17 @@ End Sub
Generate_Error
%%
-**Output:**
+**Affichage:**
%%Error Function: GENERATE_ERROR
Error Module : test.bas
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Ermn""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Ermn**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgErfn Erfn]]##
diff --git a/fbdocs/manual/cache/KeyPgErr.wakka b/fbdocs/manual/cache/KeyPgErr.wakka
index 142501e5ae..a376e67b0a 100644
--- a/fbdocs/manual/cache/KeyPgErr.wakka
+++ b/fbdocs/manual/cache/KeyPgErr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERR"}}----
-Error handling function to return the error number of the last error
+Fonction de gestion des erreurs qui renvoie le numéro de la dernière erreur
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Err** ( ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -8,19 +8,19 @@ Error handling function to return the error number of the last error
//result// = **Err**
##
{{fbdoc item="ret"}}
- After an error, returns the error code that occurred.
+ Après une erreur, retourne le code de l'erreur qui s'est produite.
{{fbdoc item="desc"}}
- ##**Err**## can always be used, even if QB-like error handling is not enabled.
+ ##**Err**## peut toujours être utilisé, même si la gestion des erreurs QB-like n'est pas activée.
- ##**Err**## is reset by ##[[KeyPgResume Resume]]## and ##[[KeyPgResumenext Resume Next]]##.
+ ##**Err**## est réinitialisé par ##[[KeyPgResume Resume]]## et ##[[KeyPgResumenext Resume Next]]##.
- NOTE: Care should be taken when calling an internal function (such as ##[[KeyPgPrint Print]]##) after an error occurs because it will reset the error value with its own error status. To preserve the ##**Err**## value, it is a good idea to store it in a variable as soon as the error handler is entered.
+ NOTE: Des précautions doivent être prises lors de l'appel d'une fonction interne (comme ##[[KeyPgPrint Print]]##) après qu'une erreur se soit produite car la valeur d'erreur sera réinitialisée avec son propre statut d'erreur. Pour préserver la valeur ##**Err**##, il faut la copier dans une variable auxiliaire dès que le gestionnaire d'erreurs est lancé.
- See [[TblRuntimeErrors Runtime Error Codes]] for a listing of runtime error numbers and their associated meaning.
+ Voir [[TblRuntimeErrors Codes d'erreur de fonctionnement]] pour une liste des numéros d'erreur d'exécution et leur signification.
{{fbdoc item="ex"}}
-An example using QBasic style error handling (compile with -ex option)
+Un exemple en utilisant le style QBasic de gestion d'erreur (compilation avec l'option -ex)
{{fbdoc item="filename" value="examples/manual/error/err1.bas"}}%%(freebasic)
'' Compile with -lang fblite or qb
@@ -35,7 +35,7 @@ Error_Handler:
Print "Error #"; n
Resume Next
%%
-An example using inline error handling (note: ##[[KeyPgOpen Open]]## can also return its own error status when called as a function)
+Un exemple en utilisant la gestion des erreurs en ligne (note: ##[[KeyPgOpen Open]]## peut aussi retourner son propre status d'erreur s'il est appelé comme une fonction)
{{fbdoc item="filename" value="examples/manual/error/err2.bas"}}%%(freebasic)
'' compile without -e switch
@@ -52,11 +52,11 @@ close #1
%%
{{fbdoc item="diff"}}
- - Error numbers are not the same as in QB.
+ - Les numéros d'erreur sont différents dans QB.
{{fbdoc item="see"}}
- ##[[KeyPgOnerror On Error]]##
- - {{fbdoc item="keyword" value="ProPgErrorHandling|Error Handling"}}
- - [[TblRuntimeErrors Runtime Error Codes]]
+ - [[ProPgErrorHandling Gestion des erreurs]]
+ - [[TblRuntimeErrors Codes des erreurs de fonctionnement]]
{{fbdoc item="back" value="CatPgError|Error Handling Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgError.wakka b/fbdocs/manual/cache/KeyPgError.wakka
index 1b3171e431..8685ef57de 100644
--- a/fbdocs/manual/cache/KeyPgError.wakka
+++ b/fbdocs/manual/cache/KeyPgError.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ERROR"}}----
-Error handling statement to force an error to be generated
+Déclaration de gestion des erreurs qui force la génération d'une erreur
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Error** ( //errno// [[KeyPgAs as]] [[KeyPgInteger integer]] )
@@ -9,27 +9,27 @@ Error handling statement to force an error to be generated
##
{{fbdoc item="param"}}
##//errno//##
- The error number to generate
+ Le numéro de l'erreur à générer
{{fbdoc item="desc"}}
- Generates a run-time error using the specified ##//errno//##. This can be used to simulate custom error numbers.
+ Génère une erreur de fonctionnement en utilisant le ##//errno//## spécifié. Ceci peut être utilisé pour simuler des numéros d'erreur personnalisés.
- No user error code range is defined, so if ##[[KeyPgError Error]]## is used to set an user-defined error code it is wise to use high values, to avoid collisions in case the list of built-in errors list is enhanced.
+ Aucune gamme de code d'erreur utilisateur n'est définie, ainsi si ##[[KeyPgError Error]]## est utilisé pour définir un code d'erreur utilisateur, il est sage d'utiliser des valeurs élevées, pour éviter des collisions dans le cas où la liste des erreurs intégrées est complètée.
- See [[TblRuntimeErrors Runtime Error Codes]] for a listing of runtime error numbers and their associated meaning.
+ Voir [[TblRuntimeErrors Codes des erreurs de fonctionnement]] pour une liste des erreurs de fonctionnement et de leurs numéros, ainsi que de leur signification.
{{fbdoc item="ex"}}
- To send an error alert of error 150 (just some arbitrary error code) one would do the following:
+ Pour envoyer une alerte d'erreur 150 (juste un code d'erreur arbitraire) on ferait ce qui suit:
{{fbdoc item="filename" value="examples/manual/error/error.bas"}}%%(freebasic)
error 150
%%
{{fbdoc item="diff"}}
- - Error numbers are not the same as in QB.
+ - Les numéros d'erreur sont différents dans QB.
{{fbdoc item="see"}}
- ##[[KeyPgErr Err]]##
- - {{fbdoc item="keyword" value="ProPgErrorHandling|Error Handling"}}
- - [[TblRuntimeErrors Runtime Error Codes]]
+ - [[ProPgErrorHandling Gestion des erreurs]]
+ - [[TblRuntimeErrors Codes des erreurs de fonctionnement]]
{{fbdoc item="back" value="CatPgError|Error Handling Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgEvent.wakka b/fbdocs/manual/cache/KeyPgEvent.wakka
index 9e69edb1f9..09f4486f18 100644
--- a/fbdocs/manual/cache/KeyPgEvent.wakka
+++ b/fbdocs/manual/cache/KeyPgEvent.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="EVENT"}}----
-Pre-defined structure(UDT) used by [[KeyPgScreenevent Screenevent]] to return event data
+Structure prédéfinie (UDT) utilisée par [[KeyPgScreenevent ScreenEvent]] pour retourner les données d'événements
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Event**
##
{{fbdoc item="desc"}}
- Here we report the ##EVENT## structure for clarity:
+ Ici, nous décrivons la structure ##EVENT## pour plus de clarté:
- {{fbdoc item="filename" value="examples/manual/check/KeyPgScreenevent_1.bas"}}%%(freebasic)
+ %%(freebasic)
Type EVENT Field = 1
Type As Integer
Union
@@ -28,35 +28,33 @@ Type EVENT Field = 1
End Type
%%
-The ##Type Field## will contain the event type ID, while the remaining 4 integers will hold sensitive data to the event type.
+##Type Field## contiendra l'ID de type d'événement, tandis que les 4 entiers restants stockeront les données sensibles du type d'événement.
- __Event types__
- The event type is identified by an ID number returned into the first integer of the ##//event//## buffer (the ##.type## field in the ##EVENT## structure). Known event type IDs - and their values at time of writing - are:
+ Les types d'événements
+ Le type d'événement est identifié par un numéro d'identification (ID) retourné dans le premier entier de la mémoire tampon des événements (le champ ##.type## de la structure ##EVENT##). Les ID de type d'événement connus - et leurs valeurs au moment de l'écriture - sont les suivants:
- - ##EVENT_KEY_PRESS## (##1##) A key was pressed on the keyboard. The ##.scancode## field contains the platform independent scancode value for the key; if the key has an ascii representation, it is held into the ##.ascii## field, which otherwise has a value of 0.
- - ##EVENT_KEY_RELEASE## (##2##) A key was released on the keyboard. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- - ##EVENT_KEY_REPEAT## (##3##) A key is being held down repeatedly. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- - ##EVENT_MOUSE_MOVE## (##4##) The mouse was moved while it was on the program window. The ##.x## and ##.y## fields contain the new mouse position relative to the upper-left corner of the screen, while the ##.dx## and ##.dy## fields contain the motion deltas.
- - ##EVENT_MOUSE_BUTTON_PRESS## (##5##) One of the mouse buttons was pressed. The ##.button## field has one bit set identifying the button that was pressed; bit 0 identifies the left mouse button, bit 1 the right mouse button and bit 2 the middle mouse button.
- - ##EVENT_MOUSE_BUTTON_RELEASE## (##6##) One of the mouse buttons was released. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- - ##EVENT_MOUSE_DOUBLE_CLICK## (##7##) One of the mouse buttons was double clicked. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- - ##EVENT_MOUSE_WHEEL## (##8##) The mouse wheel was used; the new wheel position is returned into the ##.z## field.
- - ##EVENT_MOUSE_ENTER## (##9##) The mouse was moved into the program window.
- - ##EVENT_MOUSE_EXIT## (##10##) The mouse was moved out of the program window.
- - ##EVENT_WINDOW_GOT_FOCUS## (##11##) The program window has got focus.
- - ##EVENT_WINDOW_LOST_FOCUS## (##12##) The program window has lost focus.
- - ##EVENT_WINDOW_CLOSE## (##13##) The user attempted to close the program window.
- - ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field. (Note: currently implemented on Windows only)
+ - ##EVENT_KEY_PRESS## (##1##) Une touche du clavier a été appuyée. Le champ ##.scancode## contient la valeur du "scancode" indépendante de la plate-forme pour la touche; si la touche a une représentation ascii, elle est stockée dans le champ ##.ascii##, qui sinon a une valeur de 0.
+ - ##EVENT_KEY_RELEASE## (##2##) Une touche du clavier a été relachée. Les champs ##.scancode## et ##.ascii## ont la même signification que pour l'événement ##EVENT_KEY_PRESS##.
+ - ##EVENT_KEY_REPEAT## (##3##) Une touche est appuyée répétitivement. Les champs ##.scancode## et ##.ascii## ont la même signification que pour l'événement ##EVENT_KEY_PRESS##.
+ - ##EVENT_MOUSE_MOVE## (##4##) La souris a été déplacée alors qu'elle était sur la fenêtre du programme. Les champs ##.x## et ##.y## contiennent la nouvelle position de la souris par rapport au coin supérieur gauche de l'écran, tandis que les champs ##.dx## et ##.dy## contiennent les valeurs (deltas) des déplacements.
+ - ##EVENT_MOUSE_BUTTON_PRESS## (##5##) L'un des boutons de la souris a été appuyé. Le champ ##.button## voit un de ses bits passer à 1, identifiant ainsi le bouton appuyé; le bit 0 identifie le bouton gauche de la souris, le bit 1 le bouton droit et le bit 2 le bouton du milieu.
+ - ##EVENT_MOUSE_BUTTON_RELEASE## (##6##) L'un des boutons de la souris a été relaché. Le champ ##.button## a la même signification que pour l'événement ##EVENT_MOUSE_BUTTON_PRESS##.
+ - ##EVENT_MOUSE_DOUBLE_CLICK## (##7##) L'un des boutons de la souris a été double-cliqué. Le champ ##.button## a la même signification que pour l'événement ##EVENT_MOUSE_BUTTON_PRESS##.
+ - ##EVENT_MOUSE_WHEEL## (##8##) La molette de la souris a été utilisée; la nouvelle position de la molette est retournée dans le champ ##.z##.
+ - ##EVENT_MOUSE_ENTER## (##9##) La souris a été déplacée dans la fenêtre du programme.
+ - ##EVENT_MOUSE_EXIT## (##10##) La souris a été déplacée en dehors de la fenêtre du programme.
+ - ##EVENT_WINDOW_GOT_FOCUS## (##11##) La fenêtre du programme a eu le "focus" (le curseur est sur la fenêtre)
+ - ##EVENT_WINDOW_LOST_FOCUS## (##12##) La fenêtre du programme a perdu le "focus" (le curseur est sorti de la fenêtre)
+ - ##EVENT_WINDOW_CLOSE## (##13##) L'utilisateur a tenté de fermer la fenêtre du programme.
+ - ##EVENT_MOUSE_HWHEEL## (##14##) La molette horizontale de la souris a été utilisée; la nouvelle position horizontale de la molette est stockée dans le champ ##.w##. (Note: actuellement mis en oeuvre uniquement sous Windows)
+Le fichier en-tête ##fbgfx.bi## contient une définition du type de donnée utilisateur ##EVENT##.
-The ##fbgfx.bi## header file contains a definition of the ##EVENT## user data type.
-
{{fbdoc item="lang"}}
- - In //[[CompilerDialects lang fb]]//, the structure and constants are stored in the ##FB## ##[[KeyPgNamespace Namespace]]##.
-
+ - Dans //[[CompilerDialects lang fb]]//, la structure et les constantes sont stockées dans le ##[[KeyPgNamespace Namespace]]## ##FB##.
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+{{fbdoc item="section" value="Différences pour QB
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgScreenEvent ScreenEvent]]##
diff --git a/fbdocs/manual/cache/KeyPgExec.wakka b/fbdocs/manual/cache/KeyPgExec.wakka
index 926ac43885..51a4d1b81c 100644
--- a/fbdocs/manual/cache/KeyPgExec.wakka
+++ b/fbdocs/manual/cache/KeyPgExec.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="EXEC"}}----
-Temporarily transfers execution to an external program
+Transfère temporairement l'exécution à un programme externe
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub function]] **Exec** ( [[KeyPgByref byref]] //program// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByref byref]] //arguments// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,15 +9,15 @@ Temporarily transfers execution to an external program
##
{{fbdoc item="param"}}
##//program//##
- The file name (including file path) of the program (executable) to transfer control to.
+ Le nom de fichier (avec le chemin du fichier) du programme (exécutable) auquel on transfère le contrôle.
##//arguments//##
- The command-line arguments to be passed to the program.
+ Les arguments de la ligne de commande à passer au programme.
-{{fbdoc item="ret"}}
- The exit status of the program, or negative one (-1) if the program could not be executed.
+{{fbdoc item="section" value="Valeur retournée
+ L'état de sortie du programme, ou une valeur negative (-1) si le programme ne peut pas être exécuté.
{{fbdoc item="desc"}}
- Transfers control over to an external program. When the program exits, execution resumes immediately after the call to ##**Exec**##.
+ Transfère le contrôle à un programme externe. Lorsque le programme se termine, l'exécution reprend immédiatement après l'appel à ##**Exec**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/exec.bas"}}%%(freebasic)
@@ -33,19 +33,19 @@ ELSE
END IF
%%
{{fbdoc item="target"}}
- - Linux requires the //program// case matches the real name of the file. Windows and DOS are case insensitive. The program being executed may be case sensitive for its command line parameters.
- - Path separators in Linux are forward slashes / . Windows uses backward slashes \ but it allows for forward slashes . DOS uses backward \ slashes.
- - Exit code is limited to 8 bits in DOS.
+ - Linux nécessite que la casse de //program// corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse. Le programme en cours d'exécution peut être sensible à la casse pour ses paramètres de ligne de commande.
+ - Les séparateurs de chemin de Linux sont des barres obliques /. Windows utilise des barres obliques vers l'arrière \ mais il admet des barres obliques . DOS utilise des barres obliques en arrière \.
+ - Le code de sortie est limité à 8 bits sous DOS.
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Exec""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Exec**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgChain Chain]]## transfer temporarily, without arguments
- - ##[[KeyPgRun Run]]## one-way transfer
- - ##[[KeyPgCommand Command]]## pick arguments
+ - ##[[KeyPgChain Chain]]## transfère temporairement, sans argument
+ - ##[[KeyPgRun Run]]## transfert une-voie
+ - ##[[KeyPgCommand Command]]## chercher des arguments
{{fbdoc item="back" value="CatPgOpsys|Operating System Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgExepath.wakka b/fbdocs/manual/cache/KeyPgExepath.wakka
index 2a1ab869dc..a653a0127f 100644
--- a/fbdocs/manual/cache/KeyPgExepath.wakka
+++ b/fbdocs/manual/cache/KeyPgExepath.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="EXEPATH"}}----
-Returns the path of the running program
+Retourne le chemin du programme en cours
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Exepath** ( ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -7,11 +7,11 @@ Returns the path of the running program
{{fbdoc item="usage"}}##
//result// = **Exepath**
##
-{{fbdoc item="ret"}}
- A ##[[KeyPgString string]]## variable set to the path of the running program.
+{{fbdoc item="section" value="Valeur retournée
+ Une variable ##[[KeyPgString String]]## contenant le chemin du programme en cours.
{{fbdoc item="desc"}}
- Returns the path (the location) of the calling program. This is not necessarily the same as ##[[KeyPgCurdir Curdir]]##.
+ Renvoie le chemin (l'emplacement) du programme appelant. Ce n'est pas nécessairement le même que ##[[KeyPgCurdir CurDir]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/exepath.bas"}}%%(freebasic)
@@ -21,10 +21,10 @@ Print "This program's initial directory is: " & pathname
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Exepath""**##.
+ Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Exepath**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgCurdir Curdir]]##
diff --git a/fbdocs/manual/cache/KeyPgExit.wakka b/fbdocs/manual/cache/KeyPgExit.wakka
index dc882bf7ca..58ef2d0af9 100644
--- a/fbdocs/manual/cache/KeyPgExit.wakka
+++ b/fbdocs/manual/cache/KeyPgExit.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="EXIT"}}----
-Control flow statement to exit a compound statement block
+Déclaration de contrôle de flux pour sortir d'un bloc composé d'instructions
{{fbdoc item="syntax"}}##
**Exit** {[[KeyPgDoloop Do]] | [[KeyPgFornext For]] | [[KeyPgWhilewend While]] | [[KeyPgSelectcase Select]] }
@@ -12,10 +12,10 @@ Control flow statement to exit a compound statement block
##
{{fbdoc item="desc"}}
- Leaves a code block such as a ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgDoloop Do...Loop]]##, ##[[KeyPgFornext For...Next]]##, ##[[KeyPgWhilewend While...Wend]]##, or a ##[[KeyPgSelectcase Select Case]]## block. The execution skips the rest of the block and goes to the line after its end.
+ Quitte un bloc de code comme ##[[KeyPgSub Sub]]##, ##[[KeyPgFunction Function]]##, ##[[KeyPgDoloop Do...Loop]]##, ##[[KeyPgFornext For...Next]]##, ##[[KeyPgWhilewend While...Wend]]##, ou ##[[KeyPgSelectcase Select Case]]##. L'exécution ignore le reste du bloc et continue sur la ligne après sa fin.
- Where there are multiple ##[[KeyPgDoloop Do]]## / ##[[KeyPgFornext For]]## / ##[[KeyPgWhilewend While]]## / ##[[KeyPgSelectcase Select]]## blocks nested, it will skip to the end of the innermost block of that type. You can skip to the end of multiple blocks of that type by giving the word multiple times, separated by commas.
- For example: ##**Exit While, While**##
+ Là où il y a plusieurs blocs ##[[KeyPgDoloop Do]]## / ##[[KeyPgFornext For]]## / ##[[KeyPgWhilewend While]]## / ##[[KeyPgSelectcase Select]]## imbriqués, **exit** fera passer à la fin du bloc de ce type, le plus intérieur. Vous pouvez aller directement à la fin de plusieurs blocs du même type en donnant en même temps plusieurs mots, séparés par des virgules.
+ Par exemple: ##**Exit While, While**##
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/exit.bas"}}%%(freebasic)
@@ -43,7 +43,7 @@ Next i
%%
{{fbdoc item="diff"}}
- - EXIT WHILE and EXIT SELECT are new to ""FreeBASIC"".
+ - EXIT WHILE et EXIT SELECT sont nouveaux pour FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgSub Sub]]##
@@ -53,5 +53,4 @@ Next i
- ##[[KeyPgWhilewend While...Wend]]##
- ##[[KeyPgContinue Continue]]##
-{{fbdoc item="back" value="CatPgControlFlow|Control Flow"}}
-
+{{fbdoc item="back" value="CatPgControlFlow|Control Flow"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgExp.wakka b/fbdocs/manual/cache/KeyPgExp.wakka
index 30f0eff206..74ed808dbb 100644
--- a/fbdocs/manual/cache/KeyPgExp.wakka
+++ b/fbdocs/manual/cache/KeyPgExp.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="EXP"}}----
-Returns //**e**// raised to the power of a given number
+Retourne //**e**// élevé à la puissance d'un nombre donné
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Exp** [[KeyPgCdecl cdecl]] ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,13 +9,13 @@ Returns //**e**// raised to the power of a given number
##
{{fbdoc item="param"}}
##//number//##
- The ##[[KeyPgDouble double]]## ##//number//## that e is raised to the power of.
+ Le nombre ##[[KeyPgDouble Double]]## ##//number//## qui est l'exposant de la puissace à laquelle //**e**// est élevé.
-{{fbdoc item="ret"}}
- Returns the [[KeyPgDouble Double]] value of //e// raised to power of ##//number//##.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie la valeur [[KeyPgDouble Double]] qui correspond à //**e**// élevé à la puissance ##//number//##.
{{fbdoc item="desc"}}
- The mathematical constant //e//, also called Euler's constant, is the base of the ##Exp## and ##[[KeyPgLog Log]]## and is an irrational and transcendental number. The value of //e// to twenty places is: 2.7182818284590452354. The required ##//number//## argument can be any valid numeric expression within range of the function. If ##//number//## is too large, FreeBASIC returns infinity. If ##//number//## is too small, FreeBASIC returns zero. The exact limit on ##//number//## is based on the math processor. If ##//number//## is an uninitialized variable, 1 is returned.
+ La constante mathématique //**e**//, aussi appelée la constante d'Euler, est la base de ##**Exp**## et ##[[KeyPgLog Log]]## et est un nombre irrationnel et transcendant. La valeur de //**e**// sur 20 chiffres est: 2.7182818284590452354. L'argument obligatoire ##//number//## est n'importe quelle valeur numérique valide dans l'intervalle de valeurs de la fonction. Si ##//number//## est trop grand, FreeBASIC retourne une valeur infinie. Si ##//number//## est trop petit, FreeBASIC retourne zéro. Les limites exactes de ##//number//## dépendent du processeur. Si ##//number//## est une variable non initialisée, 1 est renvoyé.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/math/exp.bas"}}%%(freebasic)
@@ -34,7 +34,7 @@ PRINT ""
PRINT "After";t;" years, at an interest rate of"; r * 100; "%, your initial investment of"; p; " would be worth";a
%%
-The output would look like:
+Affichera:
%%
Please enter the initial investment (principal amount): 100
Please enter the annual interest rate (As a decimal): .08
@@ -43,7 +43,7 @@ After 20 years, at an interest rate of 8%, your initial investment of 100 would
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgLog Log]]##
diff --git a/fbdocs/manual/cache/KeyPgExport.wakka b/fbdocs/manual/cache/KeyPgExport.wakka
index 86b652498b..98bcc1dab0 100644
--- a/fbdocs/manual/cache/KeyPgExport.wakka
+++ b/fbdocs/manual/cache/KeyPgExport.wakka
@@ -1,58 +1,27 @@
{{fbdoc item="title" value="EXPORT"}}----
-Declaration specifier to indicate that a procedure in a DLL should be visible from other programs
+Spécificateur de déclaration qui indique qu'une procédure dans une DLL doit être visible à partir d'autres programmes
{{fbdoc item="syntax"}}##
{ [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// ( //argumentlist// ) [ [[KeyPgAs as]] [[DataType datatype]] ] **Export**
##
{{fbdoc item="desc"}}
- If a function is declared with this clause in a DLL, it is added to the public export table, so external programs can dynamically link to it using [[KeyPgDylibsymbol Dylibsymbol]].
+ Si une fonction est déclarée avec cette clause dans une DLL, elle est ajoutée à la table des exportations publiques, afin que les programmes externes puissent être liés dynamiquement à elle en utilisant [[KeyPgDylibsymbol DyLibSymbol]].
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/module/mydll.bas"}}%%(freebasic)
-'' mydll.dll
+ %%(freebasic)
-'' in the DLL the function must be declared as export
+'' mydll.dll
+ '' in the DLL the function must be declared as export
Function AddNumbers Alias "AddNumbers" _
- ( _
- ByVal operand1 As Integer, ByVal operand2 As Integer _
- ) As Integer Export
-
- AddNumbers = operand1 + operand2
-
-End Function
-%%
-
-{{fbdoc item="filename" value="examples/manual/module/export.bas"}}%%(freebasic)
-'' create a function pointer, arguments must be the same type
-'' as in the original function
-
-Dim AddNumbers As Function ( ByVal As Integer, ByVal As Integer ) As Integer
-Dim hndl As Any Ptr
-
-hndl=DyLibLoad("mydll.dll")
-
-'' find the proc address (case matters!)
-AddNumbers = DyLibSymbol( hndl, "AddNumbers" )
-
-'' then call it ...
-Print "1 + 2 = " & AddNumbers( 1, 2 )
-
-Sleep
-%%
-
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Export""**##.
-
-{{fbdoc item="target"}}
- - Dynamic link libraries are not available in DOS, as the OS doesn't support them.
+ ( _
-{{fbdoc item="diff"}}
- - New to Freebasic
+ByVal operand1 As Integer, ByVal operand2 As Integer _
+ ) As Integer Export
-{{fbdoc item="see"}}
- - ##[[KeyPgDylibload Dylibload]]##
- - ##[[KeyPgDylibsymbol Dylibsymbol]]##
- - ##[[KeyPgAlias Alias]]##
+AddNumbers = operand1 + operand2
+ End Function
+ %%
+ %%(freebasic)
-{{fbdoc item="back" value="CatPgModularizing|Modularizing"}}{{fbdoc item="back" value="CatPgProcedures|Procedures"}}
\ No newline at end of file
+'' create a function pointer, arguments must be the same type
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgExtern.wakka b/fbdocs/manual/cache/KeyPgExtern.wakka
index ec54e30217..f33f1d8dbd 100644
--- a/fbdocs/manual/cache/KeyPgExtern.wakka
+++ b/fbdocs/manual/cache/KeyPgExtern.wakka
@@ -1,21 +1,21 @@
{{fbdoc item="title" value="EXTERN"}}----
-Declares a variable, array or object having external linkage
+Déclare une variable, un tableau ou un objet ayant une liaison externe
{{fbdoc item="syntax"}}##
**Extern** [ [[KeyPgImport Import]] ] //symbolname//[ (//subscripts//) ] [ [[KeyPgAlias Alias]] "//aliasname//" ] [[KeyPgAs as]] //[[DataType DataType]]// [, ...]
##
{{fbdoc item="param"}}
##//symbolname//##
- The name of the variable, array or object.
+ Le nom de la variable, du tableau ou de l'objet.
##//aliasname//##
- An alternate external name for the variable, array or object.
+ Un autre nom externe pour la variable, le tableau ou l'objet.
{{fbdoc item="desc"}}
- Declares ##//symbolname//## as an external name, meaning it is global to external modules. ##**Extern**## only declares variables, arrays and objects, and does not define them (different from ##[[KeyPgCommon Common]]## or ##[[KeyPgDim Dim]]##). It also has the effect of making ##//symbolname//## a //shared// name, meaning it is visible within procedures (see ##[[KeyPgShared Shared]]##).
+ Déclare ##//symbolname//## comme un nom externe, ce qui signifie qu'il est global pour des modules externes. ##**Extern**## déclare seulement des variables, tableaux et objets, et ne les définira pas (différent de ##[[KeyPgCommon Common]]## ou ##[[KeyPgDim Dim]]##). Cela a aussi pour effet de faire de ##//symbolname//## un nom //shared//, ce qui signifie visible dans les procédures (voir ##[[KeyPgShared Shared]]##).
- If ##[[KeyPgAlias Alias]]## is used, ##//aliasname//## will be used as the external name rather than ##//symbolname//##, and its case will be preserved.
+ Si ##[[KeyPgAlias Alias]]## est utilisé, ##//aliasname//## sera utilisé comme le nom externe plutôt que ##//symbolname//## et sa casse sera préservée.
- If ##[[KeyPgImport Import]]## is used, the name will be added to the dynamic library import list so its address can be fixed at run-time.
+ Si ##[[KeyPgImport Import]]## est utilisé, le nom sera ajouté à la liste des bibliothèques dynamiques d'importation de sorte que son adresse ne peut être fixée lors de l'exécution.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/extern1.bas"}}%%(freebasic)
@@ -47,10 +47,10 @@ Output:
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgExternBlock Extern...End Extern]]##
diff --git a/fbdocs/manual/cache/KeyPgExternBlock.wakka b/fbdocs/manual/cache/KeyPgExternBlock.wakka
index cc23fd5585..abf1f68a3a 100644
--- a/fbdocs/manual/cache/KeyPgExternBlock.wakka
+++ b/fbdocs/manual/cache/KeyPgExternBlock.wakka
@@ -1,23 +1,23 @@
{{fbdoc item="title" value="EXTERN...END EXTERN"}}----
-Statement block to allow calling of functions compiled for specific languages or platforms.
+Bloc d'instructions permettant d'appeler des fonctions compilées pour des langages ou des plates-formes spécifiques.
{{fbdoc item="syntax"}}##
- **Extern { """C""" | """C++""" | """Windows""" | """Windows-MS""" }** [ **[[KeyPgLib Lib]]** "//libname//" ]
+ **Extern { "C" | "C++" | "Windows" | "Windows-MS" }** [ **[[KeyPgLib Lib]]** "//libname//" ]
//declarative statements//
**End Extern**
##
{{fbdoc item="desc"}}
- ##**Extern**## blocks provide default calling conventions for procedures and mandate a certain name decoration.
+ Les blocs ##**Extern**## fournissent par défaut des conventions d'appel pour les procédures et mandatent une certaine "name decoration".
- ##**Extern """C"""**## blocks provide a default ##[[KeyPgCdecl cdecl]]## calling convention to procedures, and also preserve the case of all names declared within them. The same effect can be achieved without the EXTERN block by using ##[[KeyPgCdecl cdecl]]## together with an ##[[KeyPgAlias alias]]## string containing the exact procedure name.
+ Les blocs ##**Extern "C"**## fournissent par défaut une convention d'appel ##[[KeyPgCdecl cdecl]]## pour les procédures et préservent aussi la casse de tous les noms déclarés dans celles-ci. Le même résultat peut être obtenu en utilisant ##[[KeyPgCdecl cdecl]]## en même temps qu'un ##[[KeyPgAlias Alias]]## chaîne contenant le nom exact de la procédure.
- ##**Extern """C++"""**## blocks are exactly like ##**Extern """C"""**## blocks but they also mangle the names declared within them in a way compatible to that of //g""++""-4.x//.
+ Les blocs ##**Extern "C++"**## sont exactement comme les blocs ##**Extern "C"**## mais ils transforment aussi les noms déclarés à l'intérieur d'une manière compatible avec celle de //g++-4.x//.
- ##**Extern """Windows"""**## blocks provide a default ##[[KeyPgStdcall Stdcall]]## calling convention to procedures, preserve the case of all names declared within them, and on the Windows platform, append an ##"@//N//"## suffix to procedure names, where ##//N//## is the total size in bytes of any procedure parameters. Similar to the ##**Extern """C"""**## block, the same effect can be achieved by using ##[[KeyPgStdcall stdcall]]## and ##[[KeyPgAlias alias]]##.
+ Les blocs ##**Extern "Windows"**## fournissent par défaut une convention d'appel ##[[KeyPgStdcall stdcall]]## pour les procédures, préservent la casse de tous les noms déclarés à l'intérieur de celles-ci et sur les plates-formes Windows, ajoutent un suffixe ##"@//N//"## aux noms des procédures, où ##//N//## est la taille totale en octets des paramètres de la procédure. Similaire au bloc ##**Extern "C"**##, le même effet est obtenu en utilisant ##[[KeyPgStdcall stdcall]]## et ##[[KeyPgAlias Alias]]##.
- ##**Extern """Windows-MS"""**## blocks are exactly like ##**Extern """Windows"""**## blocks but do not append the ##"@//N//"## suffix to procedure names on Windows.
+ Les blocs ##**Extern "Windows-MS"**## sont identiques aux blocs ##**Extern "Windows"**## mais n'ajoutent pas le suffixe ##"@//N//"## aux noms de procédure sur les plates-formes Windows.
- ##[[KeyPgLib Lib]] "//libname//"## can be used to specify a library which will be linked in as if ##[[KeyPgInclib #inclib "libname"]]## or ##[[CompilerOptl -l libname]]## had been used. Additionally, all procedure declarations inside the **Extern** block will use the specified ##[[KeyPgLib Lib]] "//libname//"## as if it was specified as part of their declarations (but it can still be overridden with an explicit ##[[KeyPgLib Lib]] "//libname//"##).
+ ##[[KeyPgLib Lib]] "//libname//"## peut être utilisé pour spécifier une librairie qui sera liée comme si on avait utilisé ##[[KeyPgInclib #Inclib "Libname"]]## ou ##[[CompilerOptl -l libname]]##. De plus, toutes les déclarations de procédures à l'intérieur du bloc **Extern** utiliseront ##[[KeyPgLib Lib]] "//libname//"## comme si cela avait été spécifié dans le cadre de leurs déclarations (mais cela peut être modifié par un ##[[KeyPgLib Lib]] "//libname//"## explicite.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/extern-block.bas"}}%%(freebasic)
@@ -48,13 +48,13 @@ end extern
%%
{{fbdoc item="lang"}}
- - ##**Extern**## blocks are only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ Les blocs ##**Extern**## sont disponibles seulement en dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="target"}}
- - On Linux, *BSD and DOS platforms, ##**Extern "Windows"**## blocks never append a ##"@//N//"## suffix to procedure names, and thus are equal to ##**Extern "Windows-MS"**##.
+ - Dans les plates-formes Linux, *BSD and DOS les blocs ##**Extern "Windows"**## n'ajoutent jamais le suffixe ##"@//N//"## aux noms des procédures et sont donc équivalents à ##**Extern "Windows-MS"**##.
{{fbdoc item="see"}}
- ##[[KeyPgCdecl Cdecl]]##
diff --git a/fbdocs/manual/cache/KeyPgField.wakka b/fbdocs/manual/cache/KeyPgField.wakka
index e1a21fae0e..6a44861ab3 100644
--- a/fbdocs/manual/cache/KeyPgField.wakka
+++ b/fbdocs/manual/cache/KeyPgField.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FIELD"}}----
-Specifies alignment.
+Spécifie l'alignement.
{{fbdoc item="syntax"}}##
[[KeyPgType Type]] //typename// **Field** = { 1 | 2 | 4 }
@@ -7,9 +7,9 @@ Specifies alignment.
End [[KeyPgType Type]]
##
{{fbdoc item="desc"}}
-~&//Note: The following information is likely incorrect, FB follows the GCC padding rules, which these next sentences do not describe. The source file symb-struct.bas of the compiler shows the exact method.//
+//Note: Les informations suivantes sont susceptibles d'être incorrectes, FB suit les règles de remplissage de GCC, que les phrases suivantes ne décrivent pas. Le fichier source symb-struct.bas du compilateur montre la méthode correcte.//
- A ##[[KeyPgType Type]]## variable has its fields aligned to the word length of the system, 4 bytes presently. ##**Field**## modifies the default alignment to one byte (##**Field**## 1) or two bytes (##**Field**## 2). This helps ""FreeBASIC"" maintain compatibility with structures created in other languages.
+ Une variable ##[[KeyPgType Type]]## a ses champs alignés sur la longueur d'un mot dans le système, 4 octets présentement. ##**Field**## modifie l'alignement par défaut à 1 octet (##**Field**## 1) ou 2 octets (##**Field**## 2). Ceci pour aider FreeBASIC à maintenir la compatibilité avec des structures crées dans les autres langages.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/field.bas"}}%%(freebasic)
@@ -49,10 +49,10 @@ sleep
%%
{{fbdoc item="lang"}}
- -In the //[[CompilerOptlang -lang qb]]// dialect, the ##**Field**## alignment is always one, no padding is ever done, as in QB.
+ Dans le dialecte //[[CompilerOptlang -lang qb]]//, l'alignement ##**Field**## est toujours de 1, jamais de remplissage, comme dans QB.
{{fbdoc item="diff"}}
- - In QB ##**Field**## was used to define fields in a file buffer at run time. This feature is not implemented in FB, so the keyword has been redefined. To define fields in a file buffer, ##**[[KeyPgType Type]]s**## must be used.
+ - Dans QB, ##**Field**## est utilisé pour définir les champs dans un tampon fichier au démarrage. Cette fonctionnalité n'est pas implémentée dans FB, de sorte que le mot-clé a été redéfini. Pour définir des champs dans un tampon de fichier, il faut utiliser ##**[[KeyPgType Type]]**## plusieurs fois.
{{fbdoc item="see"}}
- ##[[KeyPgType Type]]##
diff --git a/fbdocs/manual/cache/KeyPgFileattr.wakka b/fbdocs/manual/cache/KeyPgFileattr.wakka
index 5e894b6446..beab6eb1b7 100644
--- a/fbdocs/manual/cache/KeyPgFileattr.wakka
+++ b/fbdocs/manual/cache/KeyPgFileattr.wakka
@@ -1,42 +1,42 @@
{{fbdoc item="title" value="FILEATTR"}}----
-Returns information about an open file number
+Retourne des informations sur un numéro de fichier ouvert
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""FileAttr""** ( [[KeyPgByval byval]] //filenum// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //returntype// [[KeyPgAs as]] [[KeyPgInteger integer]] = 1 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **FileAttr** ( [[KeyPgByval ByVal]] //filenum// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //returntype// [[KeyPgAs As]] [[KeyPgInteger Integer]] = 1 ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "file.bi"
- //result// = **""FileAttr""**( //filenum//, [ //returntype// ] )
+ //result// = **FileAttr**( //filenum//, [ //returntype// ] )
##
-//or//
+//ou//
##
#include "vbcompat.bi"
- //result// = **""FileAttr""**( //filenum//, [ //returntype// ] )
+ //result// = **FileAttr**( //filenum//, [ //returntype// ] )
##
{{fbdoc item="param"}}
##//filenum//##
- The file number of a file or device opened with ##[[KeyPgOpen Open]]##
+ Le numéro de fichier ou périphérique ouvert avec ##[[KeyPgOpen Open]]##
##//returntype//##
- An ##[[KeyPgInteger integer]]## indicating the type of information to return.
+ Un nombre ##[[KeyPgInteger Integer (Entier)]]## indiquant le type d'information à renvoyer.
-{{fbdoc item="ret"}}
- A value associated with the return type, otherwise 0 on error.
+{{fbdoc item="section" value="Valeur retournée
+ Une valeur associée au type de retour, sinon 0 en cas d'erreur.
{{fbdoc item="desc"}}
- Information about the file number is returned based on the supplied ##//returntype//##
- {{table columns="3" cellpadding="1" cells="Value;Description;constant;1;File Mode;fbFileAttrMode;2;File Handle;fbFileAttrHandle;3;Encoding;fbFileAttrEncoding"}}
+ Information sur le numéro de fichier est retourné sur la base du ##//returntype//## fourni
+ {{table columns="" cellpadding="2" cells="Valeur;Description;constante;1;File Mode;fbFileAttrMode;2;File Handle;fbFileAttrHandle;3;Encoding;fbFileAttrEncoding;
- For File Mode, ##//returntype//## = 1 (##fbFileAttrMode##) the return value is the sum of one or more of the following values:
- {{table columns="3" cellpadding="1" cells="Value;File Mode;Constant;1;Input;fbFileModeInput;2;Output;fbFileModeOutput;4;Random;fbFileModeRandom;8;Append;fbFileModeAppend;32;Binary;fbFileModeBinary"}}
+ Pour "File Mode", ##//returntype//## = 1 (##fbFileAttrMode##) la valeur retournée est la somme d'une ou plusieurs des valeurs suivantes:
+ {{table columns="" cellpadding="2" cells="Valeur;Mode fichier;Constante;1;Input;fbFileModeInput;2;Output;fbFileModeOutput;4;Random;fbFileModeRandom;8;Append;fbFileModeAppend;32;Binary;fbFileModeBinary;
- For File Handle, ##//returntype//## = 2 (##fbFileAttrHandle##), the return value is the file handle as supplied by the C Runtime for file-type devices.
+ Pour "File Handle", ##//returntype//## = 2 (##fbFileAttrHandle##), la valeur de retour est le descripteur de fichier fourni par le "C Runtime" pour les dispositifs de type de fichier.
- On Windows only: For File Handle, ##//returntype//## = 2 (##fbFileAttrHandle##), the value returned for COM devices is the handle returned by ##""CreateFile""()## when the device was first opened. The value returned for LPT devices is the handle returned by ##""OpenPrinter""()## when the device was first opened. This handle value can be passed to other Windows API functions.
+ Sous Windows seulement: Pour "File Handle", ##//returntype//## = 2 (##fbFileAttrHandle##), la valeur retournée pour les périphériques COM est le "handle" retourné par ##CreateFile()## quand le périphérique a été ouvert. La valeur retournée pour les périphériques LPT est le "handle" retourné par ##OpenPrinter()## quand le périphérique a été ouvert. Cette valeur "handle" peut être transmise à d'autres fonctions API de Windows.
- On Linux only: For File Handle, ##//returntype//## = 2 (##fbFileAttrHandle##), the value returned for COM devices is the file descriptor returned by open() when the device was first opened.
+ Sous Linux seulement: Pour "File Handle", ##//returntype//## = 2 (##fbFileAttrHandle##), la valeur retournée pour les périphériques COM est le descripteur de fichier retourné par open() quand le périphérique a été ouvert.
- For Encoding, ##//returntype//## = 3 (##fbFileAttrEncoding##), the return value is one of the following values:
- {{table columns="3" cellpadding="1" cells="Value;Encoding;Constant;0;Ascii;fbFileEncodASCII;1;UTF-8;fbFileEncodUTF8;2;UTF-16;fbFileEncodUTF16;3;UTF-32;fbFileEncodUTF32"}}
+ Pour Encoding, ##//returntype//## = 3 (##fbFileAttrEncoding##), la valeur de retour est l'une des valeurs suivantes:
+ {{table columns="" cellpadding="2" cells="Valeur;Encoding;Constante;0;Ascii;fbFileEncodASCII;1;UTF-8;fbFileEncodUTF8;2;UTF-16;fbFileEncodUTF16;3;UTF-32;fbFileEncodUTF32;
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/fileattr.bas"}}%%(freebasic)
@@ -66,9 +66,9 @@ close #1
%%
{{fbdoc item="diff"}}
- - None for ##//returntype//## = 1
- - QBasic and 16-bit Visual Basic returned DOS file handle for ##//returntype//## = 2
- - ##//returntype//## = 3 is new to ""FreeBASIC""
+ - Aucune pour ##//returntype//## = 1
+ - QBasic et Visual Basic 16-bit retourne le "handle" fichier DOS pour ##//returntype//## = 2
+ - ##//returntype//## = 3 nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgFilecopy.wakka b/fbdocs/manual/cache/KeyPgFilecopy.wakka
index 3da3d30b48..1b86970484 100644
--- a/fbdocs/manual/cache/KeyPgFilecopy.wakka
+++ b/fbdocs/manual/cache/KeyPgFilecopy.wakka
@@ -1,30 +1,30 @@
{{fbdoc item="title" value="FILECOPY"}}----
-Copies a file
+Copie un fichier
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""FileCopy""** ( [[KeyPgByval byval]] //source// [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]], [[KeyPgByval byval]] //destination// [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **FileCopy** ( [[KeyPgByval ByVal]] //source// [[KeyPgAs As]] [[KeyPgZstring ZString]] [[KeyPgPtr Ptr]], [[KeyPgByval ByVal]] //destination// [[KeyPgAs As]] [[KeyPgZstring ZString]] [[KeyPgPtr Ptr]] ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "file.bi"
- **""FileCopy""** //source//, //destination//
+ **FileCopy** //source//, //destination//
##
-//or//
+//ou//
##
#include "file.bi"
- //result// = **""FileCopy""**( //source//, //destination// )
+ //result// = **FileCopy**( //source//, //destination// )
##
{{fbdoc item="param"}}
##//source//##
- A ##[[KeyPgString string]]## argument specifying the filename of the file to copy from. This file must exist.
+ Un argument ##[[KeyPgString String (Chaîne)]]## spécifiant le nom du fichier à partir duquel on copie. Ce fichier doit exister.
##//destination//##
- A ##[[KeyPgString string]]## argument specifying the filename of the file to copy to. This file will be overwritten if it exists. This file should not be currently referenced by any open file handles.
+ Un argument ##[[KeyPgString String (Chaîne)]]## spécifiant le nom du fichier vers lequel on copie. Ce fichier sera écrasé s'il existe. Ce fichier ne doit pas être actuellement référencé par un "handle" de fichier ouvert.
-{{fbdoc item="ret"}}
- Returns ##0## on success, or ##1## if an error occurred.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne ##0## si succès, ou ##1## en cas d'erreur.
{{fbdoc item="desc"}}
- Copies the contents of the source file into the destination file, overwriting the destination file if it already exists.
- It is necessary to ##[[KeyPgInclude #Include]]## either ##"file.bi"## or ##"vbcompat.bi"## in order to gain access to this function.
+ Copie le contenu du fichier source dans le fichier destination, écrasant le fichier destination s'il existe déjà.
+ Un ##[[KeyPgInclude #include]]## ##"file.bi"## ou ##"vbcompat.bi"## est nécessaire de façon à avoir accès à cette fonction.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/filecopy.bas"}}%%(freebasic)
@@ -33,12 +33,12 @@ FILECOPY "source.txt", "destination.txt"
%%
{{fbdoc item="target"}}
- - Linux requires the ##//filename//## case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes ##/##. Windows uses backward slashes ##\## but it allows forward slashes. DOS uses backward slashes ##\##.
+ - Linux nécessite que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques /. Windows utilise des barres obliques vers l'arrière \ mais il admet des barres obliques. DOS utilise des barres obliques en arrière \.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC"". Existed in Visual Basic.
+ - Nouveau pour FreeBASIC. Existait dans Visual Basic.
{{fbdoc item="see"}}
diff --git a/fbdocs/manual/cache/KeyPgFiledatetime.wakka b/fbdocs/manual/cache/KeyPgFiledatetime.wakka
index 0c0e3f674b..002d10546a 100644
--- a/fbdocs/manual/cache/KeyPgFiledatetime.wakka
+++ b/fbdocs/manual/cache/KeyPgFiledatetime.wakka
@@ -1,27 +1,27 @@
{{fbdoc item="title" value="FILEDATETIME"}}----
-Returns the last modified date and time of a file as [[ProPgDates Date Serial]]
+Retourne la dernière date et heure de modification d'un fichier sous forme de [[ProPgDates Date Serial]]
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""FileDateTime""** ( [[KeyPgByval byval]] //filename// [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **FileDateTime** ( [[KeyPgByval ByVal]] //filename// [[KeyPgAs As]] [[KeyPgZstring ZString]] [[KeyPgPtr Ptr]] ) [[KeyPgAs As]] [[KeyPgDouble Double]]
##
{{fbdoc item="usage"}}##
#include "file.bi"
- //result// = **""FileDateTime""**( //filename// )
+ //result// = **FileDateTime**( //filename// )
##
-//or//
+//ou//
##
#include "vbcompat.bi"
- //result// = **""FileDateTime""**( //filename// )
+ //result// = **FileDateTime**( //filename// )
##
{{fbdoc item="param"}}
##//filename//##
- Filename to retrieve date and time for.
+ Nom du fichier dont on récupère la date et l'heure.
-{{fbdoc item="ret"}}
- Returns a [[ProPgDates Date Serial]].
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une [[ProPgDates Date Serial]].
{{fbdoc item="desc"}}
- Returns the file's last modified date and time as [[ProPgDates Date Serial]].
+ Retourne la dernière date et heure de modification d'un fichier sous forme de [[ProPgDates Date Serial]].
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/filedatetime.bas"}}%%(freebasic)
@@ -48,12 +48,12 @@ end if
%%
{{fbdoc item="target"}}
- - Linux requires the ##//filename//## case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes ##/## . Windows uses backward slashes ##\## but it allows forward slashes. DOS uses backward slashes ##/##.
+ - Linux nécessite que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques /. Windows utilise des barres obliques vers l'arrière \ mais il admet des barres obliques. DOS utilise des barres obliques en arrière \.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgFileexists.wakka b/fbdocs/manual/cache/KeyPgFileexists.wakka
index 3b1f6673c0..7dd50a08b3 100644
--- a/fbdocs/manual/cache/KeyPgFileexists.wakka
+++ b/fbdocs/manual/cache/KeyPgFileexists.wakka
@@ -1,29 +1,29 @@
{{fbdoc item="title" value="FILEEXISTS"}}----
-Tests the existence of a file
+Teste l'existence d'un fichier
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""FileExists""** ( [[KeyPgByval byval]] //filename// [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **FileExists** ( [[KeyPgByval ByVal]] //filename// [[KeyPgAs As]] [[KeyPgZstring ZString]] [[KeyPgPtr Ptr]] ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "file.bi"
- //result// = **""FileExists""**( //filename// )
+ //result// = **FileExists**( //filename// )
##
-//or//
+//ou//
##
#include "vbcompat.bi"
- //result// = **""FileExists""**( //filename// )
+ //result// = **FileExists**( //filename// )
##
{{fbdoc item="param"}}
##//filename//##
- Filename to test for existence.
+ Nom du fichier dont on teste l'existence.
-{{fbdoc item="ret"}}
- Returns non-zero (##-1##) if the file exists, otherwise returns zero (##0##).
+{{fbdoc item="section" value="Valeur retournée
+ Retourne non-zéro (##-1##) si le fichier existe, autrement retourne zéro (##0##).
{{fbdoc item="desc"}}
- ##**""FileExists""**## tests for the existence of a file.
- Internally, it may issue an Open() and a Close() function, which may have consequences - eg, any existing ##[[KeyPgLock Lock]]##(s) on the file may be released.
- Depending on the exact requirements, alternative methods of checking for file existence may be to use the ##[[KeyPgDir Dir]]()## function (being careful of attributes and ensuring the path doesn't contain wildcards), or to try ##[[KeyPgOpen Open]]##ing the file and checking the return value for success.
+ ##**FileExists**## teste l'existence d'un fichier.
+ En interne, il peut y avoir émission d'un Open() et d'une fonction close(), qui peut avoir des conséquences - par exemple, tout ##[[KeyPgLock Lock]]## existant sur le fichier peut être libéré.
+ Selon les besoins exacts, une méthode alternative de vérifier l'existence des fichiers est d'utiliser la fonction ##[[KeyPgDir Dir]]()## (en faisant attention aux attributs et en s'assurant que le chemin ne contient pas jokers), ou d'essayer un ##[[KeyPgOpen Open]]## sur le fichier puis vérifier la valeur de retour et tester la réussite.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/fileexists.bas"}}%%(freebasic)
@@ -42,12 +42,12 @@ end if
%%
{{fbdoc item="target"}}
- - Linux requires the ##//filename//## case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes ##/##. Windows uses backward slashes ##\## but it allows for forward slashes. DOS uses backward ##\## slashes.
+ - Linux nécessite que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques ##/##. Windows utilise des barres obliques vers l'arrière ##\## mais il admet des barres obliques. DOS utilise des barres obliques en arrière ##\##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDir Dir]]##
diff --git a/fbdocs/manual/cache/KeyPgFilelen.wakka b/fbdocs/manual/cache/KeyPgFilelen.wakka
index eb74c16fd6..e73926e515 100644
--- a/fbdocs/manual/cache/KeyPgFilelen.wakka
+++ b/fbdocs/manual/cache/KeyPgFilelen.wakka
@@ -1,24 +1,24 @@
{{fbdoc item="title" value="FILELEN"}}----
-Finds the length of a file given its filename
+Trouve la longueur d'un fichier dont on a donné le nom
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""FileLen""** ( //filename// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **FileLen** ( //filename// [[KeyPgAs As]] [[KeyPgString String]] ) [[KeyPgAs As]] [[KeyPgLongint LongInt]]
##
{{fbdoc item="usage"}}##
#include "file.bi"
- //result// = **""FileLen""**(//filename//)
+ //result// = **FileLen**(//filename//)
##
-//or//
+//ou//
##
#include "vbcompat.bi"
- //result// = **""FileLen""**(//filename//)
+ //result// = **FileLen**(//filename//)
##
{{fbdoc item="param"}}
##//filename//##
- A ##[[KeyPgString string]]## argument specifying the filename of the file whose length to return.
+ Un argument ##[[KeyPgString String (Chaîne)]]## spécifiant le nom du fichier dont on veut retourner la longueur.
{{fbdoc item="desc"}}
- Returns the size in bytes of the file specified by //filename//.
+ Retourne la taille en octets du fichier spécifié par //filename//.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/filelen.bas"}}%%(freebasic)
@@ -28,11 +28,11 @@ length = FILELEN("file.txt")
%%
{{fbdoc item="target"}}
- - Linux requires the //filename// case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes / . Windows uses backward slashes \ but it allows for forward slashes . DOS uses backward \ slashes.
+ - Linux nécessite que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques /. Windows utilise des barres obliques vers l'arrière \ mais il admet des barres obliques . DOS utilise des barres obliques en arrière \.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC"". Existed in Visual Basic.
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgLof Lof]]##
diff --git a/fbdocs/manual/cache/KeyPgFix.wakka b/fbdocs/manual/cache/KeyPgFix.wakka
index c38587f725..5b3094d5f6 100644
--- a/fbdocs/manual/cache/KeyPgFix.wakka
+++ b/fbdocs/manual/cache/KeyPgFix.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FIX"}}----
-Returns the integer part of a number, rounding towards zero
+Retourne la partie entière d'un nombre, arrondi vers zéro
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Fix** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,17 +9,17 @@ Returns the integer part of a number, rounding towards zero
##
{{fbdoc item="param"}}
##//number//##
- the floating-point number to truncate
+ le nombre à virgule flottante à tronquer
-{{fbdoc item="ret"}}
- Returns the integer part of ##//number//##, rounding towards zero.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la partie entière de ##//number//##, arrondi vers zéro.
{{fbdoc item="desc"}}
- Equivalent to: ##[[KeyPgSgn Sgn]](//number//) * [[KeyPgInt Int]]([[KeyPgAbs Abs]](//number//))##. For example, ##**Fix**(1.3)## will return ##1.0##, and ##**Fix**(-4.9)## will return ##-4.0##.
+ Equivalent à: ##[[KeyPgSgn Sgn]](//number//) * [[KeyPgInt Int]]([[KeyPgAbs Abs]](//number//))##. Par exemple, ##**Fix**(1.3)## retournera ##1.0##, et ##**Fix**(-4.9)## retournera ##-4.0##.
- Note: this function is also equivalent to ##//number// - [[KeyPgFrac Frac]](//number//)##.
+ Note: cette fonction est également équivalente à ##//number// - [[KeyPgFrac Frac]](//number//)##.
- The ##**Fix**## unary ##[[KeyPgOperator operator]]## can be overloaded with user defined types.
+ L'##[[KeyPgOperator Operator]]## unaire ##**Fix**## peut être surchargé avec des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/math/fix.bas"}}%%(freebasic)
@@ -28,10 +28,10 @@ Print fix(-1.9) '' will print -1
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgInt Int]]##
diff --git a/fbdocs/manual/cache/KeyPgFlip.wakka b/fbdocs/manual/cache/KeyPgFlip.wakka
index 5d5853b5fb..3a713e37cd 100644
--- a/fbdocs/manual/cache/KeyPgFlip.wakka
+++ b/fbdocs/manual/cache/KeyPgFlip.wakka
@@ -1,15 +1,15 @@
-{{fbdoc item="title" value="FLIP"}}----
-Changes the current video display page
-
-{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgSub sub]] **Flip** ( [[KeyPgByval byval]] //frompage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //topage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )
-##
-{{fbdoc item="usage"}}##
- **Flip** [ //frompage// ] [, //topage// ]
-##
-{{fbdoc item="param"}}
- ##//frompage//##
- previous page
+{{fbdoc item="title" value="Flip"}}----
+Change la page courante de l'affichage vidéo
{{fbdoc item="syntax"}}##
[[KeyPgDeclare Declare]] [[KeyPgSub Sub]] **Flip** ( [[KeyPgByval ByVal]] //frompage// [[KeyPgAs As]] [[KeyPgInteger Integer]] = -1, [[KeyPgByval ByVal]] //topage// [[KeyPgAs As]] [[KeyPgInteger Integer]] = -1 )
##
+
+{{fbdoc item="usage"}}##
**Flip** [ //frompage// ] [, //topage// ]
##
+ {{fbdoc item="param"}}
##//frompage//##
page précédente
+##//topage//##
nouvelle page à afficher
+{{fbdoc item="desc"}}
En mode graphique normal, ##**Flip**## est un alias de ##[[KeyPgPcopy PCopy]]## et ##[[KeyPgScreencopy ScreenCopy]]##. Voir ##[[KeyPgScreencopy ScreenCopy]]## pour les détails.
En mode OpenGL, ##**Flip**## change la page "hardware" et affiche le contenu du "backbuffer". Il est recommandé d'appeler ##**Flip**## regulièrement en mode OpenGL, autrement votre application risque de devenir instable.
+ {{fbdoc item="ex"}}
%%(freebasic)
+ScreenRes 320, 240, 32, 2 'Valide ecran 320x240 en 32-bit couleur avec 2 pages video.
For n As Integer = 50 To 270
ScreenSet 2,1 'Valide la page travail a 2 et la page affichage a 1
Cls
Circle (n, 50),50 ,RGB(255,255,0) 'Dessine un cercle avec rayon de 50 pixels en jaune sur page 2
ScreenSet 1,1 'Valide la page travail a 1 et la page affichee a 1
ScreenSync 'Attend rafraichissement vertical
Flip 2,1 'Copie du cercle de page 2 vers page 1
Sleep 25
Next
Print "Now wasn't that neat!"
Print "Push any key."
Sleep
+##
+ {{fbdoc item="lang"}}
- Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Flip**##.
+ {{fbdoc item="diff"}}
- Nouveau pour FreeBASIC
##//topage//##
new page to display
@@ -25,12 +25,10 @@ ScreenRes 320, 240, 32, 2 'Sets up the screen to be 320x240 in 32-bit color w
for n as integer = 50 to 270
- ScreenSet 2,1 'Sets the working page to 2 and the displayed page to 1
+ ScreenSet 1,0 'Sets the working page to 1 and the displayed page to 0
Cls
- Circle (n, 50),50 ,rgb(255,255,0) 'Draws a circle with a 50 pixel radius in yellow on page 2
- ScreenSet 1,1 'Sets the working page to 1 and the displayed page to 1
- ScreenSync 'Waits for vertical refresh
- flip 2,1 'Copies our circle from page 2 to page 1
+ Circle (n, 50),50 ,rgb(255,255,0) 'Draws a circle with a 50 pixel radius in yellow on page 1
+ flip 1,0 'Copies our circle from page 1 to page 0
Sleep 25
next
diff --git a/fbdocs/manual/cache/KeyPgFor.wakka b/fbdocs/manual/cache/KeyPgFor.wakka
index ebd803a467..ea178daa8b 100644
--- a/fbdocs/manual/cache/KeyPgFor.wakka
+++ b/fbdocs/manual/cache/KeyPgFor.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="FOR"}}----
-Control flow statement, open statement clause, or operator depending on context.
+Déclaration de contrôle de flux, ouvre une clause de déclaration ou un opérateur selon le contexte.
{{fbdoc item="syntax"}}##
**For** //iterator// = //startvalue// To //endvalue// [ Step //increment// ]
-//or//
+//ou//
Open [ //device// ] "//filename//" **For** //filemode// As #handle
-//or//
+//ou//
declare operator **For** ( byref stp as [[DataType datatype]] )
##
{{fbdoc item="see"}}
diff --git a/fbdocs/manual/cache/KeyPgFormat.wakka b/fbdocs/manual/cache/KeyPgFormat.wakka
index 3ecc7902b2..1594cee05e 100644
--- a/fbdocs/manual/cache/KeyPgFormat.wakka
+++ b/fbdocs/manual/cache/KeyPgFormat.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FORMAT"}}----
-Formats a number in a specified format
+Formate un nombre dans un format spécifique
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //formatting_expression// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -10,28 +10,28 @@ Formats a number in a specified format
##
{{fbdoc item="param"}}
##//numerical_expression//##
- number to format
+ nombre à formater
##//formatting_expression//##
- formatting pattern pattern
+ expression de formatage
-{{fbdoc item="ret"}}
- ##**Format**## returns a string with the result of the numerical expression formatted as indicated in the formatting expression.
- The formatting expression is a string that can yield numeric or date-time values.
+{{fbdoc item="section" value="Valeur retournée
+ ##**Format**## retourne une chaîne avec le résultat de l'expression numérique formatée comme indiqué dans l'expression de formatage.
+ L'expression de formatage est une chaîne qui peut donner des valeurs numériques ou de date-heure.
{{fbdoc item="desc"}}
- To recover meaningful date-time values the numerical expression must be a date serial obtained from the appropriate functions.
- This function is part of ""FreeBASIC"", however it is not recognized by the compiler unless ##vbcompat.bi## is included.
+ Pour récupérer des valeurs significative de date-heure, l'expression numérique doit être une date sérielle obtenue à partir des fonctions appropriées.
+ Cette fonction fait partie de FreeBASIC, cependant pour être reconnue par le compilateur il faut inclure ##vbcompat.bi##.
- "Numeric Formats"
- {{table columns="2" cellpadding="1" cells="Symbol ; Description; Null string; General format (no formatting);0; Digit placeholder: If the number has fewer digits than there are zeros (on either side of the decimal) in the format expression, leading or trailing zeros are displayed. If there are more digits to the right of the decimal than zeros in the format, the number is rounded. If there are more digits to the left of the decimal than zeros in the format the digits are all displayed ; #; Digit placeholder: Follows the same rules as for the 0 digit except the leading or trailing zeros are not displayed;.; Placeholder for decimal point.If the format contains only #'s to the left of . then numbers smaller than 1 are begun with a decimal point.; % ; Percentage :The expression is multiplied by 100 and the % character is inserted.;,; Thousands separator. Two adjacent commas, or a comma immediately to the left of the decimal point location (whether there is a decimal specified or not) means 'Omit the three digits that fall between these commas, or between the comma and the decimal point, rounding as needed.' ; E- E+ e- e+ ;Scientific format: If a format contains one digit placeholder (0 or #) to the right of an E-, E+, e-, or e+, the number is displayed in scientific format and an E or e is inserted between the number and its exponent.The number of 0's or #'s to the right determines the number of digits in the exponent. Use E- or e- to place a minus sign next to negative exponents. Use a E+ or e+ to place a minus sign next to negative exponents and a plus sign next to positive exponents.; : ? + $ () space; Display literal character To display a character other than one of these, precede the character with a backslash (\) or enclose the character(s) in double quotation marks;\; Display next character in format string as it is ;text between double quotes; Displays the text inside the double quotes.; :; Time separator is used to separate hours, minutes, and seconds when time values are formatted.; /; The date separator is used to separate day,month, and year when date values are formatted."}}
+ "Formats numériques"
+ {{table columns="" cellpadding="2" cells="
Symbole ; Description; Chaîne Nulle; Format général (pas de formatage);0; Espace réservé de chiffre: Si le nombre contient moins de chiffres que de zéros (de chaque côté de la virgule) dans l'expression de formatage, des zéros seront affichés en tête ou à la fin. S'il y a davantage de chiffres à droite de la virgule que des zéros dans le format, le nombre est arrondi. S'il y a plus de chiffres à gauche de la virgule que de zéros dans le format, tous les chiffres sont affichés; #; Espace réservé de chiffre: Suit les mêmes règles que le chiffre 0 sauf que les zéros début / fin ne sont pas affichés;.; Espace réservé de chiffre pour le point decimal. Si le format ne contient que des # à la gauche du "." alors les nombres inférieurs à 1 commenceront avec un point décimal.; % ; Pourcentage : L'expression est multipliée par 100 et le caractère % est inséré.;,; Séparateur des milliers. Deux virgules adjacentes, ou une virgule immédiatement à la gauche de l'emplacement du point décimal (qu'il y ait un nombre décimal précisé ou non) signifie 'Omettre les trois chiffres qui se situent entre ces virgules, ou entre la virgule et le point décimal, arrondi si nécessaire." ; E- E+ e- e+ ;Format scientifique: Si un format contient un espace réservé de chiffre (0 or #) à droite d'un E-, E+, e-, or e+, le nombre est affiché au format scientifique et un E ou e est inséré entre le nombre et son exposant. Le nombre de 0 ou de # à droite détermine le nombre de chiffres de l'exposant. Utilisez E- ou e- E-ou e- pour placer un signe moins à côté des exposants négatifs. Utilisez un E+ ou e+ pour placer un signe moins à côté des exposants négatifs et un signe plus à côté des exposants positifs.; : ? + $ () space; Affichage de caractères littéraux. Pour afficher un caractère autre que l'un de ceux-ci, faites précéder le caractère d'une barre oblique inverse (\) ou mettez le(s) caractère(s) entre des guillemets doubles;\; Affichage caractère suivant dans le format de chaîne tel qu'il est ;Texte entre guillemets doubles; Affiche le texte à l'intérieur des guillemets doubles.; :; Séparateur de temps: est utilisé pour séparer les heures, minutes et secondes lorsque les valeurs de temps sont formatées.; /; Séparateur de date: utilisé pour séparer jour, mois et année quand les valeurs de date sont formatées.;
- "Date-Time formats:"
- {{table columns="2" cellpadding="1" cells="Symbol ; Description;d, dd; Display the day as a one-digit/two-digit number (1-31/01-31);ddd; Display the day as an abbreviation (Sun-Sat);dddd; Display the day as a full name (Sunday-Saturday);ddddd; Display a serial date number as a complete date (including day, month and year);m, mm; Display the month as a one-digit/two-digit number (1-12/01-12). If immediately following h or hh, the minute rather than the month is displayed;M, MM; Display the month as a one-digit/two-digit number (1-12/01-12), even if immediately following h or hh;mmm; Display the month as an abbreviation (Jan-Dec);mmmm; Display the month as a full name (January-December);y, yy; Display the year as a two-digit number (00-99);yyyy; Display the year as a four-digit number (1900-2040);h, hh; Display the hour as a one-digit/two-digit number (0-23/00-23);m, mm; Display the minute as a one-digit/two-digit number (0-59/00-59). If not immediately following h or hh, the month rather than the minute is displayed;n, nn; Display the minute as a one-digit/two-digit number (0-59/00-59), even if not immediately following h or hh;s, ss; Display the second as a one-digit/two-digit number (0-59/00-59);ttttt; Display a time serial number as a complete time, including hour, minute and second;AM/PM (Default), am/pm; Use the 12-hour clock displaying AM or am with any hour before noon, PM or pm with any hour between noon and 11:59;A/P, a/p; Use the 12-hour clock displaying A or a with any hour before noon, P or p with any hour between noon and 11:59 "}}
+ "Formats Date-Temps:"
+ {{table columns="" cellpadding="2" cells="
Symbole ; Description;d, dd; Affiche le jour sous la forme d'un nombre à un-chiffre/deux-chiffres (1-31/01-31);ddd; Affiche l' abréviation du jour (Lun-Sam);dddd; Affiche le nom complet du jour (Lundi-Samedi);ddddd; Affiche, la date complète (jour, mois, année) sous forme d'une série de nombres;m, mm; Affiche le mois sous forme d'un nombre un/deux chiffre(s) (1-12/01-12). S'il suit immédiatement h ou hh, les minutes sont affichées plutôt que le mois;M, MM; Affiche le mois sous forme d'un nombre un/deux chiffre(s) (1-12/01-12), même s'il suit de immédiatement h ou hh;mmm; Affiche le mois sous forme d'abréviation (Jan-Dec);mmmm; Affiche le nom complet du mois (Janvier-Décembre);y, yy; Affiche l'année avec un nombre de deux chiffres (00-99);yyyy; Affiche l'année sous la forme d'un nombre de 4 chiffres (1900-2040);h, hh; Affiche l'heure sous la forme d'un nombre de un/deux chiffre(s) (0-23/00-23);m, mm; Affiche les minutes sous la forme d'un nombre de un/deux chiffre(s) (0-59/00-59). Si ne suit pas immédiatement h ou hh, le mois est affiché plutôt que les minutes;n, nn; Affiche les minutes sous la forme d'un nombre un/deux chiffre(s) (0-59/00-59), même si n'est pas après h ou hh;s, ss; Affiche les secondes sous la forme d'un nombre un/deux chiffre(s) (0-59/00-59);ttttt; Affiche le temps complet sous forme de série de nombres, incluant heure(s), minute(s) et seconde(s);AM/PM (Par défaut), am/pm; Utilise l'horloge de 12 heures affichant "AM" ou "am" pour toute heure avant midi, "PM" ou "pm" avec n'importe quelle heure entre midi et 11:59;A/P, a/p; Utilise l'horloge de 12 heures affichant A ou un a pour toute heure avant midi, P ou p avec n'importe quelle heure entre midi et 11:59 ;
{{fbdoc item="ex"}}
%%
-Sample numeric formats
+Exemples de formats numériques
Format (fmt) 5 -5 .5
Null String 5 -5 0.5
@@ -45,9 +45,9 @@ Format (fmt) 5 -5 .5
0.00% 500.00% -500.00% 50.00%
0.00E+00 5.00E+00 -5.00E+00 5.00E-01
0.00E-00 5.00E00 -5.00E00 5.00E-01
- Sample Date And Time Formats
-The following are examples of Date And Time formats:
- Format Expression Display
+ Exemples de formats date et temps
+Les exemples ci-dessous concernent les formats date et temps:
+ Format de l'expression Affichage
m/d/yy 12/7/58
d-mmmm-yy 7-December-58
d-mmmm 7-December
@@ -56,14 +56,14 @@ The following are examples of Date And Time formats:
h:mm:ss AM/PM 8:50:35 PM
h:mm 20:50
h:mm:ss 20:50:35
- m/d/yy h:mm 12/7/58 20:50
+ m/d/yy h:mm 12/7/58 20:50
%%
{{fbdoc item="lang"}}
- None
+
Aucune
{{fbdoc item="diff"}}
- - Does not exist in QB 4.5. This function appeared first in PDS 7.1
+ - N'existe pas dans QB 4.5. Cette fonction est apparue en premier dans PDS 7.1
{{fbdoc item="see"}}
- ##[[KeyPgPrintusing Print Using]]##
diff --git a/fbdocs/manual/cache/KeyPgFornext.wakka b/fbdocs/manual/cache/KeyPgFornext.wakka
index 513013afb7..0c17765938 100644
--- a/fbdocs/manual/cache/KeyPgFornext.wakka
+++ b/fbdocs/manual/cache/KeyPgFornext.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FOR...NEXT"}}----
-Control flow statement for looping
+Déclaration de contrôle de flux pour boucler
{{fbdoc item="syntax"}}##
**For** //iterator// [ [[KeyPgAs as]] [[DataType datatype]] ] = //startvalue// **To** //endvalue// [ **Step** //stepvalue// ]
@@ -8,34 +8,34 @@ Control flow statement for looping
##
{{fbdoc item="param"}}
##//iterator//##
- a variable identifier that is used to iterate from an initial value to an end value
+ Une variable qui est utilisée pour effectuer une itération d'une valeur initiale à une valeur finale
##//datatype//##
- If specified, the variable ##//iterator//## will automatically be declared with the type ##//datatype//##.
+ Si spécifiée, la variable ##//iterator//## sera automatiquement déclarée avec le type ##//datatype//##.
##//startvalue//##
- an expression that denotes the starting value of the iterator
+ Une expression qui désigne la valeur de départ de l'itérateur
##//endvalue//##
- an expression used to compare with the value of the iterator
+ Une expression utilisée pour comparer avec la valeur de l'itérateur
##//stepvalue//##
- an expression that is added to the iterator after every iteration
+ Une expression qui est ajoutée à l'itérateur après chaque itération
{{fbdoc item="desc"}}
- A ##**For...Next**## loop initializes ##//iterator//## to ##//startvalue//##, then executes the ##//statement block//##'s, incrementing ##//iterator//## by ##//stepvalue//## until it reaches ##//endvalue//##. If ##//stepvalue//## is not explicitly given it will set to 1.
+ Une boucle ##**For...Next**## initialise l'##//iterator//## avec ##//startvalue//##, puis éxécute le ##//statement block = bloc d'instructions//##, incrémente ##//iterator//## de ##//stepvalue//## jusqu'à ce qu'il atteigne ##//endvalue//##. Si ##//stepvalue//## n'est pas précisé explicitement il sera fixé à 1.
- The values of ##//stepvalue//## and ##//endvalue//## are stored internally immediately following execution of the ##**For**## statement and thus neither can be changed inside the ##**For**## loop. (the variables that define them can be changed, but changing those variables inside the ##**for**## loop will not affect its execution. See examples)
+ Les valeurs de ##//stepvalue//## et ##//endvalue//## sont stockées en interne immédiatement après l'exécution de l'instruction ##**For**## et donc aucune ne peut être changée à l'intérieur de la boucle ##**For**##. (les variables qui les définissent peuvent être changées, mais en changeant ces variables à l'intérieur de la boucle ##**For**## n'affectera pas son exécution. (Voir les exemples)
- The ##//iterator//## may be defined having the same scope as the ##**For**## statement by using the ##[[KeyPgAs as]] [[DataType datatype]]## syntax. With this syntax, //iterator// is created and destroyed within the ##**For...Next**## scope. See dialect differences below.
+ L' ##//iterator//## peut être défini en ayant la même portée que la déclaration ##**For**## en utilisant la syntaxe de ##[[KeyPgAs As]] [[DataType datatype]]##. Avec cette syntaxe, //iterator// est créé et détruit dans la portée de ##**For...Next**##. Voir différences de dialecte ci-dessous.
- If ##//endvalue//## is less than ##//startvalue//## then a negative ##//stepvalue//## must be specified or the ##//statement block//## will not execute at all, since ##//startvalue//## compares greater than ##//endvalue//##.
+ Si ##//endvalue//## est inférieure à ##//startvalue//## alors une ##//stepvalue//## négative doit être précisée ou le ##//statement block//## ne s'exécutera pas du tout, puisque ##//startvalue//## est déjà supérieure à ##//endvalue//##.
- The ##**For**## statement causes the execution of the statements in the ##//statement block//## until ##//iterator//## compares **greater than** ##//endvalue//## (or **less than** ##//endvalue//## if ##//stepvalue// < 0##). ##//iterator//## will be incremented the amount of ##//stepvalue//## following each execution of the ##//statement block//##. If an increment is not given, ##//iterator//## will be implicitly incremented by ##1##.
+ La déclaration ##**For**## provoque l'exécution des instructions du ##//statement block//## tant qu'est effectuée la comparaison ##//iterator//## **plus grand que** ##//endvalue//## (ou **plus petit que** ##//endvalue//## si ##//stepvalue// < 0##). ##//iterator//## sera incrementé de la valeur de ##//stepvalue//## après chaque exécution du ##//statement block//##. Si Aucun incrément n'est donné, ##//iterator//## sera implicitement incrementé de ##1##.
- If an ##[[KeyPgExit Exit]]## ##**For**## statement is encountered inside the ##//statement block//##, the loop is terminated, and execution resumes immediately following the enclosing ##**Next**## statement. If a ##[[KeyPgContinue Continue]]## ##**For**## statement is encountered, the rest of the ##//statement block//## is skipped and execution resumes at the FOR statement.
+ Si un ##[[KeyPgExit Exit]]## ##**For**## est rencontré dans le ##//statement block//##, la boucle se termine et l'exécution reprend immédiatement après la déclaration suivant ##**Next**##. Si ##[[KeyPgContinue Continue]]## ##**For**## est rencontré, le reste du ##//statement block//## est sauté et l'exécution reprend à la déclaration FOR.
- Like all control flow statements, the ##**For**## statement can be nested, that is, it can be used in a statement block of another ##**For**## statement.
+ Comme toutes les déclarations de contrôle de flux, ##**For**## peut être imbriqué, ce qui signifie qu'il peut être utilisé dans un bloc d'instructions d'une autre déclaration ##**For**##.
- **note**: When a negative ##//stepvalue//## is specified, the ##**For**## statement loops until ##//iterator//## compares //less than// ##//end_value//##.
+ **Note**: Quand ##//stepvalue//## est négatif, ##**For**## boucle tant qu'est effectuée la comparaison ##//iterator//## //plus petit que// ##//end_value//##.
- ##//For//##, ##//Next//##, and ##//Step//## are operators that can be overloaded inside user defined types. See [[KeyPgOpFor Operator For]], [[KeyPgOpNext Operator Next]], [[KeyPgOpStep Operator Step]]
+ ##//For//##, ##//Next//## et ##//Step//## sont des opérateurs qui peuvent être surchargés dans des types définis par l'utilisateur. Voir [[KeyPgOpFor Opérateur For]], [[KeyPgOpNext Opérateur Next]], [[KeyPgOpStep Opérateur]]
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/for-next.bas"}}%%(freebasic)
@@ -71,11 +71,11 @@ loop
print%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, variables declared inside a FOR..NEXT loop have a function-wide [[ProPgVariableScope scope]] as in QB
- - In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang deprecated]]// dialects, variables declared inside a ##**For**##..##**Next**## block are visible only inside the block, and can't be accessed outside it.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, les variables déclarées dans une boucle FOR..NEXT ont une [[ProPgVariableScope portée]] à l'échelle de la fonction comme dans QB.
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang deprecated]]// les variables déclarées dans une boucle ##**For**##..##**Next**## ne sont visibles que dans le bloc et ne peuvent être utilisées en-dehors de lui.
{{fbdoc item="diff"}}
- - ##[[KeyPgByref Byref]]## arguments cannot be used as counters.
+ - Les arguments ##[[KeyPgByref ByRef]]## ne peuvent être utilisés comme compteurs.
{{fbdoc item="see"}}
- ##[[KeyPgContinue Continue]]##
diff --git a/fbdocs/manual/cache/KeyPgFrac.wakka b/fbdocs/manual/cache/KeyPgFrac.wakka
index 74d4edf1a5..5e39108071 100644
--- a/fbdocs/manual/cache/KeyPgFrac.wakka
+++ b/fbdocs/manual/cache/KeyPgFrac.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FRAC"}}----
-Returns the decimal part of a number
+Renvoie la partie décimale d'un nombre
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Frac** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,15 +9,15 @@ Returns the decimal part of a number
##
{{fbdoc item="param"}}
##//number//##
- the number or expression to get the fraction part of.
+ nombre ou expression dont on veut obtenir la partie décimale.
-{{fbdoc item="ret"}}
- Returns the fractional part of a number or expression.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la partie décimale d'un nombre ou d'une expression.
{{fbdoc item="desc"}}
- Equivalent to: ##(//number// - [[KeyPgFix Fix]](//number//))##.
+ Équivalent à: ##(//number// - [[KeyPgFix Fix]](//number//))##.
- The ##**Frac**## unary ##[[KeyPgOperator operator]]## can be overloaded with user defined types.
+ L'opérateur ##[[KeyPgOperator Operator]]## unaire ##**Frac**## peut être surchargé avec des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/math/frac.bas"}}%%(freebasic)
@@ -26,10 +26,10 @@ Print frac(-10.625) '' will print -0.625
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgFix Fix]]##
diff --git a/fbdocs/manual/cache/KeyPgFre.wakka b/fbdocs/manual/cache/KeyPgFre.wakka
index 19b418c598..9d606f04e6 100644
--- a/fbdocs/manual/cache/KeyPgFre.wakka
+++ b/fbdocs/manual/cache/KeyPgFre.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FRE"}}----
-Returns the amount of free memory available
+Renvoie la quantité de mémoire disponible
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Fre** ( [[KeyPgByval byval]] //value// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgUinteger uinteger]]
@@ -9,13 +9,13 @@ Returns the amount of free memory available
##
{{fbdoc item="param"}}
##//value//##
- Unused dummy parameter kept for backward compatibility; can be ignored.
+ Paramètre fictif inutilisé, maintenu pour la compatibilité descendante; peut être ignoré.
-{{fbdoc item="ret"}}
- Returns the amount of free memory, in bytes.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie la quantité de mémoire disponible, en octets.
{{fbdoc item="desc"}}
- Returns the free memory (ram) available, in bytes.
+ Renvoie la quantité de mémoire (ram) disponible, en octets.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/fre.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ Print mem \ (1024 * 1024); " megabytes"
%%
{{fbdoc item="diff"}}
- - The "value" argument is not checked, ##**Fre**## will always return the free physical memory available
+ - L'argument "value" n'est pas utilisée, ##**Fre**## retourne toujours la mémoire physique disponible
{{fbdoc item="see"}}
- ##[[KeyPgDim Dim]]##
diff --git a/fbdocs/manual/cache/KeyPgFreefile.wakka b/fbdocs/manual/cache/KeyPgFreefile.wakka
index aed7bffe9d..b647fddfb6 100644
--- a/fbdocs/manual/cache/KeyPgFreefile.wakka
+++ b/fbdocs/manual/cache/KeyPgFreefile.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FREEFILE"}}----
-Returns a free file number
+Retourne un numéro de fichier libre
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Freefile** ( ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -7,13 +7,13 @@ Returns a free file number
{{fbdoc item="usage"}}##
//result// = **Freefile**
##
-{{fbdoc item="ret"}}
- The next available file number, if any, otherwise zero (##0##).
+{{fbdoc item="section" value="Valeur retournée
+ Le premier numéro de fichier libre, s'il existe, sinon zéro (##0##).
{{fbdoc item="desc"}}
- Returns the number of the next free file number with valid values ##1## to ##255##, or ##0## if there are already 255 files opened. This value is a required argument to ##[[KeyPgOpen Open]]## a file. ##**Freefile**## is useful when opening files in complex programs where the programmer can't keep track of the used file numbers.
- Make sure to always close files when no longer needed, otherwise you will get a file number leak, and won't be able to open any files anymore after 255 filenumbers are exhausted while your program is running.
- ##**Freefile**## will always return the smallest free file number. The file number returned by ##**Freefile**## will not change until that file number is ##[[KeyPgOpen Open]]##ed, or until a smaller file number is ##[[KeyPgClose Close]]##d. For this reason, it is wise to use ##**Freefile**## immediately before its corresponding ##[[KeyPgOpen Open]]##, to ensure that the file number is not returned and opened elsewhere first.
+ Retourne le numéro de fichier libre suivant avec des valeurs valides de ##1## à ##255##, ou ##0## s'il y a déjà 255 fichiers ouverts. Cette valeur est un argument obligatoire de ##[[KeyPgOpen Open]]## un fichier. ##**FreeFile**## est utile lors de l'ouverture de fichiers dans des programmes complexes où le programmeur ne peut pas garder une trace des numéros de fichiers utilisés.
+ Assurez-vous de toujours fermer les fichiers lorsqu'ils ne sont plus nécessaires, sinon vous aurez une perte de numéros de fichiers, et vous ne serez pas en mesure d'ouvrir des fichiers dès que 255 numéros de fichiers seront utilisés pendant le fonctionnement de votre programme.
+ ##**FreeFile**## retourne toujours le numéro de fichier libre le plus prtit possible. Le numéro de fichier retourné par ##**FreeFile**## ne changera pas tant que le fichier correspondant reste ##[[KeyPgOpen ouvert (Open)]]##, ou jusqu'à ce qu'un fichier de numéros de fichier plus petit soit ##[[KeyPgClose fermé (Close)]]##. Pour cette raison, il est sage d'utiliser ##** FreeFile**##, immédiatement avant son ##[[KeyPgOpen Open]]## correspondant, afin de s'assurer que le numéro de fichier retourné n'a pas été ouvert ailleurs en premier.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/freefile.bas"}}%%(freebasic)
@@ -37,7 +37,7 @@ Close #f
End
%%
- When using multiple ##**Freefile**## statements, ##**Freefile**## should be used immediately before the ##[[KeyPgOpen Open]]## statement:
+ Lors de l'ouverture de plusieurs ##**FreeFile**##, ##**FreeFile**## doit être utilisé immédiatement avant ##[[KeyPgOpen Open]]##:
{{fbdoc item="filename" value="examples/manual/fileio/freefile-good.bas"}}%%(freebasic)
dim fr as integer, fs as integer
' The CORRECT way:
@@ -48,23 +48,23 @@ fs = FREEFILE
OPEN "File2" FOR INPUT AS #fs
%%
- As opposed to:
+ Par opposition à:
{{fbdoc item="filename" value="examples/manual/fileio/freefile-bad.bas"}}%%(freebasic)
dim fr as integer, fs as integer
' The WRONG way:
-fr = FREEFILE
-fs = FREEFILE '' fs has taken the same file number as fr
+Open "file1" For Input As #fr
+Open "file2" For Input As #fs '' error: file number already opened
OPEN "file1" FOR INPUT AS #fr
-OPEN "file2" FOR INPUT AS #fs '' error: file number already opened
+Open "file2" For Input As #fs
%%
{{fbdoc item="target"}}
- - On Windows, a file number used in a dynamic link library is not the same as an identical file number used in the main program. File numbers can not be passed or returned and then used between a DLL and an executable.
- - Besides ""FreeBASIC's"" limit of 255 files per program opened at same time, there is an OS limit of total amount of opened files, but usually you won't touch it except in DOS, where the limit may be as low as 15 files total.
+ - Sous Windows, un numéro de fichier utilisé dans une bibliothèque de liens dynamiques n'est pas identique à celui utilisé dans le programme principal. Les numéros de fichier ne peuvent être passés ou renvoyés, puis utilisés entre une DLL et un fichier exécutable.
+ - Outre la limite FreeBASIC de 255 fichiers ouverts en même temps par le programme, il y a une limite OS du nombre total de fichiers ouverts, mais généralement vous n'aurez pas le modifier, sauf dans le DOS, où la limite peut être très basse (15 fichiers au total).
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgFunction.wakka b/fbdocs/manual/cache/KeyPgFunction.wakka
index 0b76ae61d8..fd64ff4f10 100644
--- a/fbdocs/manual/cache/KeyPgFunction.wakka
+++ b/fbdocs/manual/cache/KeyPgFunction.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FUNCTION"}}----
-Defines a procedure returning a value
+Définit une procédure retournant une valeur
{{fbdoc item="syntax"}}##
[[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] **Function** //identifier// [[[KeyPgCdecl CDecl]]|[[KeyPgPascal Pascal]]|[[KeyPgStdcall StdCall]]] [[[KeyPgOverload Overload]]] [[[KeyPgAlias Alias]] //external_identifier//] [([//parameter_list//])] [[[KeyPgAs As]] //return_type//] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
@@ -10,134 +10,134 @@ Defines a procedure returning a value
[[KeyPgEndblock End]] Function
##
{{fbdoc item="param"}}
- ##//identifier//##: the name of the function
- ##//external_identifier//##: externally visible (to the linker) name enclosed in quotes
- ##//parameter_list//##: ##//parameter//[, //parameter//[, ...]]##
- ##//parameter//##: ##[[[KeyPgByref ByRef]]|[[KeyPgByval ByVal]]] //identifier// [[[KeyPgAs As]] //type//] [= //default_value//]##
- ##//identifier//##: the name of the variable referenced in the function. If the argument is an array then the identifier must be followed by an empty parenthesis.
- ##//type//##: the type of variable
- ##//default_value//##: the value of the argument if none is specified in the call
- ##//return_type//##: the type of variable returned by the function
- ##//statements//##: one or more statements that make up the function body
- ##//return_value//##: the value returned from the function
-
-{{fbdoc item="desc"}}
- A function defines a block of code which can be executed with a single statement (a function call), and provide a value back to the caller when finished (a return value). There are several reasons to use functions:
- - Reduces redundancy in your program
- - Enables reuse of code in many programs
- - Improves readability of the program
- - Improves maintainability of the program
- - Makes it easy to extend your program
-
- //Access Rights// : The ##[[KeyPgPublic Public]]## and ##[[KeyPgPrivate Private]]## keywords specify public or private intra module-level access rights, respectively. If neither is given, the function defaults to public access (##[[KeyPgPublic Public]]##).
+ ##//identifier//##
+ le nom de la fonction
+ ##//external_identifier//##
+ nom visible de l'extérieur (à l'éditeur de liens) entre guillemets
+ ##//parameter_list//##
+ ##//parameter//[, //parameter//[, ...]]##
+ ##//parameter//##
+ ##[[[KeyPgByref ByRef]]|[[KeyPgByval ByVal]]] //identifier// [[[KeyPgAs As]] //type//] [= //default_value//]##
+ ##//identifier//##
+ le nom de la variable référencée dans la fonction. Si l'argument est un tableau, alors l'identificateur doit être suivi de parenthèses vides.
+
+##//type//##
+ le type de variable
+ ##//default_value//##
+ la valeur de l'argument si rien n'est spécifié dans l'appel
+ ##//return_type//##
+ le type de la variable retournée par la fonction
+ ##//statements//##
+
+ une ou plusieurs déclaration(s) qui compose(nt) le corps de la fonction
- //Calling Convention// : Calling convention, or the order in which arguments are pushed and popped from the stack during function calls, is specified with the ##[[KeyPgCdecl CDecl]]##, ##[[KeyPgPascal Pascal]]## and ##[[KeyPgStdcall StdCall]]## keywords. If none is given, the function uses the standard convention by default (##[[KeyPgStdcall StdCall]]##).
+ ##//return_value//##
- //Passing Arguments// : Functions may receive one or more variables, or arguments, when called. These arguments are listed as ##//parameters//## in the ##//parameter_list//##. The ##[[KeyPgByref ByRef]]## and ##[[KeyPgByval ByVal]]## keywords specify whether the argument will be passed by reference or by value, respectively. The argument's type is given by "##[[KeyPgAs As]] //type//##" following the ##//parameter//##. If a parameter in the declaration is given a default value, the parameter is optional. Array parameters are specified by following an identifier with an empty parenthesis. Note that array parameters are always ##[[KeyPgByref ByRef]]## and the ##[[KeyPgByref ByRef]]## keyword is neither required nor allowed for array parameters. When calling a function with an array argument the parenthesis must be supplied there too; see the examples.
+ la valeur retournée par la fonction
- //Overloaded Functions// : An overloaded function may share the same name (##//identifier//##) as another with a different signature. The ##[[KeyPgOverload Overload]]## keyword specifies that a function may be overloaded. A function must be defined - or declared - using the ##[[KeyPgOverload Overload]]## keyword prior to any functions that overload them.
+ {{fbdoc item="desc"}}
- //Returning values// : ##//return_type//## specifies the ##[[DataType data type]]## returned by a function upon exit. If no data type is specified, then the function will return the default data type, which will be Integer unless set to another data type using ##[[KeyPgDefsng DefSng]]##, ##[[KeyPgDefdbl DefDbl]]##, ##[[KeyPgDefstr DefStr]]##, etc. Functions can return values //(and soon, references)// using three methods: the ##[[KeyPgReturn Return]]## keyword followed by a value exits the function immediately, and returns that value to the caller. Functions can also return values by assigning the Function keyword or the function's ##//identifier//## to the desired return value. The latter two methods do not cause the function to exit, however. Since functions return values, function calls evaluate to expressions. Thus, function calls can be made wherever an expression is expected, like in [[KeyPgOpAssignment assignments]] or ##[[KeyPgIfthen If]]## statements.
+ Une fonction définit un bloc de code qui peut être exécuté par une seule instruction (un appel de fonction) et retourne une valeur à l'appelant lorsqu'elle a terminé (la valeur retournée). Il y a plusieurs raisons d'utiliser les fonctions:
- //Local Variable Preservation// : The ##[[KeyPgStatic Static]]## keyword specifies that a function's locally declared variables are preserved between function calls. Upon entering a function defined with ##[[KeyPgStatic Static]]##, local variables have the same value as when the function was last called.
+ - Réduit les redondances dans votre programme
-{{fbdoc item="ex"}}
+- Permet la réutilisation de code dans de nombreux programmes
+
+- Améliore la lisibilité du programme
+- Améliore la maintenance du programme
+- Facilite l'amélioration de votre programme
+
+//Droits d'accès// : Les mots-clés ##[[KeyPgPublic Public]]## et ##[[KeyPgPrivate Private]]## spécifient des droits d'accès, respectivement, publics ou privés entre niveaux-modules. Si aucun n'est donné, par défaut la fonction aura un accès (##[[KeyPgPublic Public]]##).
-{{fbdoc item="filename" value="examples/manual/procs/func-1.bas"}}%%(freebasic)
+//Convention d'appel// : La convention d'appel, ou l'ordre dans lequel les arguments sont entrés et sortis de la pile lors des appels de fonction, est spécifiée avec les mots-clés ##[[KeyPgCdecl cdecl]]##, ##[[KeyPgPascal pascal]]## et ##[[KeyPgStdcall stdcall]]##. Si aucune n'est fournie, la fonction utilise la convention standard par défaut (##[[KeyPgStdcall stdcall]]##).
+
+//Passage des arguments// : Les fonctions peuvent recevoir une ou plusieurs variables, ou arguments, en cas d'appel. Ces arguments sont répertoriés en tant que ##//parameters//## dans ##//parameter_list//##. Les mots-clés ##[[KeyPgByref ByRef]]## et ##[[KeyPgByval ByVal]]## précisent si l'argument sera passé par référence ou par valeur, respectivement. Le type de l'argument est donnée par "##[[KeyPgAs As]] //type//##" derrière le ##//parameter//##. Si un paramètre est donné dans la déclaration avec une valeur par défaut, le paramètre est facultatif. Les paramètres de tableaux sont spécifiés en plaçant des parenthèses vides après l'identifiant. Notez que les paramètres tableau sont toujours ##[[KeyPgByref ByRef]]## et le mot-clef ##[[KeyPgByref ByRef]]## n'est ni nécessaire ni permis comme paramètre tableau. Lorsque vous appelez une fonction avec un argument de tableau les parenthèses sont de rigueur là aussi, voir les exemples.
+ //Fonctions surchargées// : Une fonction surchargée peut partager le même nom (##//identifier//##) qu'une autre avec une signature différente. Le mot-clé ##[[KeyPgOverload Overload]]## précise qu'une fonction peut être surchargée. Une fonction peut être définie - ou déclarée - en utilisant le mot-clé ##[[KeyPgOverload Overload]]## avant toutes les fonctions qui les surchargent.
+//Les valeurs de retour// : ##//return_type//## spécifie le ##[[DataType data type]]## retourné par une fonction à la sortie. Si aucun type de données n'est spécifié, alors la fonction retournera le type de données par défaut, qui sera ##//Integer//## sauf si a été précisé un autre type de données en utilisant ##[[KeyPgDefsng DefSng]]##, ##[[KeyPgDefdbl DefDbl]]##, ##[[KeyPgDefstr DefStr]]##, etc. Les fonctions peuvent retourner des valeurs //(et bientôt, des références)// en utilisant trois méthodes: le mot-clé ##[[KeyPgReturn Return]]## suivi d'une valeur fait sortir de la fonction immédiatement et renvoie cette valeur à l'appelant. Les fonctions peuvent également renvoyer des valeurs en attribuant le mot clé ##//Function//## ou l'##//identifier//## de la fonction à la valeur de retour souhaitée. Cependant, les deux dernières méthodes ne provoquent pas la sortie de la fonction. Comme les fonctions retournent des valeurs, les appels de fonction évaluent les expressions. Ainsi, les appels de fonction peuvent être faits partout où une expression est attendue, comme dans les déclarations [[KeyPgOpAssignment Affectations]] ou ##[[KeyPgIfthen If]]##.
+//Préservation des variables locales// : Le mot-clef ##[[KeyPgStatic Static]]## indique que les variables locales déclarées dans une fonction sont conservées entre les appels de cette fonction. En entrant dans une fonction définie avec ##[[KeyPgStatic Static]]##, les variables locales ont la même valeur que la dernière fois que la fonction a été appelée.
+
+{{fbdoc item="ex"}}
'' This program demonstrates the declaration of a function
+'' This program demonstrates the declaration of a function
+
'' and returning a value using Return command
-Declare Function ReturnTen () as integer
+Declare Function ReturnTen () As Integer
Print ReturnTen () '' ReturnTen returns an integer by default.
-
-Function ReturnTen() as integer
- Return 10
+ Function ReturnTen() As Integer
+Return 10
End Function
+
%%
+'' This program demonstrates function overloading.
-{{fbdoc item="filename" value="examples/manual/procs/func-2.bas"}}%%(freebasic)
'' This program demonstrates the declaration of a function
'' and returning a value using assignment to function name
-
-Declare Function ReturnTen () as integer
-
+Declare Function ReturnTen () As Integer
Print ReturnTen () '' ReturnTen returns an integer by default.
-Function ReturnTen() as integer
- ReturnTen = 10
+Function ReturnTen() As Integer
+ReturnTen = 10
End Function
-%%
-{{fbdoc item="filename" value="examples/manual/procs/func-3.bas"}}%%(freebasic)
+%%
+ %%(freebasic)
'' This program demonstrates function overloading.
'' The overloaded functions must be FIRST.
-Declare Function ReturnTen Overload (a As Single) as integer
-Declare Function ReturnTen Overload (a As String) as integer
-Declare Function ReturnTen (a as integer) as integer
+ Declare Function ReturnTen Overload (a As Single) As Integer
+Declare Function ReturnTen Overload (a As String) As Integer
-Print ReturnTen (10.000!) '' ReturnTen will take a single and return an integer
+Declare Function ReturnTen (a As Integer) As Integer
+ Print ReturnTen (10.000!) '' ReturnTen will take a single and return an integer
Print ReturnTen (10) '' ReturnTen will take an integer and return an integer
Print ReturnTen ("10") '' ReturnTen will take a string and return an integer
-Function ReturnTen Overload (a As Single) as integer
- Return Int(a)
+Function ReturnTen Overload (a As Single) As Integer
+Return Int(a)
+
End Function
+ Function ReturnTen Overload (a As String) As Integer
+Return Val(a)
-Function ReturnTen Overload (a As String) as integer
- Return Val(a)
End Function
+Function ReturnTen (a As Integer) As Integer
+Return a
-Function ReturnTen (a As Integer) as integer
- Return a
End Function
%%
+'' functions taking array arguments.
-{{fbdoc item="filename" value="examples/manual/procs/func-4.bas"}}%%(freebasic)
'' The following example demonstrates optional parameters.
+ Function TestFunc(P As String = "Default") As String
+Return P
-Function TestFunc(P As String = "Default") As String
- Return P
End Function
-
Print TestFunc("Testing:")
Print TestFunc
%%
+%%
-{{fbdoc item="filename" value="examples/manual/procs/func-5.bas"}}%%(freebasic)
'' This example shows how to declare and call
-'' functions taking array arguments.
-
-Function x(b() As Double) As Integer
- x = UBound(b)-LBound(b)+1
-End Function
+ '' functions taking array arguments.
+ Function x(b() As Double) As Integer
+ x = UBound(b)-LBound(b)+1
+ End Function
Dim a(1 To 10) As Double
-Print x(a())
-Dim c(10 To 20) As Double
-Print x(c())
-%%
-
-{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang fb]]// dialect, ##**Byval**## is the default parameter passing convention for all built-in types except ##[[KeyPgString String]]##; String and user-defined ##[[KeyPgType Type]]##s are passed ##[[KeyPgByref Byref]]## by default.
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, ##**Byref**## is the default parameter passing convention.
- - In the //[[CompilerOptlang -lang qb]]// dialect, the name of the function must be used in an assignment to specify the return value. Using ##**function** = ...##" to specify the return value may not be used.
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, ##[[KeyPgReturn Return]]## may only be used to return a value when ##[[KeyPgOptiongosub Option Gosub]]## is off. In //[[CompilerOptlang -lang qb]]//, this must be done explicitly using the ##[[KeyPgOptionnogosub Option Nogosub]]## statement.
-
-{{fbdoc item="diff"}}
- - Parameters can be optional in ""FreeBASIC"".
- - In QBASIC, the return type could only specified with a suffix, not with ##AS TYPE##, and only allowed functions to return a built-in type.
- - Return value can now be specified by a ##[[KeyPgReturn Return]]## statement.
- - Function ##[[KeyPgOverload Overload]]##ing is supported in ""FreeBASIC"".
- - The return value of ##[[KeyPgInteger Integer]]## functions (all integer types) can be ignored in the calling code.
-
-{{fbdoc item="see"}}
- - ##[[KeyPgSub Sub]]##
- - ##[[KeyPgExit Exit]]##
- - ##[[KeyPgReturn Return]]##
- - ##[[KeyPgDeclare Declare]]##
- - ##[[KeyPgPublic Public]]##
- - ##[[KeyPgPrivate Private]]##
-
-{{fbdoc item="back" value="CatPgProcedures|Procedures"}}
+ Print x(a())
+ Dim c(10 To 20) As Double
+ Print x(c())
+ %%
+ {{fbdoc item="lang"}}
+
+- Dans le dialecte //[[CompilerOptlang -lang fb]]// dialect, ##**ByVal**## est la convention par défaut de passage de paramètre pour tous les types intégrés sauf ##[[KeyPgString String]]##; ##**String**## et les ##[[KeyPgType Type]]##s définis par l'utilisateur sont passés ##[[KeyPgByref ByRef]]## par défaut.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, ##**ByRef**## est la convention par défaut de passage de paramètre.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, le nom de la fonction doit être utilisé dans une affectation pour spécifier la valeur de retour. Utiliser ##**Function** = ...##" pour spécifier que la valeur de retour ne peut être utilisée.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, ##[[KeyPgReturn Return]]## peut être utilisé pour retourner une valeur lorsque ##[[KeyPgOptiongosub Option Gosub]]## n'est pas valide. Dans //[[CompilerOptlang -lang qb]]//, cela doit être fait en utilisant explicitement l'instruction ##[[KeyPgOptionnogosub Option Nogosub]]##.
+ {{fbdoc item="diff"}}
+ - Les paramètres peuvent être optionnels en FreeBASIC.
+ - En QBASIC, le type de retour peut être spécifié seulement avec un suffixe, pas avec ##AS TYPE##, et autoriser seulement les fonctions à retourner un type intégré.
+
+- La valeur de retour peut maintenant être précisée par une instruction ##[[KeyPgReturn Return]]##.
diff --git a/fbdocs/manual/cache/KeyPgGetfileio.wakka b/fbdocs/manual/cache/KeyPgGetfileio.wakka
index f0b1a2e901..cf3e36e609 100644
--- a/fbdocs/manual/cache/KeyPgGetfileio.wakka
+++ b/fbdocs/manual/cache/KeyPgGetfileio.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="GET (File I/O)"}}----
-Reads data from a file to a buffer
+Lit les données d'un fichier vers un tampon
{{fbdoc item="syntax"}}##
**Get** #//filenum// [[KeyPgAs As]] [[KeyPgInteger Integer]], [//position// [[KeyPgAs As]] [[KeyPgLongint longint]]], [[KeyPgByref ByRef]] //data// [[KeyPgAs As]] [[KeyPgAny Any]] [, [//amount// [[KeyPgAs As]] [[KeyPgInteger Integer]]] [, [[KeyPgByref ByRef]] //bytesread// [[KeyPgAs As]] [[KeyPgUinteger Uinteger]]] ]
@@ -12,29 +12,29 @@ Reads data from a file to a buffer
##
{{fbdoc item="param"}}
##//filenum//##
- The value passed to ##[[KeyPgOpen Open]]## when the file was opened.
+ La valeur passée à ##[[KeyPgOpen Open]]## quand le fichier a été ouvert.
##//position//##
- The position where the read must start. If the file was opened ##[[KeyPgRandom For Random]]##, the position is in records; otherwise, it is in bytes. If omitted, reading starts at the present file pointer position. The position is 1-based: i.e. first record or byte of a file is at position ##1##.
- If ##//position//## is omitted or zero (##0##), file reading will start from the current file position.
+ La position où la lecture doit commencer. Si le fichier a été ouvert ##[[KeyPgRandom For Random]]##, la position est en enregistrements; autrement, elle est en octets. Si omise, la lecture commence à la position actuelle du pointeur. La position est basée sur 1: c'est à dire que le premier enregistrement ou octet est à la position ##1##.
+ Si ##//position//## est omise ou zéro (##0##), la lecture du fichier commencera à la position courante dans le fichier.
##//data//##
- The buffer where data is written. It can be a numeric variable, a string, an array, a user defined type or a dereferenced pointer. The read operation will try to fill completely the variable, unless the ##[[KeyPgEof EOF]]## is reached.
- When getting arrays, ##//data//## should be followed by an empty pair of brackets: "##()##". ##**Get**## will read data for all of the values in the array. ##//amount//## is not allowed.
- When getting ##[[KeyPgString String]]##s, the number of bytes read is the same as the number of bytes in the string data. ##//amount//## is not allowed.
- Note: If you want to read values into a buffer, you should NOT pass a pointer to the buffer; instead you should pass the first variable in the buffer. (This can be done by dereferencing the pointer with ##[[KeyPgOpValueOf Operator * (Value of)]]##.) If you pass a pointer directly, then ##**Get**## will overwrite the pointer variable, not the memory it points to.
+ Le tampon où les données sont écrites. Il peut être une variable numérique, une chaîne, un tableau, un type défini par l'utilisateur ou un pointeur déréférencé. L'opération de lecture va essayer de remplir complètement la variable, à moins que ##[[KeyPgEof EOF]]## ne soit atteint.
+ Lors de l'utilisation de tableaux, ##//data//## doit être suivi par une paire de parenthèses vides: "##()##". ##**Get**## lira les données pour toutes les valeurs dans le tableau. ##//amount//## (quantité) n'est pas autorisé.
+ Lors de l'utilisation de ##[[KeyPgString String]]##s, le nombre d'octets lus est le même que le nombre d'octets dans les données de chaîne. ##//amount//## (quantité) n'est pas autorisé.
+ Note: Si vous voulez lire des valeurs dans une mémoire tampon, vous NE devez PAS passer un pointeur vers la mémoire tampon; au lieu de cela vous devez passer la première variable dans la mémoire tampon. (Cela peut être fait par le déréférencement du pointeur avec ##[[KeyPgOpValueOf Operator * (Value Of)]]##.) ##**Get**## comprendra automatiquement que le reste de la mémoire tampon se poursuit après la première variable.. Si vous passez un pointeur directement, alors ##**Get**## écrira sur la variable et non à l'emplacement mémoire vers lequel elle pointe.
##//amount//##
- Makes ##**Get**## read ##//amount//## consecutive variables from file to memory, i.e. it reads ##(//amount// * [[KeyPgSizeof Sizeof]](//data//) )## bytes of data from file into the memory starting at ##//data//##'s memory location. If ##//amount//## is omitted it defaults to ##1##, meaning that ##**Get**## just reads a single variable.
+ ##**Get**## lit ##//amount//## variables consécutives du fichier vers la mémoire, c'est à dire qu'il lit ##(//amount// * [[KeyPgSizeof SizeOf]](//data//) )## octets ou données depuis le fichier vers la mémoire commençant à la position ##//data//##. Si ##//amount//## est omis il sera de ##1## par défaut, ce qui signifie que ##**Get**## ne lira qu'une seule variable.
##//bytesread//##
- An unsigned integer variable to accept the result of the number of bytes read successfully from the file.
+ Une variable entière non signée qui contiendra le nombre d'octets lus avec succès à partir du fichier.
-{{fbdoc item="ret"}}
- Zero (##0##) on success; non-zero on error. Note: if ##[[KeyPgEof EOF]]## (end of file) is reached while reading, ##**Get**## will return success. The amount of bytes actually read can be checked by passing a ##//bytesread//## variable.
+{{fbdoc item="section" value="Valeur retournée
+ Zéro (##0##) si succès; non-zéro si erreur. Note: Si ##[[KeyPgEof EOF]]## (End Of File) est atteint pendant la lecture, ##**Get**## retournera "succès". La quantité d'octets réellement lus peut être vérifiée en passant une variable ##//bytesread//##.
{{fbdoc item="desc"}}
- Reads binary data from a file to a buffer variable
+ Lit les données binaires à partir d'un fichier vers une variable tampon
- ##**Get**## can be used as a function, and will return ##0## on success or an error code on failure.
+ ##**Get**## peut être utilisé comme une fonction, et retournera ##0## si succès ou un code d'erreur si échec.
- For files opened in ##[[KeyPgRandom Random]]## mode, the size in bytes of the data to read must match the specified record size.
+ Pour les fichiers ouverts en mode ##[[KeyPgRandom Random]]##, la taille en octets des données à lire doit correspondre à la taille d'enregistrement spécifiée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/get.bas"}}%%(freebasic)
@@ -136,18 +136,18 @@ Print ExampleStr
%%
{{fbdoc item="diff"}}
- - ##**Get**## in FB can read full arrays as in VB or, alternatively, read a multiple of the data size into the memory.
- - ##**Get**## can be used as a function in FB, to find the success/error code returned without having to use error handling procedures.
- - FB allows the ##//bytesread//## parameter, to check how many bytes have been successfully read in.
+ Dans FB, ##**Get**## peut lire des tableaux pleins comme dans VB ou, alternativement, lire un multiple de la taille des données dans la mémoire.
+ - ##**Get**## peut être utilisé comme une fonction dans FB, pour obtenir le code succès/erreur renvoyé sans avoir à utiliser les procédures de gestion des erreurs.
+ - FB permet le paramètre ##//bytesread//##, pour vérifier combien d'octets ont été lus avec succès.
{{fbdoc item="see"}}
- - ##[[KeyPgGetgraphics Get (Graphics)]]## different usage of same keyword
- - ##[[KeyPgPutfileio Put (File I/O)]]##
+ - ##[[KeyPgGetgraphics Get (Graphiques)]]## utilisation différente du même mot-clé
+ - ##[[KeyPgPutfileio Put (Entrée/sortie fichiers)]]##
- ##[[KeyPgOpen Open]]##
- ##[[KeyPgClose Close]]##
- ##[[KeyPgBinary Binary]]##
- ##[[KeyPgRandom Random]]##
- ##[[KeyPgFreefile Freefile]]##
- - ##[[ProPgFileIO File I/O methods comparison]]##
+ - ##[[ProPgFileIO Comparaison des méthodes d'entrée/sortie des fichiers]]##
{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgGetgraphics.wakka b/fbdocs/manual/cache/KeyPgGetgraphics.wakka
index 9ba10657bb..0d16816b3d 100644
--- a/fbdocs/manual/cache/KeyPgGetgraphics.wakka
+++ b/fbdocs/manual/cache/KeyPgGetgraphics.wakka
@@ -1,48 +1,48 @@
{{fbdoc item="title" value="GET (GRAPHICS)"}}----
-Gets a copy of a portion of the current work page or an image buffer
+Obtient une copie d'une portion de la page courante de travail ou d'un tampon image
{{fbdoc item="syntax"}}##
**Get** [//source//,] [Step] (//x1//, //y1//) - [STEP] (//x2//, //y2//), //dest//]
##
{{fbdoc item="param"}}
##//source//##
- the address of an image buffer.
+ adresse d'un tampon image.
##Step##
- indicates that the following co-ordinates are not absolute co-ordinates.
+ indique que les coordonnées qui suivent ne sont pas absolues.
##//x1//##, ##//y1//##
- co-ordinates of the upper-left corner of the sub-image to copy.
+ coordonnées du coin en haut à gauche de la sous-image à copier.
##//x2//##, ##//y2//##
- co-ordinates of the lower-right corner of the sub-image to copy.
+ coordonnées du coin en bas à droite de la sous-image à copier.
##//dest//##
- the address of a previously allocated buffer to store the image data.
+ adresse du tampon précédemment alloué pour stocker les données image.
{{fbdoc item="desc"}}
- ##**Get**## copies a rectangular portion of the current work page specified by the co-ordinates (##//x1//##, ##//y1//##) and (##//x2//##, ##//y2//##), which represent the upper-left and lower-right corners of the rectangle, respectively. ##**Step**## specifies that the upper-left co-ordinates are relative to the current graphics pen location, and/or that the lower-right co-ordinates are relative to the upper-left co-ordinates. The new image buffer is formatted to match the current screen mode [[GfxInternalFormats pixel format]].
+ ##**Get**## copie une portion rectangulaire de la page de travail courante, spécifiée par les coordonnées (##//x1//##, ##//y1//##) et (##//x2//##, ##//y2//##), qui représentent respectivement les coins haut-gauche et bas-droite du rectangle. ##**Step**## précise que les coordonnées sont relatives à la position du crayon graphique, et/ou les coordonnées sont relatives aux coordonnées du coin haut-gauche. Le nouveau tampon image est formaté pour correspondre au [[GfxInternalFormats format pixel ]]du mode écran courant.
- ##//dest//## can be an address, an [[ProPgArrays array]], or a reference to the first element in an [[ProPgArrays array]] that will receive the new image buffer. This memory must be sufficiently allocated to hold the image buffer; the number of bytes required varies with the [[CompilerOptlang -lang dialect]] used to compile the program.
+ ##//dest//## peut être une addresse, un [[ProPgArrays tableau]] ou une référence au premier élément d'un [[ProPgArrays tableau]] qui recevra le nouveau tampon image. L'allocation mémoire doit être suffisante pour recevoir le tampon image; le nombre d'octets varie avec le [[CompilerOptlang -lang dialect]] utilisé pour compiler le programme.
- ##//source//## can be an address, an [[ProPgArrays array]], or a reference to the first element in an [[ProPgArrays array]] that holds an image buffer to retrieve a portion of. ##//x1//##, ##//y1//##, ##//x2//##, ##//y2//##, ##**Step**## and ##//dest//## have the same meaning in this case.
+ ##//source//## peut être une addresse, un [[ProPgArrays tableau]] ou une référence au premier élément d'un [[ProPgArrays tableau]] qui contient un tampon image pour recevoir la portion de l'image. ##//x1//##, ##//y1//##, ##//x2//##, ##//y2//##, ##**Step**## et ##//dest//## ont la même signification dans ce cas.
- The co-ordinates of the rectangle are affected by the most recent ##[[KeyPgWindow Window]]## and ##[[KeyPgViewgraphics View (Graphics)]]## statements, and must both be within the current clipping region set by ##[[KeyPgViewgraphics View (Graphics)]]##, otherwise an illegal function call runtime error will be triggered, and the function will have no effect.
+ Les coordonnées du rectangle sont modifiées par les plus récentes déclarations de ##[[KeyPgWindow Window]]## et ##[[KeyPgViewgraphics View (Graphics)]]##, et doivent être toutes les deux dans la région de découpage courante (clipping region) validée par ##[[KeyPgViewgraphics View (Graphics)]]##, autrement sera émise une erreur d'appel illégal à une fonction, et la fonction n'aura aucun effet.
-**Runtime errors:**
- ##**Get**## throws one of the following [[ProPgErrorHandling runtime errors]]:
+**Erreurs de fonctionnement:**
+ ##**Get**## produit une des [[ProPgErrorHandling erreurs de fonctionnement]] suivantes:
//(##1##) Illegal function call//
- - ##//dest//## is an array, but is not big enough to hold the image buffer.
- - The upper-left or lower-right co-ordinates of the rectangle are outside the current clipping region. See ##[[KeyPgViewgraphics View (Graphics)]]##.
+ - ##//dest//## est un tableau, mais il n'est pas assez grand pour contenir le tampon image.
+ - Les coordonnées du coin en haut à gauche ou en bas à droite sont en dehors de la région de découpage courante (clipping region). Voir ##[[KeyPgViewgraphics View (Graphics)]]##.
{{fbdoc item="lang"}}
- There are 2 types of buffers (details see [[GfxInternalFormats]]) depending from FB dialect used:
+ Il y a 2 types de tampons (voir [[GfxInternalFormats Formats graphiques internes]]) dépendant du dialecte FB qui est utilisé:
- - In the //[[CompilerOptlang -lang fb]]// dialect, ##//dest//## receives a new-style image buffer, which consists of a 32-byte image header followed by pixel data which is row-padded to the next paragraph boundary (16 bytes). Use the following formula to calculate the total size, in bytes, required to store the image buffer, where ##w## and ##h## are the respective width and height of the rectangular portion of the current work page or source image buffer, and ##bpp## is the number of bytes per pixel of the current screen mode:
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]//, ##//dest//## reçoit un tampon image nouveau-style, consistant en une en-tête image de 32 octets suivi par les données pixels data qui est "row-padded" jusqu'à la limite du paragraphe suivant (16 octets). Utilisez la formule suivante pour calculer la taille totale, en octets, nécessaire pour stocker le tampon image, où ##w## et ##h## sont respectivement la largeur et la hauteur de la portion rectangulaire de la page courante de travail ou du tampon image source, et ##bpp## est le nombre d'octets par pixel de l'écran courant:
##size = 32 + (((w * bpp + &hF) and not &hF) * h)##
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, ##//dest//## receives a QB-style image buffer, which consists of a 4-byte image header followed by pixel data which is not row-padded. Use the following formula to calculate the total size, in bytes, required to store the image buffer, where ##w## and ##h## are the respective width and height of the rectangular portion of the current work page or source image buffer, and ##bpp## is the number of bytes per pixel of the current screen mode:
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, ##//dest//## reçoit un tampon image style-QB, qui consiste en une en-tête image de 4 octets suivi par les données pixel qui ne sont pas "row-padded". Utilisez la formule suivante pour calculer la taille totale, en octets, nécessaire pour stocker le tampon image, où ##w## et ##h## sont respectivement la largeur et la hauteur de la portion rectangulaire de la page courante de travail ou du tampon image source, et ##bpp## est le nombre d'octets par pixel du [[GfxInternalFormats format pixel]] du mode écran courant:
##size = 4 + (w * h * bpp)##
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/gfx/get.bas"}}%%(freebasic)
+ %%(freebasic)
#include once "fbgfx.bi"
'' Setup a 400x300 32bit screen
@@ -97,6 +97,6 @@ wend
- ##[[KeyPgScreengraphics Screen (Graphics)]]##
- ##[[KeyPgWindow Window]]##
- ##[[KeyPgViewgraphics View (Graphics)]]##
- - [[GfxInternalFormats Internal graphics formats]]
+ - [[GfxInternalFormats Formats graphiques internes]]
{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
diff --git a/fbdocs/manual/cache/KeyPgGetjoystick.wakka b/fbdocs/manual/cache/KeyPgGetjoystick.wakka
index 597d3ed466..90ad54069e 100644
--- a/fbdocs/manual/cache/KeyPgGetjoystick.wakka
+++ b/fbdocs/manual/cache/KeyPgGetjoystick.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="GETJOYSTICK"}}----
-Reads buttons and axis information from attached gaming devices
+Lecture des informations des boutons et des axes des dispositifs relatifs au jeu
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Getjoystick** ( [[KeyPgByval byval]] //id// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //buttons// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //a1// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a2// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a3// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a4// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a5// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a6// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a7// [[KeyPgAs as]] [[KeyPgSingle single]] = 0, [[KeyPgByref byref]] //a8// [[KeyPgAs as]] [[KeyPgSingle single]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,35 +9,35 @@ Reads buttons and axis information from attached gaming devices
##
{{fbdoc item="param"}}
##//id//##
- the device id number (0 - 15)
+ nombre identificateur du dispositif (0 - 15)
##//buttons//##
- the button status
+ l'état bouton
##//a1//##
- first axis value
+ valeur premier axe
##//a2//##
- second axis value
+ valeur second axe
##//a3//##
- third axis value
+ valeur troisième axe
##//a4//##
- fourth axis value
+ valeur quatrième axe
##//a5//##
- fifth axis value
+ valeur cinquième axe
##//a6//##
- sixth axis value
+ valeur sixième axe
##//a7//##
- seventh axis value
+ valeur septième axe
##//a8//##
- eighth axis value
+ valeur huitième axe
-{{fbdoc item="ret"}}
- 0 on success or 1 on failure. All of the axis positions are returned in floating point format.
+{{fbdoc item="section" value="Valeur renvoyée
+ 0 si succès ou 1 si échec. Toutes les valeurs des positions des axes sont retournées sous forme de nombres à virgule flottante.
{{fbdoc item="desc"}}
- ##**Getjoystick**## will retrieves the button state, and the axis positions for up to 8 axes, for the joystick determined by ##//id//##, a number between 0 and 15. Buttons are stored in a similar manner to ##[[KeyPgGetmouse Getmouse]]##, with each bit in ##//buttons//## representing a button.
+ ##**GetJoystick**## retourne l'état bouton et les positions des axes, jusqu'à 8 axes, pour chaque joystick determiné par ##//id//##, un nombre de 0 à 15. Les valeurs des boutons sont stockées de la même façon que pour ##[[KeyPgGetmouse GetMouse]]##, avec chaque bit //## représentant un bouton.
- A single precision value between ##-1.0## and ##1.0## is returned for each valid axis. If the axis does not exist for the controller, a value of ##-1000.00## is returned.
+ Une valeur simple précision de ##-1.0## à ##1.0## est retournée pour chaque axe valide. Si l'axe n'existe pas pour le contrôleur, une valeur de ##-1000.00## est retournée.
- ##**Getjoystick**## will return 0 upon successful completion; It will return 1 upon failure. Failure can be caused by specifying an illegal joystick number, specifying a joystick which doesn't exist, or a failure in the joystick API.
+ ##**GetJoystick**## renvoie 0 après réussite; renvoie 1 en cas d'échec. L'échec peut être provoqué par un nombre illégal de joystick, en spécifiant un joystick qui n'existe pas, ou un échec de l'API joystick.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/input/getjoystick.bas"}}%%(freebasic)
@@ -51,7 +51,7 @@ dim a as integer
const JoystickID = 0
-'This line checks to see if the joystick is ok.
+'Cette ligne verifie si joystick est ok.
if GETJOYSTICK(JoystickID,buttons,x,y) then
print "Joystick doesn't exist or joystick error."
@@ -68,7 +68,7 @@ do
locate 1,1
print ;"result:";result;" x:" ;x;" y:";y;" Buttons:";buttons,"","",""
- 'This tests to see which buttons from 1 to 27 are pressed.
+ 'Ces tests pour voir quels boutons de 1 a 27 sont appuyes.
for a = 0 to 26
if (buttons AND (1 shl a)) then
print "Button ";a;" pressed. "
@@ -80,13 +80,13 @@ loop
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Getjoystick""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Getjoystick**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgScreengraphics Screen (Graphics)]]##
+ - ##[[KeyPgScreengraphics Screen (Graphique)]]##
- ##[[KeyPgSetmouse Setmouse]]##
- ##[[KeyPgGetmouse Getmouse]]##
- ##[[KeyPgMultikey Multikey]]##
diff --git a/fbdocs/manual/cache/KeyPgGetkey.wakka b/fbdocs/manual/cache/KeyPgGetkey.wakka
index 765ba5c34b..7fbb53f1ec 100644
--- a/fbdocs/manual/cache/KeyPgGetkey.wakka
+++ b/fbdocs/manual/cache/KeyPgGetkey.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="GETKEY"}}----
-Returns the ascii code of the first key in the keyboard buffer
+Retourne le code ASCII de la première touche dans la mémoire tampon du clavier
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Getkey** ( ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -7,15 +7,15 @@ Returns the ascii code of the first key in the keyboard buffer
{{fbdoc item="usage"}}##
//result// = **Getkey**
##
-{{fbdoc item="ret"}}
- The [[KeyPgInteger integer]] value of the ascii code returned.
+{{fbdoc item="section" value="Valeur retournée
+ La valeur [[KeyPgInteger Integer]] du code ASCII retourné.
{{fbdoc item="desc"}}
- It returns the ascii code of the first key in the keyboard buffer. The key is removed from the buffer. If no key is present, ##**Getkey**## waits for it. For extended keys (returning two characters), the extended code is returned in the first byte, and the regular code is returned in the second byte. (see example below)
+ Retourne le code ASCII de la première touche dans la mémoire tampon du clavier. La touche est retirée de la mémoire tampon. Si aucune touche n'est présente, ##**GetKey**## en attend une. Pour les touches étendues (elles retournent deux caractères), le code étendu est retourné dans le premier octet et le code régulier est retourné dans le deuxième octet. (voir l'exemple ci-dessous)
- The key read is not echoed to the screen.
+ La touche lue n'est pas affichée à l'écran.
- For a keyword not stopping the program if no key is at the buffer see ##[[KeyPgInkey Inkey]]## or ##[[KeyPgMultikey Multikey]]##.
+ Pour un mot-clef qui ne bloque pas le programme, si aucune touche ne se trouve dans le tampon mémoire du clavier, voir ##[[KeyPgInkey Inkey]]## ou ##[[KeyPgMultikey MultiKey]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/input/getkey.bas"}}%%(freebasic)
@@ -36,10 +36,10 @@ loop until foo = 27
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Getkey""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Getkey**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgGetmouse GetMouse]]##
diff --git a/fbdocs/manual/cache/KeyPgGetmouse.wakka b/fbdocs/manual/cache/KeyPgGetmouse.wakka
index 8dfea20be1..2421db5823 100644
--- a/fbdocs/manual/cache/KeyPgGetmouse.wakka
+++ b/fbdocs/manual/cache/KeyPgGetmouse.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="GETMOUSE"}}----
-Retrieves the status of the mouse pointing device
+Récupère l'état du dispositif de pointage de la souris
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Getmouse** ( [[KeyPgByref byref]] //x// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //y// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //wheel// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //buttons// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //clip// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,31 +9,31 @@ Retrieves the status of the mouse pointing device
##
{{fbdoc item="param"}}
##//x//##
- x coordinate value
+ valeur de la coordonnée x
##//y//##
- y coordinate value
+ valeur de la coordonnée y
##//wheel//##
- scroll wheel value
+ valeur de la molette
##//buttons//##
- button status
+ état des boutons
##//clip//##
- clip status
+ état "clip"
-{{fbdoc item="ret"}}
- ##0## on success or ##1## on failure.
+{{fbdoc item="section" value="Valeur retournée
+ ##0## si succès ou ##1## si échec.
{{fbdoc item="desc"}}
- ##**Getmouse**## retrieves the mouse position and buttons status; information is returned in the variables passed to this function by reference. If a mouse is not available, all variables will contain the ##-1## value.
+ ##**GetMouse**## détermine la position de la souris et l'état des boutons; l'information est retournée dans les variables passées par référence à la fonction. Si aucune souris n'est disponible, toutes les variables contiendront la valeur ##-1##.
- If in console mode, the ##//x//## and ##//y//## coordinates are the character cell coordinates the mouse is currently on; the upper left corner of the screen is at coordinates ##0, 0##. If the mouse moves out of the console window, ##**Getmouse**## returns the last coordinate on the window that the mouse was on.
+ En mode console, les coordonnées ##//x//## et ##//y//## sont les coordonnées de la cellule caractère où se trouve la souris; le coin en haut à gauche de l'écran a les coordonnées ##0,0##.. Si la souris sort de la fenêtre console, ##**GetMouse**## renvoie les dernières coordonnées lorsque la souris était encore sur la fenêtre.
- If in graphics mode, ##//x//## and ##//y//## will always be returned in pixel coordinates still relative to the upper left corner of the screen, which is at 0,0 in this case; custom coordinates system set via ##[[KeyPgViewgraphics View]]## or ##[[KeyPgWindow Window]]## do not affect the coordinates returned by ##**Getmouse**##. If the mouse runs off the window, all values are set to ##-1##.
+ En mode graphique, ##//x//## et ##//y//## retournent toujours les coordonnées en pixels relatives au coin en haut à gauche de l'écran, qui lui a les coordonnées 0,0; un système de coordonnées personnel établi via ##[[KeyPgViewgraphics View]]## ou ##[[KeyPgWindow Window]]## n'affectera pas les coordonnées retournées par ##**GetMouse**##. Si la souris sort de la fenêtre, toutes les valeurs seront mises à ##-1##.
- ##//Wheel//## is the mouse wheel counter; rotating the wheel away from you makes the count to increase, rotating the wheel toward you makes it to decrease. At program startup or when a new graphics mode is set via ##[[KeyPgScreengraphics Screen]]##, wheel position is reset to 0. ""FreeBASIC"" may not always support mouse wheels for a given platform, in which case 0 is always returned.
+ ##//Wheel//## est le compteur de la molette souris; actionner la molette vers l'avant augmentera la valeur du compteur, une rotation vers l'arrière diminuera la valeur du compteur. Au départ du programme ou quand un nouveau mode graphique est validé via ##[[KeyPgScreengraphics Screen]]##, la position de la molette est remise à 0. FreeBASIC ne gère pas toujours la molette pour certaines plates-formes, dans ce cas une valeur 0 est toujours renvoyée.
- ##//Buttons//## stores the buttons status as a bitmask: bit 0 is set if left mouse button is down; bit 1 is set if right mouse button is down; bit 2 is set if middle mouse button / wheel is down.
+ ##//Buttons//## stocke l'état des boutons sous la forme d'un masque de bits: le bit 0 est valide (à 1) si le bouton gauche est appuyé; le bit 1 est valide si le bouton droit est appuyé; le bit 2 est valide si le bouton central / molette est appuyé.
- ##//Clip//## stores the mouse clipping status; if ##1##, the mouse is currently clipped to the graphics window; if ##0##, the mouse is not clipped.
+ ##//Clip//## stocke l'état de "clipping"; si à ##1##, la souris est "clippée" à la fenêtre graphique; si à ##0##, la souris n'est pas "clippée".
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/input/getmouse.bas"}}%%(freebasic)
@@ -42,7 +42,7 @@ DIM AS INTEGER x, y, buttons, res
' Set video mode and enter loop
SCREENRES 640, 480, 8
DO
- ' Get mouse x, y and buttons. Discard wheel position.
+ ' Recupere x, y souris et boutons. Discard wheel position.
res = GETMOUSE (x, y, , buttons)
LOCATE 1, 1
IF res <> 0 THEN '' Failure
@@ -92,18 +92,18 @@ loop while inkey = ""
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Getmouse""**##. The variables passed must also be of type ##[[KeyPgLong Long]]## instead of ##[[KeyPgInteger Integer]]##.
-
-{{fbdoc item="target"}}
- - On ""Win32"", scroll wheel changes are not guaranteed to be detected in full-screen console mode.
- - In DOS, the "clip" value has no relevance. Additionally the wheel and middle button will not work unless supported and enabled by the mouse driver. See also [[FaqDOS]].
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Getmouse**##. Les variables passées doivent aussi être du type ##[[KeyPgLong Long]]## au lieu de ##[[KeyPgInteger Integer (Entier)]]##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
+
+- ##[[KeyPgScreenres ScreenRes]]## valide le mode graphique par résolution
+ - ##[[KeyPgScreengraphics Screen (Graphiques)]]## valide le mode graphique méthode QB
-{{fbdoc item="see"}}
- - ##[[KeyPgScreenres Screenres]]## setting graph mode by resolution
- - ##[[KeyPgScreengraphics Screen (Graphics)]]## setting mode the QB-like way
+- ##[[KeyPgSetmouse SetMouse]]##
+ - ##[[KeyPgMultikey MultiKey]]##
+ - ##[[KeyPgGetjoystick GetJoystick]]##
- ##[[KeyPgSetmouse Setmouse]]##
- ##[[KeyPgMultikey Multikey]]##
- ##[[KeyPgGetjoystick Getjoystick]]##
diff --git a/fbdocs/manual/cache/KeyPgGosub.wakka b/fbdocs/manual/cache/KeyPgGosub.wakka
index 7828f05f9e..73b05a1a04 100644
--- a/fbdocs/manual/cache/KeyPgGosub.wakka
+++ b/fbdocs/manual/cache/KeyPgGosub.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="GOSUB"}}----
-Control flow statement to use a section of code and return.
+Déclaration de contrôle de flux pour partir utiliser une section de code et revenir.
{{fbdoc item="syntax"}}##
**Gosub** //label//
##
{{fbdoc item="desc"}}
- Execution jumps to a subroutine marked by a line label. Always use ##[[KeyPgReturn Return]]## to exit a ##**Gosub**##, execution will continue on next statement after ##**Gosub**##.
+ L'exécution saute vers un sous-programme repéré par une ligne avec une étiquette (label). Toujours utiliser ##[[KeyPgReturn Return]]## pour quitter un ##**GoSub**##, l'exécution se poursuivra sur la déclaration suivante après ##**GoSub**##.
- The line label where ##**Gosub**## jumps must be in the same main/function/sub block as ##**Gosub**##. All the variables in the subroutine are shared with the block, no arguments can be used. For this reason Gosub is considered bad programming practice as it can generate unreadable and untraceable code. It is better to use ##[[KeyPgSub Sub]]## or ##[[KeyPgFunction Function]]## instead.
+ L'étiquette de la ligne où ##**GoSub**## doit sauter doit être dans la même bloc principal (main)/fonction/sub que ##**GoSub**##. Toutes les variables dans le sous-programme sont partagées avec le bloc, aucun argument ne peut être utilisé. Pour cette raison, Gosub est considéré comme une mauvaise pratique de programmation car cela peut générer du code illisible et introuvable. Il est préférable d'utiliser ##[[KeyPgSub Sub]]## ou ##[[KeyPgFunction Function]]## à la place.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/gosub.bas"}}%%(freebasic)
@@ -24,11 +24,11 @@ Return
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
- - ##**Gosub**## support is disabled by default in the //[[CompilerOptlang -lang fblite]]// unless the ##[[KeyPgOptiongosub Option Gosub]]## statement is used.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
+ - Le support de ##**GoSub**## est désactivé par défaut dans //[[CompilerOptlang -lang fblite]]// sauf si ##[[KeyPgOptiongosub Option Gosub]]## est utilisé.
{{fbdoc item="diff"}}
- - None when using the //[[CompilerOptlang -lang qb]]// dialect.
+ - Aucune en utilisant le dialecte//[[CompilerOptlang -lang qb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgGoto Goto]]##
diff --git a/fbdocs/manual/cache/KeyPgGoto.wakka b/fbdocs/manual/cache/KeyPgGoto.wakka
index 2bcfd4386d..4f44e42b36 100644
--- a/fbdocs/manual/cache/KeyPgGoto.wakka
+++ b/fbdocs/manual/cache/KeyPgGoto.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="GOTO"}}----
-Control flow statement to jump to another part of the program
+Déclaration de contrôle de flux pour sauter vers une autre partie du programme
{{fbdoc item="syntax"}}##
**Goto** //label//
##
{{fbdoc item="desc"}}
- Jumps code execution to a line label.
+ L'exécution du code saute vers une ligne avec une étiquette.
- For better source code readability, overuse of ##**Goto**## should be avoided in favor of more modern structures such as ##[[KeyPgDoloop Do...Loop]]##, ##[[KeyPgFornext For...Next]]##, ##[[KeyPgSub Sub]]##, and ##[[KeyPgFunction Function]]##.
+ Pour plus de lisibilité du code source, l'utilisation excessive de ##**Goto**## doit être évitée en faveur de structures plus modernes telles que ##[[KeyPgDoloop Do...Loop]]##, ##[[KeyPgFornext For...Next]]##, ##[[KeyPgSub Sub]]## et ##[[KeyPgFunction Function]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/goto.bas"}}%%(freebasic)
@@ -33,10 +33,10 @@ there:
%%
{{fbdoc item="lang"}}
- - Line numbers are allowed only in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang deprecated]]// dialects.
+ - Les numéros de ligne ne sont permis que dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang deprecated]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgGosub Gosub]]##
diff --git a/fbdocs/manual/cache/KeyPgHex.wakka b/fbdocs/manual/cache/KeyPgHex.wakka
index 2d23562b2c..16d1e8280f 100644
--- a/fbdocs/manual/cache/KeyPgHex.wakka
+++ b/fbdocs/manual/cache/KeyPgHex.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="HEX"}}----
-Returns the hexadecimal of the given number
+Retourne la valeur hexadécimale du nombre donné
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Hex** [[KeyPgOverload overload]] ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -18,21 +18,21 @@ Returns the hexadecimal of the given number
##
{{fbdoc item="param"}}
##//number//##
- A number or expression evaluating to a number. A floating-point number will be converted to a ##[[KeyPgLongint longint]]##.
+ Un nombre ou expression évalué comme nombre. Un nombre à virgule flottante sera converti en ##[[KeyPgLongint LongInt]]##.
##//digits//##
- Optional number of digits to return.
+ Facultatif: nombre de chiffres à retourner.
-{{fbdoc item="ret"}}
- A [[KeyPgString string]] containing the unsigned hexadecimal representation of ##//number//##.
+{{fbdoc item="section" value="Valeur retournée
+ Une [[KeyPgString String (chaîne)]] contenant la représentation hexadécimale non-signée de ##//number//##.
{{fbdoc item="desc"}}
- Returns the unsigned hexadecimal string representation of the integer ##//number//##. Hexadecimal digits range from 0-9, or A-F.
+ Retourne la représentation hexadécimale non-signée de l'entier ##//number//##. Chiffres héxadécimaux de 0 à 9, ou A à F.
- If you specify ##//digits//## > 0, the result string will be exactly that length. It will be truncated or padded with zeros on the left, if necessary.
+ Si vous spécifiez ##//digits//## > 0, la chaîne résultat aura exactement cette longueur. Elle sera tronquée ou complètée avec des zéros sur la gauche, si nécessaire.
- The length of the string will not go longer than the maximum number of digits required for the type of ##//number//## (8 for an ##[[KeyPgInteger integer]]##, 16 for a ##[[KeyPgLongint longint]])##.
+ La longueur de la chaîne ne dépassera pas le nombre de bits maximum requis pour le type de ##//number//## (8 pour un ##[[KeyPgInteger Integer (entier)]]##, 16 pour un ##[[KeyPgLongint LongInt (entier long)]])##.
- If you want to do the opposite, i.e. convert a hexadecimal string back into a number, the easiest way to do it is to prepend the string with ##"&H"##, and convert it using ##[[KeyPgValint Valint]]## or ##[[KeyPgVallng Vallng]]##, similarly to a normal numeric string. E.g. ##[[KeyPgValint Valint]]("&HFF")##
+ Si vous désirez l'opposé, par exemple convertir une chaîne binaire vers un nombre, la meilleure façon de le faire est d'ajouter ##"&H"##, au début de la chaîne, et la convertir en utilisant ##[[KeyPgValint ValInt]]## ou ##[[KeyPgVallng ValLng]]##, de façon similaire à une chaîne numérique normale. Par exemple ##[[KeyPgValint ValInt]]("&HFF")##
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/hex.bas"}}%%(freebasic)
@@ -41,7 +41,7 @@ Print Hex(54321)
Print Hex(54321, 2)
Print Hex(54321, 5)
%%
- will produce the output:
+ produira la sortie:
%%D431
31
@@ -49,12 +49,12 @@ Print Hex(54321, 5)
%%
{{fbdoc item="lang"}}
- - The string type suffix ##"$"## is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix ##"$"## is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type chaîne ##"$"## est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type chaîne ##"$"## est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - In QBASIC, there was no way to specify the number of digits returned.
- - The size of the string returned was limited to 32 bits, or 8 hexadecimal digits.
+ - Dans QBASIC, il n'y avait aucun moyen de spécifier le nombre de chiffres retournés.
+ - La taille de la chaîne retournée était limitée à 32 bits, ou 8 chiffres hexadécimaux.
{{fbdoc item="see"}}
- ##[[KeyPgBin Bin]]##
diff --git a/fbdocs/manual/cache/KeyPgHibyte.wakka b/fbdocs/manual/cache/KeyPgHibyte.wakka
index 938ccf4ebc..4599da70d0 100644
--- a/fbdocs/manual/cache/KeyPgHibyte.wakka
+++ b/fbdocs/manual/cache/KeyPgHibyte.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="HIBYTE"}}----
-Gets the most-significant byte (MSB, or //hi-byte//) of the least-significant word (LSW, or //lo-word//) of an ##[[KeyPgUinteger Uinteger]]## value.
+Obtient la valeur de l'octet le plus significatif (MSB = Most-Significant Byte, ou //hi-byte//) du mot le moins significatif (LSW = Least-Significant Word, ou //lo-word//) d'une valeur ##[[KeyPgUinteger UInteger]]##.
{{fbdoc item="syntax"}}##
[[KeyPgPpdefine #define]] **Hibyte**( //expr// ) ( ( [[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//) [[KeyPgOpAnd and]] &h0000FF00 ) [[KeyPgOpShiftRight shr]] 8 )
@@ -9,13 +9,13 @@ Gets the most-significant byte (MSB, or //hi-byte//) of the least-significant wo
##
{{fbdoc item="param"}}
##//expr//##
- A numeric expression, converted to an ##[[KeyPgUinteger Uinteger]]## value.
+ A numeric expression, convertie en une valeur ##[[KeyPgUinteger UInteger]]##.
-{{fbdoc item="ret"}}
- Returns the MSB value of the LSW of `##[[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//)##`.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la valeur de l'octet le plus significatif du mot le moins significatif de `##[[KeyPgCast Cast]]([[KeyPgUinteger UInteger]], //expr//)##`.
{{fbdoc item="desc"}}
- This macro converts the numeric expression ##//expr//## to an ##[[KeyPgUinteger Uinteger]]## value, then expands to an [[KeyPgUinteger Uinteger]] representing the value of the MSB of its LSW. It behaves as `##[[KeyPgHibyte Hibyte]]([[KeyPgLoWord Loword]](//expr//))##`.
+ Cette macro convertit l'expression numérique ##//expr//## en une valeur ##[[KeyPgUinteger UInteger]]##, qu'elle développe ensuite en un [[KeyPgUinteger UInteger]] représentant la valeur du MSB de son LSW. Il se comporte comme `##[[KeyPgHibyte HiByte]]([[KeyPgLoWord LoWord]](//expr//))##`.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/bits/hibyte.bas"}}%%(freebasic)
@@ -32,7 +32,7 @@ PRINT "The binary representation of the LSB is "; BIN(LOBYTE(N))
SLEEP
%%
-The output would look like:
+La sortie donnera:
%%
N Is 43905
The Binary representation of N Is 1010101110000001
@@ -43,10 +43,10 @@ The Binary representation of the LSB Is 10000001
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__HIBYTE""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__HIBYTE**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgLoByte Lobyte]]##
diff --git a/fbdocs/manual/cache/KeyPgHiword.wakka b/fbdocs/manual/cache/KeyPgHiword.wakka
index 5a6309fa00..03badd842e 100644
--- a/fbdocs/manual/cache/KeyPgHiword.wakka
+++ b/fbdocs/manual/cache/KeyPgHiword.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="HIWORD"}}----
-Gets the most-significant word (MSW, or //hi-word//) of an ##[[KeyPgUinteger Uinteger]]## value.
+Obtient la valeur du mot le plus significatif (MSW = Most-Significant Word, ou //hi-word//) d'une valeur ##[[KeyPgUinteger UInteger]]##.
{{fbdoc item="syntax"}}##
[[KeyPgPpdefine #define]] **Hiword**( //expr// ) ( [[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//) [[KeyPgOpShiftRight shr]] 16 )
@@ -9,13 +9,13 @@ Gets the most-significant word (MSW, or //hi-word//) of an ##[[KeyPgUinteger Uin
##
{{fbdoc item="param"}}
##//expr//##
- A numeric expression, converted to an ##[[KeyPgUinteger Uinteger]]## value.
+ Une expression numérique, convertie en une valeur ##[[KeyPgUinteger UInteger]]##.
-{{fbdoc item="ret"}}
- Returns the MSW value of `##[[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//)##`.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la valeur du mot le plus significatif (MSW) de `##[[KeyPgCast Cast]]([[KeyPgUinteger UInteger]], //expr//)##`.
{{fbdoc item="desc"}}
- This macro converts the numeric expression ##//expr//## to an ##[[KeyPgUinteger Uinteger]]## value, then expands to an [[KeyPgUinteger Uinteger]] representing the value of its MSW.
+ Cette macro convertit l'expression numérique ##//expr//## en une valeur ##[[KeyPgUinteger UInteger]]##, qu'elle développe ensuite en un [[KeyPgUinteger UInteger]] représentant la valeur de son MSW.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/bits/hiword.bas"}}%%(freebasic)
@@ -34,7 +34,7 @@ PRINT "The binary representation of the LSW is "; BIN(LOWORD(N))
SLEEP
%%
-The output would look like:
+La sortie sera:
%%
N Is 2147614719
The Binary representation of N Is 10000000000000011111111111111111
@@ -45,10 +45,10 @@ The Binary representation of the LSW Is 1111111111111111
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__HIWORD""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__HIWORD**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgLoByte Lobyte]]##
diff --git a/fbdocs/manual/cache/KeyPgHour.wakka b/fbdocs/manual/cache/KeyPgHour.wakka
index af2ff16de1..ed3d6105fd 100644
--- a/fbdocs/manual/cache/KeyPgHour.wakka
+++ b/fbdocs/manual/cache/KeyPgHour.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="HOUR"}}----
-Gets the hour of day from a [[ProPgDates Date Serial]]
+Récupère l'heure à partir d'une [[ProPgDates Date Serial]]
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Hour** ( [[KeyPgByval byval]] //date_serial// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -10,28 +10,28 @@ Gets the hour of day from a [[ProPgDates Date Serial]]
##
{{fbdoc item="param"}}
##//date_serial//##
- the date serial
+ la "date serial"
-{{fbdoc item="ret"}}
- Returns the hour from a variable containing a date in [[ProPgDates Date Serial]] format.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne l'heure à partir d'une variable contenant une date sous forme de [[ProPgDates Date Serial]].
{{fbdoc item="desc"}}
-.
- The compiler will not recognize this function unless ##vbcompat.bi## is included.
+Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## est inclus.
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/dates/hour.bas"}}%%(freebasic)
#include "vbcompat.bi"
+Dim ds As Double = DateSerial(2005, 11, 28) + TimeSerial(7, 30, 50)
-dim ds as double = DateSerial(2005, 11, 28) + TimeSerial(7, 30, 50)
+Print Format(ds, "yyyy/mm/dd hh:mm:ss "); Hour(ds)
-print format(ds, "yyyy/mm/dd hh:mm:ss "); Hour(ds)
%%
-
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
-{{fbdoc item="see"}}
+- N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
+ {{fbdoc item="see"}}
+
+- [[ProPgDates Date Serials]]
- [[ProPgDates Date Serials]]
{{fbdoc item="back" value="CatPgDate|Date and Time Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgIfthen.wakka b/fbdocs/manual/cache/KeyPgIfthen.wakka
index d574550d0a..e91014de7a 100644
--- a/fbdocs/manual/cache/KeyPgIfthen.wakka
+++ b/fbdocs/manual/cache/KeyPgIfthen.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="IF...THEN"}}----
-Control flow statement for conditional branching
+Déclaration de contrôle de flux pour le branchement conditionnel
{{fbdoc item="syntax"}}##
**If** //expression// **Then** [//statement(s)//] [**Else** [//statement(s)//]] [**End If**]
-//or//
+//ou//
**If** //expression// **Then** : [//statement(s)//] [**Else** [//statement(s)//]] : **End If**
-//or//
+//ou//
**If** //expression// **Then**
[//statement(s)//]
[ **Elseif** //expression// **Then** ]
@@ -15,21 +15,21 @@ Control flow statement for conditional branching
**End If**
##
{{fbdoc item="desc"}}
- ##**If...Then**## is a way to make decisions. It is a mechanism to execute code only if a condition is true, and can provide alternative code to execute based on more conditions.
+ ##**If...Then**## est une méthode pour prendre des décisions. C'est un mécanisme qui permet d'exécuter du code que si une condition est vraie, et peut fournir une alternative de programmation de code à exécuter sur la base de plusieurs conditions.
- ##//expression//## can be one of several forms:
- - a conditional expression, for example:
+ ##//expression//## peut avoir une ces formes:
+ - une expression conditionnelle, par exemple:
##x = 5##
- - multiple conditions separated by logical bit-wise operators, for example:
+ - conditions multiples séparées par des opérateurs logiques bit à bit, par exemple:
##x >= 5 [[KeyPgOpAnd And]] x <= 10##
- - multiple conditions separated by logical short-circuit operators, for example:
+ - conditions multiples séparées par des opérateurs de court-circuit logique, par exemple:
##y <> 0 [[KeyPgOpAndAlso AndAlso]] x \ y = 1##
- (in this case, "##x \ y = 1##" will only be evaluated if "##y <> 0##" is True)
- - any numerical expression, in which case a value of zero (##0##) represents False, and a non-zero value represents True
+ (dans ce cas, "##x \ y = 1##" sera évalué seulement si "##y <> 0##" est Vrai (True))
+ - toute expression numérique, dans ce cas une valeur de zéro (##0##) représente False (Faux) et une valeur non-nulle représente True (Vrai)
- Both multi-line and single-line ##**If**##s can be nested. In the latter case, the optional ##**End If**##s can be useful to control where nested ##**If**##s begin and end.
+ Les ##**If**## multi/simple ligne peuvent être imbriqués. Dans ce dernier cas, les ##**End If**## facultatifs peuvent être utiles pour contrôler où les ##**If**## imbriqués commencent et finissent.
- In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects, colons (##:##) can be used instead of newlines to construct multi-line ##**If**## blocks on a single line.
+ Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//, deux-points (##:##) peuvent remplacer des lignes nouvelles pour construire des blocs ##**If**## multi-lignes sur une seule ligne.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/if-then.bas"}}%%(freebasic)
@@ -61,11 +61,11 @@ loop 'Go back to the start of the loop
%%
{{fbdoc item="lang"}}
- In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects, if there is a new line, a single-line comment (##'##), a colon (##:##), or a ##[[KeyPgRem Rem]]## statement directly after THEN, then the IF will be multi-line. Any other statement will result in a single-line IF.
- In the //[[CompilerOptlang -lang qb]]// dialect, if there is a new line or a single-line comment (##'##) directly after THEN, then the IF will be multi-line. A colon, a ##[[KeyPgRem Rem]]## or any other statement will result in a single-line IF.
+ Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//, s'il y a une nouvelle ligne, un commentaire sur une seule ligne (##'##), deux-points (##:##), ou une déclaration ##[[KeyPgRem Rem]]## directement après THEN, le IF sera multi-ligne. Toute autre déclaration donnera lieu à une seule ligne IF.
+ Dans le dialecte //[[CompilerOptlang -lang qb]]//, s'il y a une nouvelle ligne ou un commentaire sur une seule ligne (##'##) directement après THEN, le IF sera multi-lignes. Deux-points (##:##), un ##[[KeyPgRem Rem]]## ou toute autre déclaration donnera lieu à une seule ligne IF.
{{fbdoc item="diff"}}
- - END IF was not supported in single-line IFs in QBASIC.
+ - END IF n'était pas supporté dans les IF sur une seule ligne dans QBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgDoloop Do...Loop]]##
diff --git a/fbdocs/manual/cache/KeyPgIif.wakka b/fbdocs/manual/cache/KeyPgIif.wakka
index d48d9280d7..094e6a205d 100644
--- a/fbdocs/manual/cache/KeyPgIif.wakka
+++ b/fbdocs/manual/cache/KeyPgIif.wakka
@@ -1,31 +1,31 @@
{{fbdoc item="title" value="IIF"}}----
-Conditional function that returns one of two values.
+Fonction conditionnelle qui retourne une des deux valeurs.
{{fbdoc item="syntax"}}##
**IIf** ( //condition//, //expr_if_true//, //expr_if_false// )
##
{{fbdoc item="param"}}
##//condition//##
- The condition to test.
- A non-zero value evaluates as true, while a value of zero evaluates as false.
+ La condition à tester.
+ Une valeur non-nulle est équivalente à vrai (true), alors qu'une valeur de zéro est équivalente à faux (false).
##//expr_if_true//##
- An expression to evaluate and return if ##//condition//## is true.
- It must return a numeric value, which can be an integer, floating point number or a pointer.
+ Une expression à évaluer et à retourner si la ##//condition//## est vrai (true).
+ Elle doit retourner une valeur numérique, qui peut être un nombre entier, nombre à virgule flottante ou un pointeur.
##//expr_if_false//##
- An expression to evaluate and return if ##//condition//## is false.
- It must be the same type of number as ##//expr_if_true//##.
+ Une expression à évaluer et à retourner si la ##//condition//## est fausse (false).
+ Elle doit avoir le même type de nombre que ##//expr_if_true//##.
{{fbdoc item="desc"}}
- ##**IIf**## returns a different numeric value depending of the result of a conditional expression. Its typical use is in the middle of an expression; it avoids splitting it to put a conditional in the middle.
+ ##**IIf**## renvoie une valeur numérique différente selon le résultat d'une expression conditionnelle. Son utilisation typique est au milieu d'une expression; cela évite de la diviser pour placer une condition au milieu.
- ##**IIf**## only evaluates the expression that it needs to return. This saves time, and can also be useful to prevent evaluating expressions that might be invalid depending on the ##//condition//##.
+ ##**IIf**## n'évalue que l'expression dont il a besoin pour la retourner. Cela économise du temps, et peut également être utile pour prévenir l'évaluation d'expressions qui pourraient être invalides en fonction de l'état de ##//condition//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/iif.bas"}}%%(freebasic)
dim as integer a, b, x, y, z
a = (x + y + iif(b > 0, 4, 7)) \ z
%%
-is equivalent to:
+est équivalent à:
{{fbdoc item="filename" value="examples/manual/control/iif2.bas"}}%%(freebasic)
dim as integer a, b, x, y, z, temp
if b > 0 then temp = 4 else temp = 7
@@ -33,10 +33,10 @@ a = (x + y + temp) \ z
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Iif""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Iif**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgIfthen If...Then]]##
diff --git a/fbdocs/manual/cache/KeyPgImageConvertRow.wakka b/fbdocs/manual/cache/KeyPgImageConvertRow.wakka
index 12820d66f8..953cdd6112 100644
--- a/fbdocs/manual/cache/KeyPgImageConvertRow.wakka
+++ b/fbdocs/manual/cache/KeyPgImageConvertRow.wakka
@@ -1,20 +1,20 @@
-{{fbdoc item="title" value="IMAGECONVERTROW"}}----
-Converts a row of image data into another color depth
-
-{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgSub sub]] **""ImageConvertRow""** ( [[KeyPgByval byval]] //src// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]], [[KeyPgByval byval]] //src_bpp// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //dst// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]], [[KeyPgByval byval]] //dst_bpp// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //width// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //isrgb// [[KeyPgAs as]] [[KeyPgInteger integer]] = 1 )
-##
-{{fbdoc item="usage"}}##
- **""ImageConvertRow""**( //src//, //src_bpp//, //dst//, //dst_bpp//, //width// [, //isrgb// ] )
-##
-{{fbdoc item="param"}}
- ##//src//##
- The address of the start of the source row. The source can either be a full-color image with a bit depth of 24 or 32 bits per pixel, or a paletted image with a bit depth of 1-8 bits per pixel. Converting a paletted image will only work properly if you are in a screen mode that is using the correct palette for the image when you do the conversion.
- ##//src_bpp//##
- The number of bits per pixel in the source row. 1-8, 24 and 32.
- ##//dst//##
- The address of the start of the destination row. The image can be a full-color image of 16 or 32 bits per pixel. If the source is a paletted image, the destination can also be a paletted image of 1 to 8 bits per pixel.
- ##//dst_bpp//##
+{{fbdoc item="title" value="ImageConvertRow"}}----
+Convertit une ligne de données image dans une autre profondeur de couleur
{{fbdoc item="syntax"}}##
[[KeyPgDeclare Declare]] [[KeyPgSub Sub]] **ImageConvertRow** ( [[KeyPgByval ByVal]] //src// [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]], [[KeyPgByval ByVal]] //src_bpp// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //dst// [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]], [[KeyPgByval ByVal]] //dst_bpp// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //width// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //isrgb// [[KeyPgAs As]] [[KeyPgInteger Integer]] = 1 )
##
+
+{{fbdoc item="usage"}}##
**ImageConvertRow**( //src//, //src_bpp//, //dst//, //dst_bpp//, //width// [, //isrgb// ] )
##
+ {{fbdoc item="param"}}
##//src//##
L'adresse de départ de la ligne source. Lasource est soit une image pleine couleur (full-color) avec uneprofondeur de couleur de 24 ou 32 bits par pixel, soit une image avecpalette d'une profondeur de 1-8 bits par pixel. Convertir une imageavec palette ne fonctionnera correctement que si vous êtes dans un modeécran utilisant la palette correcte pour l'image lors de la conversion.
+##//src_bpp//##
Le nombre de bits par pixel dans la ligne source. 1-8, 24 et 32.
+##//dst//##
L'adresse du début de la ligne destination.L'image peut être une image pleine couleur de 16 ou 32 bits par pixel.Si la source est une image avec palette, la destination peut aussi êtreune image avec palette de 1 à 8 bits par pixel.
+ ##//dst_bpp//##
Le nombre de bits par pixel dans la ligne destination. Valeurs valides: 1-8, 16 et 32.
+##//width//##
La longueur de la ligne en pixels.
+##//isrgb//##
Une valeur de zéro indique que les canaux Rougeet Bleu sont l'autre voie dans l'image source. Utilisez cet indicateursi vous voulez que les canaux Rouge et Bleu doivent être permutéspendant la conversion.
+ {{fbdoc item="desc"}}
Copie une ligne d'une image d'uneposition mémoire vers une autre, convertit l'information couleur dechaque pixel pour correspondre à l'image destination.
+ {{fbdoc item="ex"}}
%%(freebasic)
+ #include "fbgfx.bi"
#if __FB_LANG__ = "fb"
Using FB
#endif
Const As Integer w = 64, h = 64
Dim As IMAGE Ptr img8, img32
Dim As Integer x, y
'' Cree une image 32-bit, taille w*h:
ScreenRes 1, 1, 32, , GFX_NULL
img32 = ImageCreate(w, h)
If img32 = 0 Then Print "Imagecreate failed on img32!": Sleep: End
'' Cree une image 8-bit, taille w*h:
ScreenRes 1, 1, 8, , GFX_NULL
img8 = ImageCreate(w, h)
If img8 = 0 Then Print "Imagecreate failed on img8!": Sleep: End
'' Remplit image 8-bit avec un motif
For y = 0 To h - 1
For x = 0 To w - 1
PSet img8, (x, y), 56 + (x + y) Mod 24
Next x
Next y
'' Ouvre une fenetre graphique en mode 8-bit, et PUT l' image dans celle-ci:
ScreenRes 320, 200, 8
WindowTitle "8-bit color mode"
Put (10, 10), img8
Sleep
'' Copie les donnees image dans une image 32-bit
Dim As Byte Ptr p8, p32
Dim As Integer pitch8, pitch32
#ifndef ImageInfo '' older versions of FB don't have the ImageInfo feature
#define GETPITCH(img_) IIf(img_->Type=PUT_HEADER_NEW,img_->pitch,img_->old.width*img_->old.bpp)
#define GETP(img_) CPtr(Byte Ptr,img_)+IIf(img_->Type=PUT_HEADER_NEW,SizeOf(PUT_HEADER),SizeOf(_OLD_HEADER))
pitch8 = GETPITCH(img8): p8 = GETP(img8)
pitch32 = GETPITCH(img32): p32 = GETP(img32)
#else
ImageInfo( img8, , , , pitch8, p8 )
ImageInfo( img32, , , , pitch32, p32 )
#endif
For y = 0 To h - 1
ImageConvertRow(@p8 [ y * pitch8 ], 8, _
@p32[ y * pitch32], 32, _
w)
Next y
'' Ouvre une fenetre graphique en mode 32-bit et PUT l' image sur celle-ci:
ScreenRes 320, 200, 32
WindowTitle "32-bit color mode"
Put (10, 10), img32
Sleep
'' Libere la memoire des images:
ImageDestroy img8
ImageDestroy img32
+ ##
+ {{fbdoc item="lang"}}
- Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__ImageConvertRow**##.
+ {{fbdoc item="diff"}}
- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
- ##[[KeyPgScreenres ScreenRes]]##
- ##[[KeyPgGetgraphics Get (Graphique)]]##
- ##[[KeyPgPutgraphics Put (Graphique)]]##
- ##[[KeyPgImagecreate ImageCreate]]##
- ##[[KeyPgImageDestroy ImageDestroy]]##
- ##[[KeyPgImageInfo ImageInfo]]##
The number of bits per pixel in the destination row. Valid values for this are 1-8, 16 and 32.
##//width//##
The length of the row in pixels.
diff --git a/fbdocs/manual/cache/KeyPgImageDestroy.wakka b/fbdocs/manual/cache/KeyPgImageDestroy.wakka
index c2eea94fb3..9ff39025eb 100644
--- a/fbdocs/manual/cache/KeyPgImageDestroy.wakka
+++ b/fbdocs/manual/cache/KeyPgImageDestroy.wakka
@@ -1,28 +1,28 @@
{{fbdoc item="title" value="IMAGEDESTROY"}}----
-Destroys and deallocates storage for an image
+Détruit et libère une image (stockage en mémoire)
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgSub sub]] **""ImageDestroy""** ( [[KeyPgByval byval]] //image// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
+ [[KeyPgDeclare Declare]] [[KeyPgSub Sub]] **ImageDestroy** ( [[KeyPgByval ByVal]] //image// [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]] )
##
{{fbdoc item="usage"}}##
- **""ImageDestroy""**( //image// )
+ **ImageDestroy**( //image// )
##
{{fbdoc item="param"}}
##//image//##
- The address of the image to destroy.
+ Adresse de l'image à détruire.
{{fbdoc item="desc"}}
- Destroys the image pointed to by ##//image//##, which must be an address returned from a call to ##[[KeyPgImagecreate ImageCreate]]##.
+ Détruit l'image pointée par ##//image//##, qui doit être une adresse retournée par un appel à ##[[KeyPgImagecreate ImageCreate]]##.
{{fbdoc item="ex"}}
- See ##[[KeyPgImagecreate ImageCreate]]## for an example on using ##**""ImageDestroy""**##.
+ Voir la fonction ##[[KeyPgImagecreate ImageCreate]]## pour un exemple d'utilisation de ##**ImageDestroy**##.
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Imagedestroy""**##.
+{{fbdoc item="section" value="Différences de Dialecte
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Imagedestroy**##.
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+{{fbdoc item="section" value="Differences avec QB
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgImagecreate ImageCreate]]##
diff --git a/fbdocs/manual/cache/KeyPgImageInfo.wakka b/fbdocs/manual/cache/KeyPgImageInfo.wakka
index ebf0167c94..b9fb4e301b 100644
--- a/fbdocs/manual/cache/KeyPgImageInfo.wakka
+++ b/fbdocs/manual/cache/KeyPgImageInfo.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="IMAGEINFO"}}----
-Retrieves information about an image
+Récupère les informations sur une image
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Imageinfo** ( [[KeyPgByval byval]] //image// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]], [[KeyPgByref byref]] //width// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //height// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //bypp// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //pitch// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0, [[KeyPgByref byref]] //pixdata// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] = 0, [[KeyPgByref byref]] //size// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,29 +9,94 @@ Retrieves information about an image
##
{{fbdoc item="param"}}
##//image//##
- The address of the image.
+ L'addresse de l'image.
##//width//##
- Stores the width of the image, in pixels.
+ Stocke la largeur de l'image, en pixels.
##//height//##
- Stores the height of the image, in pixels.
+ Stocke la hauteur de l'image, en pixels.
##//bypp//##
- Stores the bytes per pixel of the image - i.e. the size of a single pixel, in bytes.
+ Stocke le nombre d'octets par pixel de l'image - c.a.d. la taille d'un seul pixel, en octets.
##//pitch//##
- Stores the pitch of the image - i.e. the size of each scanline (row), in bytes. Note that this may be more than just ##//width// * //bypp//##, because the scanlines may be padded to allow them to be aligned better in memory.
- ##//pixdata//##
- Stores the address of the start of the first scanline of the image.
- ##//size//##
- Stores the size of the image in memory, in bytes.
+ Stocke le "pitch" de l'image - c.a.d. la taille de chaque ligne (row), en octets.
+ Notez que ceci est meilleur que simplement ##//width (largeur)// * //bypp//##, car les lignes peuvent être modifiées pour un meilleur alignement en mémoire.
+ ##//pixdata//##
+ Stocke l'adresse de début de la première ligne de l'image.
+ ##//size//##
-{{fbdoc item="ret"}}
- If ##//image//## doesn't point to a valid image, one (##1##) is returned. Otherwise, ##//width//##, ##//height//##, ##//bypp//##, ##//pitch//##, ##//pixdata//## and ##//size//## are assigned appropriate values, and zero (##0##) is returned.
+Stocke la taille de la mémoire image, en octets.
+ {{fbdoc item="section" value="Valeur Retournée
-{{fbdoc item="desc"}}
- ##**""ImageInfo""**## provides various information about an image, such as its dimensions and color depth, but also provides you with the information you need to directly access all the pixel data in the pixel buffer.
+Si ##//image//## ne pointe pas sur une image valide, un (##1##) est retourné. Sinon, ##//width//##, ##//height//##, ##//bypp//##, ##//pitch//##, ##//pixdata//## et ##//size//## reçoivent les valeurs appropriées, et zéro (##0##) est retourné.
+ {{fbdoc item="desc"}}
- It can also provide the size of the image in memory, which is useful for allocating memory to copy the existing image, or to write the image to a file.
+ ##**ImageInfo**## procure des informations variées sur une image, comme ses dimensions et sa profondeur de couleur, mais aussi les informations nécessaires pour accéder directement à toutes les données pixel du tampon.
+##**ImageInfo**## procure aussi la taille de l'image en mémoire, ce qui est utile pour l'allocation de mémoire pour copier l'image existante, ou pour écrire l'image dans un fichier.
{{fbdoc item="ex"}}
+'' pixelptr(): use imageinfo() to find the pointer to a pixel in the image
+'' Cree ecran graphique 32-bit et image.
+ScreenRes 320, 200, 32
+
+ Dim image As Any Ptr = ImageCreate( 64, 64 )
+ Dim pitch As Integer
+ Dim pixels As Any Ptr
+
+ '' Obtient assez d'informations pour se deplacer dans donnees pixel.
+
+ If 0 <> ImageInfo( image, ,,, pitch, pixels ) Then
+ Print "unable to retrieve image information."
+ Sleep
+ End
+ End If
+ '' Dessine un motif sur l'image en manipulant directement pixel en memoire.
+ For y As Integer = 0 To 63
+
+Dim row As UInteger Ptr = pixels + y * pitch
+
+For x As Integer = 0 To 63
+
+row[x] = RGB(x * 4, y * 4, (x Xor y) * 4)
+Next x
+
+Next y
+
+'' Dessine l'image sur l'screen.
+
+Put (10, 10), image
+
+ImageDestroy( image )
+
+ Sleep
+ %%
+
+
+
+ {{fbdoc item="lang"}}
+ - Non accessible en dialecte //[[CompilerOptlang -lang qb]]// saut si référencé avec l'alias ##**__Imageinfo**##.
+ {{fbdoc item="diff"}}
+
+ - Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
+
+ - ##[[KeyPgImagecreate ImageCreate]]##
+
+ - ##[[KeyPgImageDestroy ImageDestroy]]##
+
+ - ##[[KeyPgImageConvertRow ImageConvertRow]]##
+ - ##[[KeyPgGetgraphics Get (Graphique)]]##
+ - ##[[KeyPgPutgraphics Put (Graphique)]]##
+
+ - [[GfxInternalFormats Formats graphiques internes]]
+ imagedestroy ip
+
+else
+ print "Error creating image!"
+end if
+
+sleep
+%%
+{{image class="center" title="Output image for pixelptr() example" url="/images/pixelptr.png"}}
+
{{fbdoc item="filename" value="examples/manual/gfx/imageinfo.bas"}}%%(freebasic)
'' Create 32-bit graphics screen and image.
screenres 320, 200, 32
@@ -65,7 +130,6 @@ sleep
%%
{{image class="center" title="Output image for ImageInfo example" url="/images/imageinfo.png"}}
-
{{fbdoc item="lang"}}
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Imageinfo""**##.
diff --git a/fbdocs/manual/cache/KeyPgImagecreate.wakka b/fbdocs/manual/cache/KeyPgImagecreate.wakka
index c9561a6bb0..b57e37e191 100644
--- a/fbdocs/manual/cache/KeyPgImagecreate.wakka
+++ b/fbdocs/manual/cache/KeyPgImagecreate.wakka
@@ -1,53 +1,55 @@
-{{fbdoc item="title" value="IMAGECREATE"}}----
-Allocates and initializes storage for an image
-
-{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""ImageCreate""** [[KeyPgOverload overload]] ( [[KeyPgByval byval]] //width// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //height// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //color// [[KeyPgAs as]] [[KeyPgUinteger uinteger]] = **transparent_color** ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""ImageCreate""** ( [[KeyPgByval byval]] //width// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //height// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //color// [[KeyPgAs as]] [[KeyPgUinteger uinteger]] = **transparent_color**, [[KeyPgByval byval]] //depth// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]]
-##
-{{fbdoc item="usage"}}##
- //result// = **""ImageCreate""**( //width//, //height// [, [ //color// ][, //depth// ]] )
-##
-{{fbdoc item="param"}}
- ##//width//##
- The desired width, in number of pixels.
- ##//height//##
- The desired height, in number of pixels.
- ##//color//##
- The pixel value to fill the area of the image.
- ##//depth//##
- The desired color depth, in bits per pixel.
-
-{{fbdoc item="ret"}}
- If the image could not be created, NULL (##0##) is returned. Otherwise, the address of the image is returned.
-
-{{fbdoc item="desc"}}
- Both procedures attempt to allocate memory for an image of the specified ##//width//## and ##//height//##. If not successful, NULL (##0##) is returned. Otherwise, an image of that size is created and initialized by filling the entire area of pixels with the value ##//color//##. If not specified, ##//color//## assumes the value of the transparent color for the current graphics screen, which can be found by calling ##[[KeyPgScreencontrol ScreenControl]]##. In any case, the address of the image is returned, which is then controlled by the user, and must be destroyed using ##[[KeyPgImageDestroy ImageDestroy]]##.
-
- The first procedure creates an image with a color depth matching that of the current graphics screen, which can be found by calling ##[[KeyPgScreencontrol ScreenControl]]##. The second procedure creates an image with a color depth of ##//depth//##, in bits per pixel. For both procedures, the resulting image can be used in drawing procedures while in any screen mode -- and across mode changes -- as long as the color depth of the image matches that of the graphics screen.
-
- ##**""ImageCreate""**## is the recommended way to allocate memory for new images. The memory layout -- size, structure, etc. -- while documented, may change from version to version, making manual calculation of the sizes involved error-prone. However, ##[[KeyPgImageInfo ImageInfo]]## can be used to retrieve, among other things, the size, in bytes, of an existing image, allowing memory to be manually allocated for a copy of an image, or to be read from or written to a file or device.
-
- ##[[KeyPgGetgraphics Get (Graphics)]]## can be used to initialize an image using pre-allocated memory.
-
-{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/gfx/imagecreate.bas"}}%%(freebasic)
-'' Create a graphics screen.
-screenres 320, 200, 32
-
-'' Create a 64x64 pixel image with a darkish green background.
-dim image as any ptr = imagecreate( 64, 64, rgb(0, 128, 0) )
-
-if image = 0 then
- print "Failed to create image."
- sleep
- end -1
-end if
-
-'' Draw a semi-transparent, red circle in the center of the image.
-circle image, (32, 32), 28, rgba(255, 0, 0, 128),,, 1.0, f
-
-'' Draw the image onto the screen using various blitting methods.
+{{fbdoc item="title" value="ImageCreate"}}----
+Alloue et initialise une image (stockage en mémoire)
{{fbdoc item="syntax"}}##
[[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **ImageCreate** [[KeyPgOverload Overload]] ( [[KeyPgByval ByVal]] //width// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //height// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //color// [[KeyPgAs As]] [[KeyPgUinteger UInteger]] = **transparent_color** ) [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]]
+
+[[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **ImageCreate** ( [[KeyPgByval ByVal]] //width// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //height// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //color// [[KeyPgAs As]] [[KeyPgUinteger UInteger]] = **transparent_color**, [[KeyPgByval ByVal]] //depth// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgAny Any]] [[KeyPgPtr Ptr]]
+ ##
+ {{fbdoc item="usage"}}##
//result// = **ImageCreate**( //width//, //height// [, [ //color// ][, //depth// ]] )
+##
+{{fbdoc item="param"}}
##//width//##
La largeur désirée, en nombre de pixels.
+ ##//height//##
La hauteur désirée, en nombre de pixels.
+##//color//##
Valeur du pixel pour remplir l'image.
+##//depth//##
La profondeur de couleur, en bits par pixel.
+ {{fbdoc item="section" value="Valeur renvoyée
+
Si l'image ne peut être créée NULL (##0##) est renvoyé. Sinon, c'est l'adresse de l'image qui est renvoyée.
+ {{fbdoc item="desc"}}
Les deux procédures essaient d'allouer de la mémoire pour une image de dimensions: ##//width (largeur)//## et ##//height(hauteur)//##. Si échec, un NULL (##0##) est renvoyé. Sinon, une image est créée et initialisée en la remplissant entièrement avec des pixels de valeur ##//color//##. Si omis, ##//color//## prend la valeur de la couleur transparente pour l'écran graphique courant, qui peut être déterminée en appelant ##[[KeyPgScreencontrol ScreenControl]]##. Dans tous les cas, l'adresse de l'image est retournée, qui est ensuite contrôlée par l'utilisateur, et peut être détruite en utilisant ##[[KeyPgImageDestroy ImageDestroy]]##.]]##.
La première procédure crée une image avec une profondeur de couleur correspondant à celle de l'écran graphique courant, qui peut être déterminée en appelant ##[[KeyPgScreencontrol ScreenControl]]##. La seconde procédure crée une image avec une profondeur de couleur ##//depth//##, en bits par pixel. Pour chaque procédure, l'image obtenue peut être utilisée dans l'élaboration de procédures dans n'importe quel mode écran - et à travers les changements de mode - tant que la profondeur de couleur de l'image correspond à celle de l'écran graphique.
+
Les images inutiles seront détruites avec ##[[KeyPgImageDestroy ImageDestroy]]##, pour éviter des problèmes de mémoire.
##**ImageCreate**## est la méthode recommandée pour allouer de la mémoire pour de nouvelles images. La disposition de la mémoire - la taille, structure, etc - bien que documentée, peut changer d'une version à une autre, rendant le calcul manuel des tailles difficile et sujet à erreurs. Cependant, ##[[KeyPgImageInfo ImageInfo]]## peut être utilisé pour déterminer, entre autres, la taille, en octets, d'une image existant, permettant ainsi d'allouer de la mémoire manuellement pour une copie d'image, ou pour une lecture ou une écriture à partir d'un fichier ou d'un "device".
+
##[[KeyPgGetgraphics Get (Graphique)]]## peut être utilisé pour initialiser une image en utilisant la mémoire pré-allouée.
+
+ {{fbdoc item="ex"}}
%%(freebasic)
+ '' Cree un ecran graphique.
+
+ScreenRes 320, 200, 32
+ '' Cree une image 64x64 pixels avec un arriere-plan vert fonce.
+
+ Dim image As Any Ptr = ImageCreate( 64, 64, RGB(0, 128, 0) )
+
+If image = 0 Then
+ Print "Failed to create image."
+
+ Sleep
+
+ End -1
+
+ End If
+
+'' Dessine un cercle rouge semi-transparent, au centre de l'image.
+Circle image, (32, 32), 28, RGBA(255, 0, 0, 128),,, 1.0, f
+'' Dessine l'image sur l'ecran en utilisant differentes methodes.
+Put (120, 60), image, PSet
+
+Put (140, 80), image, Alpha
+'' Detruit l'image.
+
+ImageDestroy image
+ Sleep
+ ##
+
+{{fbdoc item="section" value="Différences de Dialecte
+
+
- Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf référencé avec l'alias ##**__Imagecreate**##.
+{{fbdoc item="diff"}}
- Nouveau pour FreeBASIC
+
+{{fbdoc item="see"}}
- ##[[KeyPgGetgraphics Get (Graphique)]]##
- ##[[KeyPgImageInfo ImageInfo]]##
- ##[[KeyPgImageDestroy ImageDestroy]]##
- [[GfxInternalFormats Formats graphiques internes]]
put (120, 60), image, pset
put (140, 80), image, alpha
diff --git a/fbdocs/manual/cache/KeyPgImport.wakka b/fbdocs/manual/cache/KeyPgImport.wakka
index f50a2f83cb..422b12218b 100644
--- a/fbdocs/manual/cache/KeyPgImport.wakka
+++ b/fbdocs/manual/cache/KeyPgImport.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="IMPORT"}}----
-External linkage attribute for public data located in DLL's
+Attribut de liaison externe pour des données publiques situées dans une DLL
{{fbdoc item="syntax"}}##
[[KeyPgExtern Extern]] **Import** //symbolname//[( //subscripts//)] [ [[KeyPgAlias alias]] "//aliasname//"] [ [[KeyPgAs as]] [[DataType DataType]]] [, ...]
##
{{fbdoc item="desc"}}
- Is used only on Win32 platforms with the ##[[KeyPgExtern Extern]]## keyword and is needed to access global variables in DLLs. This is due to the level of indirection on any such access: an implicit pointer dereference.
+ Est utilisé seulement sur les plates-formes Win32 avec le mot-clef ##[[KeyPgExtern Extern]]## et est nécessaire pour accéder aux variables globales dans les DLLs. Cela est dû au niveau d'indirection sur un tel accès: une déréférence de pointeur implicite.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/mydll.c"}}%%(c)
@@ -33,10 +33,10 @@ Print "&h" + Hex( MyDll_Data )
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Import""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Import**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgExtern Extern]]##
diff --git a/fbdocs/manual/cache/KeyPgInclib.wakka b/fbdocs/manual/cache/KeyPgInclib.wakka
index dc347bd2f7..e129b98169 100644
--- a/fbdocs/manual/cache/KeyPgInclib.wakka
+++ b/fbdocs/manual/cache/KeyPgInclib.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="#INCLIB"}}----
-Preprocessor directive
+Directive du préprocesseur
{{fbdoc item="syntax"}}##
**#inclib** //"libname"//
##
{{fbdoc item="desc"}}
- Includes a library in the linking process as if the user specified ##[[CompilerOptl -l libname]]## on the command line.
+ Inclusion d'une librairie dans le processus de lien comme si l'utilisateur spécifiait ##[[CompilerOptl -l libname]]## sur la ligne de commande.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/inclib.bas"}}%%(freebasic)
@@ -16,11 +16,11 @@ Preprocessor directive
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgInclude #include]]##
- - [[CompilerOptl Compiler Option: -l]]
- - [[CompilerOptp Compiler Option: -p]]
+ - [[CompilerOptl Option du compilateur: -l]]
+ - [[CompilerOptp Option du compilateur: -p]]
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgInclude.wakka b/fbdocs/manual/cache/KeyPgInclude.wakka
index f0ac96d6cc..36815a6090 100644
--- a/fbdocs/manual/cache/KeyPgInclude.wakka
+++ b/fbdocs/manual/cache/KeyPgInclude.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="#INCLUDE"}}----
-Preprocessor statement to include contents of another source file
+Directive du préprocesseur pour inclure le contenu d'un autre fichier source
{{fbdoc item="syntax"}}##
**#include** [once] //"file"//
##
{{fbdoc item="desc"}}
- ##**#include**## inserts source code from another file at the point where the ##**#include**## directive appears. This has the effect of compiling the source code from the include file as though it were part of the source file that includes it. Once the compiler has reached the end of the include file, the original source file continues to be compiled.
+ ##**#include**## insère le code source d'un autre fichier à l'endroit où la directive ##**#include**## apparaît. Cela revient à compiler le code source du fichier inclus comme si c'était une partie du fichier source où il est inclus. Dès que le compilateur a atteint la fin du fichier inclus, la compilation du fichier source d'origine continue.
- This is useful to remove code from a file and separate it into more files. It is useful to have a single file with declarations in a program formed by several modules. You may include files within an include file, although avoid including the original file into itself, this will not produce valid results. Typically, include files will have an extension of ##.bi## and are mainly used for declaring subs/functions/variables of a library, but any valid source code may be present in an include file.
+ Ceci est utile pour supprimer du code d'un fichier et le séparer en plusieurs fichiers. Il est utile d'avoir les déclarations dans un seul fichier dans un programme constitué de plusieurs modules. Vous pouvez inclure des fichiers dans un "fichier include", afin d'éviter d'inclure le fichier d'origine en lui-même, cela pas produira pas des résultats valides. En règle générale, les fichiers "include" ont une extension ##.bi## et sont principalement utilisés pour déclarer des sous-programmes / fonctions / variables d'une librairie, mais n'importe quel code source valide peut être présent dans un "fichier include".
- The ##**once**## specifier tells the compiler to include the file only once even if it is included several times by the source code.
+ Le spécificateur ##**once**## indique au compilateur de n'inclure le fichier qu'une seule fois, même s'il est inclus à plusieurs reprises dans le code source.
- ##[[KeyPgMetaInclude $Include]]## is an alternative form of ##**include**##, existing only for compatibility with ""QuickBASIC"". It is recommended to use ##**#include**## instead.
+ ##[[KeyPgMetaInclude $Include]]## est une forme alternative pour ##**include**## qui n'existe que pour la compatibilité avec QuickBASIC. Il est recommandé d'utiliser ##**#include**## à la place.
- The compiler will automatically convert path separator characters ( '**##/##**' and '**##\##**' ) as needed to properly load the file. The filename name may be an absolute or relative path.
+ Le compilateur va automatiquement convertir les caractères séparateur de chemin ( '**##/##**' et '**##\##**' ) comme nécessaire pour charger correctement le fichier. Le nom de fichier peut être un chemin absolu ou relatif.
- For relative paths, or where no path is given at all, the include file is search for in the following order:
- - Relative from the directory of the source file
- - Relative from the current working directory
- - Relative from addition directories specified with the //[[CompilerOpti -i]]// command line option
- - The include folder of the ""FreeBASIC"" installation (##**""FreeBASIC""\inc**##, where ##**""FreeBASIC""**## is the folder where the ##**fbc**## executable is located)
+ Pour les chemins relatifs, ou si aucun chemin d'accès n'est donné, le fichier d'inclusion est recherché dans l'ordre suivant:
+ - Relatif par rapport au répertoire du fichier source
+ - Relatif par rapport au répertoire de travail courant
+ - Relatif par rapport aux répertoires additionnels specifiés avec l'option //[[CompilerOpti -i]]// de la ligne de commande
+ - Le dossier "include" de l'installation de FreeBASIC (##**FreeBASIC\inc**##, où ##**FreeBASIC**## est le dossier où est situé l'exécutable ##**fbc**##)
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/header.bi"}}%%(freebasic)
@@ -40,11 +40,11 @@ Foo.Bar = 1
Foo.Barbeque = 2
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
- ##[[KeyPgInclib #inclib]]##
- - [[CompilerOpti Compiler Option: -i]]
+ - [[CompilerOpti Option du compilateur: -i]]
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgInkey.wakka b/fbdocs/manual/cache/KeyPgInkey.wakka
index 27941d12e2..8f2fa6c30e 100644
--- a/fbdocs/manual/cache/KeyPgInkey.wakka
+++ b/fbdocs/manual/cache/KeyPgInkey.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="INKEY"}}----
-Returns a string representing the first key waiting in the keyboard buffer
+Renvoie une chaîne représentant la première touche en attente dans la mémoire tampon du clavier
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Inkey** ( ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -7,17 +7,17 @@ Returns a string representing the first key waiting in the keyboard buffer
{{fbdoc item="usage"}}##
//result// = **Inkey**[$]
##
-{{fbdoc item="ret"}}
- The first character found in the keyboard buffer, or an empty string (##"####"##) if none found.
+{{fbdoc item="section" value="Valeur retournée
+ Le premier caractère trouvé dans le tampon de clavier ou une chaîne vide (##"####"##) si rien n'est trouvé.
{{fbdoc item="desc"}}
- Peeks into the keyboard buffer and returns a ##[[KeyPgString String]]## representation of the first character, if any, found. The key is then removed from the buffer, and is not echoed to the screen. If the keyboard buffer is empty, an empty string (##"####"##) is immediately returned without waiting for keys.
+ Vérifie rapidement dans la mémoire tampon du clavier et retourne une représentation ##[[KeyPgString String]]## du premier caractère, s'il y en a un de trouvé. La touche est ensuite retirée de la mémoire tampon et n'est pas envoyée à l'écran. Si la mémoire tampon du clavier est vide, une chaîne vide (##"####"##) est retournée immédiatement, sans attendre d'autres touches.
- If the key is in the ASCII character set, a one-character ##[[KeyPgString String]]## consisting of that character is returned. If the key is an "extended" one (numeric pad, cursors, functions) a two-character ##[[KeyPgString String]]## is returned, the first of which is the extended character (//See dialect differences below//)
+ Si la valeur est dans le jeu de caractères ASCII, une ##[[KeyPgString String]]## d'un seul caractère correspondant à cette valeur est retournée. Si la touche est une touche "étendue" (pavé numérique, curseur, fonctions) une ##[[KeyPgString String]]## de deux caractères est retournée, dans laquelle le premier représente le caractère étendu (//Voir ci-dessous différences de dialecte//)
- The ""Shift"", ""Ctrl"", ""Alt"", and ""AltGr"" keys can't be read independently by this function as they never enter the keyboard buffer (although, perhaps obviously, Shift-A will be reported by ##**Inkey**## differently than Control-A et cetera; Alt-A is an extended key a la the above).
+ Les touches Shift, Ctrl, Alt et AltGr ne peut pas être lues indépendamment par cette fonction car elles n'entrent jamais dans la mémoire tampon du clavier (bien que, de toute évidence, Shift-A sera signalé par ##**Inkey**## différemment de Control-A et ainsi de suite; Alt-A est une touche étendue comme ci-dessus).
- See also ##[[KeyPgInputnum Input()]]## or ##[[KeyPgGetkey Getkey]]##, or ##[[KeyPgSleep Sleep]]## to wait for a key press if the keyboard buffer is empty.
+ Voir aussi ##[[KeyPgInputnum Input()]]## ou ##[[KeyPgGetkey GetKey]]##, ou ##[[KeyPgSleep Sleep]]## pour attendre une touche si la mémoire tampon du clavier est vide.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/input/inkey.bas"}}%%(freebasic)
@@ -50,51 +50,61 @@ Do
Case Chr$(27): Print "Escape"
Case Chr$(32) To Chr$(127)
- Print "Printable character: " & k
+
+ Print "Printable character: " & k
Case EXTCHAR & "G": Print "Up Left / Home"
- Case EXTCHAR & "H": Print "Up"
- Case EXTCHAR & "I": Print "Up Right / PgUp"
+ Case EXTCHAR & "H": Print "Up"
+ Case EXTCHAR & "I": Print "Up Right / PgUp"
Case EXTCHAR & "K": Print "Left"
Case EXTCHAR & "L": Print "Center"
- Case EXTCHAR & "M": Print "Right"
+ Case EXTCHAR & "M": Print "Right"
Case EXTCHAR & "O": Print "Down Left / End"
Case EXTCHAR & "P": Print "Down"
- Case EXTCHAR & "Q": Print "Down Right / PgDn"
+ Case EXTCHAR & "Q": Print "Down Right / PgDn"
Case EXTCHAR & Chr$(59) To EXTCHAR & Chr$(68)
- Print "Function key: F" & Asc(k, 2) - 58
+ Print "Function key: F" & Asc(k, 2) - 58
Case EXTCHAR & Chr$(133) To EXTCHAR & Chr$(134)
- Print "Function key: F" & Asc(k, 2) - 122
+ Print "Function key: F" & Asc(k, 2) - 122
+
Case Else
- If Len(k) = 2 Then
- Print Using "Extended character: chr$(###, ###)"; Asc(k, 1); Asc(k, 2)
- ElseIf Len(k) = 1 Then
- Print Using "Character chr$(###)"; Asc(k)
- End If
- End Select
+ If Len(k) = 2 Then
+ Print Using "Extended character: chr$(###, ###)"; Asc(k, 1); Asc(k, 2)
- If k = Chr$(27) Then Exit Do
+ ElseIf Len(k) = 1 Then
+ Print Using "Character chr$(###)"; Asc(k)
- Sleep 1, 1
+ End If
+ End Select
+ If k = Chr$(27) Then Exit Do
+ Sleep 1, 1
+ Loop
+ %%
-Loop
-%%
+ {{fbdoc item="lang"}}
+
+ - Le caractère étendu est ##[[KeyPgChr Chr]](255)## dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//.
+
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, le caractère étendu dépend de la façon dont le mot-clé est écrit. Si la forme ##**Inkey$**## est utilisée, le caractère étendu est ##[[KeyPgChr Chr]](0)##. Si elle est référencée comme ##**__Inkey**##, le char est étendu ##[[KeyPgChr Chr]](255)##.
-{{fbdoc item="lang"}}
- - The extended character is ##[[KeyPgChr Chr]](255)## in the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
- - In the //[[CompilerOptlang -lang qb]]// dialect, the extended character depends on how the keyword is written. If the QB form ##**Inkey$**## is used, the extended character is ##[[KeyPgChr Chr]](0)##. If it is referenced as ##**""__Inkey""**##, the extended char is ##[[KeyPgChr Chr]](255)##.
- - In all other dialects, the extended char is always ##[[KeyPgChr Chr]](255)##.
- - The string type suffix ##$## is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects, but required in the //[[CompilerOptlang -lang qb]]// dialect.
+- Dans tous les autres dialectes, le caractère étendu est toujours ##[[KeyPgChr Chr]](255)##.
+- Le suffixe de type chaîne ##$## est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//, mais nécessaire en dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - None in the //[[CompilerOptlang -lang qb]]// dialect.
- - QBasic returned a ##[[KeyPgChr Chr]](0)## as the first character for an extended key, but FreeBASIC returns ##[[KeyPgChr Chr]](255)## as the first character in the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - Aucune dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - QBasic retourne un ##[[KeyPgChr Chr]](0)## comme premier caractère pour une touche étendue, mais FreeBASIC retourne ##[[KeyPgChr Chr]](255)## comme premier caractère dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//.
+ {{fbdoc item="see"}}
+ - ##[[KeyPgSleep Sleep]]##
+
+- ##[[KeyPgGetkey GetKey]]##
+ - ##[[KeyPgInputnum Input()]]##
+ - ##[[KeyPgMultikey MultiKey]]##
{{fbdoc item="see"}}
- ##[[KeyPgSleep Sleep]]##
diff --git a/fbdocs/manual/cache/KeyPgInp.wakka b/fbdocs/manual/cache/KeyPgInp.wakka
index ff2190001f..ddc5aa179a 100644
--- a/fbdocs/manual/cache/KeyPgInp.wakka
+++ b/fbdocs/manual/cache/KeyPgInp.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="INP"}}----
-Returns a value at a hardware port.
+Retourne une valeur depuis un port "hardware".
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Inp** ( [[KeyPgByval byval]] //port// [[KeyPgAs as]] [[KeyPgUshort ushort]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,24 +9,24 @@ Returns a value at a hardware port.
##
{{fbdoc item="param"}}
##//port//##
- Port number to read.
+ Numéro du port à lire.
-{{fbdoc item="ret"}}
- The value at the specified port.
+{{fbdoc item="section" value="Valeur renvoyée
+ La valeur lue sur le port spécifié.
{{fbdoc item="desc"}}
- This function retrieves the value at 'port' and returns immediately.
+ Cette fonction récupère la valeur sur 'port' et la renvoie immédiatement.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/hardware/inp.bas"}}%%(freebasic)
'' Turn off PC speaker
out &h61,inp(&h61) and &hfc
-%%
+%%
{{fbdoc item="target"}}
- - In the Windows and Linux versions three port numbers (&H3C7, &H3C8, &H3C9) are hooked by the graphics library when a graphics mode is in use to emulate QB's VGA palette handling. This use is deprecated; use ##[[KeyPgPalette Palette]]## to retrieve and set palette colors.
+ - Dans les versions Windows et Linux trois numéros de port (&H3C7, &H3C8, &H3C9) sont réservés par la librairie graphique quand un mode graphique est utilisé pour émuler une palette VGA QB. Cette utilisation est obsolète; utilisez ##[[KeyPgPalette Palette]]## pour récupérer ou valider une palette de couleurs.
- - Using true port access in the Windows version requires the program to install a device driver for the present session. For that reason, Windows executables using hardware port access should be run with administrator permits each time the computer is restarted. Further runs don't require admin rights as they just use the already installed driver. The driver is only 3K in size and is embedded in the executable.
+ - L'utilisation d'un accès "true port" dans la version Windows implique que le programme installe un "driver" de "device" pour la session en cours. Pour cette raison, les exécutables Windows utilisant un accès port "hardware" doivent être lancés avec des permissions administrateur pour chaque redémarrage de l'ordinateur. Les lancements ultérieurs n'auront pas besoin de ces droits car il ne font qu'utiliser le driver déjà installé. Le driver n'a qu'une taille de 3K et est intégré dans l'exécutable.
{{fbdoc item="see"}}
- ##[[KeyPgOut Out]]##
diff --git a/fbdocs/manual/cache/KeyPgInputPp.wakka b/fbdocs/manual/cache/KeyPgInputPp.wakka
index 7d2ab44506..88cef914b3 100644
--- a/fbdocs/manual/cache/KeyPgInputPp.wakka
+++ b/fbdocs/manual/cache/KeyPgInputPp.wakka
@@ -1,24 +1,24 @@
{{fbdoc item="title" value="INPUT #"}}----
-Reads a list of values from a text file
+Lit une liste de valeurs à partir d'un fichier texte
{{fbdoc item="syntax"}}##
**Input** # //filenum//, //variable_list//
##
{{fbdoc item="param"}}
##//filenum//##
- a file number of a file or device opened for ##[[KeyPgInputfilemode Input]]##
+ un numéro de fichier d'un fichier ou d'un dispositif ouvert avec ##[[KeyPgInputfilemode Input]]##
##//variable_list//##
- a list of variables used to hold the values read
+ une liste des variables utilisées pour stocker les valeurs lues
{{fbdoc item="desc"}}
- Reads from a text file through a bound file number a delimiter-separated set of values and writes them in reading order into the variables in ##//variable_list//##. If a variable is numeric the read value is converted from its string representation into the corresponding type.
+ Lit à partir d'un fichier texte par l'intermédiaire d'un numéro de fichier un ensemble de valeurs séparées par un délimiteur et les écrit dans l'ordre de la lecture dans les variables de ##//variable_list//##. Si une variable est numérique la valeur lue est convertie à partir de sa représentation sous forme de chaîne dans son type correspondant.
- Numeric values are converted in a similar way to the procedures ##[[KeyPgVal Val]]## and ##[[KeyPgVallng ValLng]]##, using the most appropriate function for the number format.
+ Les valeurs numériques sont converties de la même façon que les procédures ##[[KeyPgVal Val]]## et ##[[KeyPgVallng ValLng]]##, en utilisant la fonction la plus appropriée pour le format du nombre.
- Delimiters may be commas or line breaks. Whitespace is also treated as a separator after numbers. A string including a comma or a whitespace must be surrounded by double quotes.
+ Les délimiteurs peuvent être des virgules ou des sauts de ligne. Un espace blanc est considéré comme séparateur après les nombres. Une chaîne contenant des virgules ou espaces blancs doit être encadrée par des guillemts doubles.
- To read an entire line into a string, use ##[[KeyPgLineinputPp Line Input]]## instead.
- [[KeyPgWritePp Write #]] can be used to create a file readable with ##**""Input #""**##.
+ Pour lire une ligne entière dans une chaîne, utilisez plutôt ##[[KeyPgLineinputPp Line Input]]##.
+ [[KeyPgWritePp Write #]] peut être utilisé pour créer un fichier lisible avec ##**Input #**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/input.bas"}}%%(freebasic)
@@ -37,13 +37,13 @@ print a, b, c
%%
{{fbdoc item="diff"}}
- - QB has a bug in INPUT # that causes it to read past the end of the line if it does not find a matching end-quote when reading a string. If you are porting QB code that relies upon this bug, you may need to edit your data files to remove newlines from inside quoted strings, or to use a custom function to piece back together the multiline string.
+ - QB a un "bug" dans INPUT # qui l'amène à lire au-delà de la fin de la ligne s'il ne trouve pas des guillemets de fin quand il lit une chaîne. Si vous avez du code QB qui repose sur ce bug, vous devez éditer vos fichiers de données pour supprimer les chaînes multi-lignes à l'intérieur des guillemets ou utiliser une fonction personnalisée qui rassemble sur une seule ligne les éléments d'une chaîne multi-lignes.
{{fbdoc item="see"}}
- ##[[KeyPgInput Input]]##
- ##[[KeyPgLineinputPp Line Input #]]##
- ##[[KeyPgWritePp Write #]]##
- ##[[KeyPgOpen Open]]##
- - ##[[KeyPgInputfilemode Input (file mode)]]##
+ - ##[[KeyPgInputfilemode Input (Mode fichier)]]##
{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgInputfilemode.wakka b/fbdocs/manual/cache/KeyPgInputfilemode.wakka
index 8cd1072683..6c8fb1613f 100644
--- a/fbdocs/manual/cache/KeyPgInputfilemode.wakka
+++ b/fbdocs/manual/cache/KeyPgInputfilemode.wakka
@@ -1,40 +1,40 @@
{{fbdoc item="title" value="INPUT (FILE MODE)"}}----
-Specifies text file to be opened for input mode
+Spécifie un fichier texte à ouvrir en mode entrée
{{fbdoc item="syntax"}}##
[[KeyPgOpen open]] //filename// for **Input** [[[KeyPgEncoding encoding]] //encoding_type//] [[[KeyPgLock lock]] //lock_type//] as [#]//filenum//
##
{{fbdoc item="param"}}
##//filename//##
- file name to open for input
+ nom de fichier à ouvrir en entrée
##//encoding_type//##
- indicates encoding type for the file
+ indique le type d'encodage du fichier
##//lock_type//##
- locking to be used while the file is open
+ verrouillage à utiliser pendant que le fichier est ouvert
##//filenum//##
- unused file number to associate with the open file
+ numéro de fichier à associer au fichier ouvert
{{fbdoc item="desc"}}
- A file mode used with ##[[KeyPgOpen Open]]## to open a text file for reading.
+ Un mode fichier utilisé avec ##[[KeyPgOpen Open]]## pour ouvrir un fichier texte en lecture.
- This mode allows to read sequentially lines of text with ##[[KeyPgLineinputPp Line Input #]]##, or to read comma separated values with ##[[KeyPgInputPp Input #]]##.
+ Ce mode permet de lire séquentiellement les lignes de texte avec ##[[KeyPgLineinputPp Line Input #]]##, ou de lire des valeurs séparées par des virgules avec ##[[KeyPgInputPp Input #]]##.
- Text files can't be simultaneously read and written in ""FreeBASIC"", so if both functions are required on the same file, it must be opened twice.
+ Les fichiers texte ne peuvent pas être simultanément en lecture et en écriture dans FreeBASIC, donc si les deux fonctions sont nécessaires sur le même fichier, il doit être ouvert deux fois.
- ##//filename//## must be a string expression resulting in a legal file name in the target OS, without wildcards. The file will be sought for in the present directory, unless the ##//filename//## contains a path . If the file does not exist, an error is issued. The pointer is set at the first character of the file.
+ ##//filename//## doit être une expression chaîne contenant un nom de fichier acceptable dans l'OS cible, sans joker de remplacement. Le fichier sera recherché dans le répertoire courant, sauf si ##//filename//## contient un chemin. Si le fichier n'existe pas, une erreur est émise. Le pointeur est placé sur le premier caractère du fichier.
- ##//Encoding_type//## indicates the Unicode ##[[KeyPgEncoding Encoding]]## of the file, so characters are correctly read. If omitted, "ascii" encoding is defaulted. Only little endian character encodings are supported at the moment.
- -##"utf8"##,
- -##"utf16"##
- -##"utf32" ##
- -##"ascii"## (the default)
+ ##//Encoding_type//## indique l'##[[KeyPgEncoding Encoding (= encodage)]]## Unicode du fichier, ainsi les caractères sont correctement lus. Si omis, l'encodage "ascii" est employé par défaut. Seuls, les caractères encodés "little endian" sont pris en charge pour le moment.
+
##"utf8"##,
+ ##"utf16"##
+ ##"utf32" ##
+ ##"ascii"## (par défaut)
- ##//Lock_type//## indicates the way the file is locked for other processes, it is one of:
- - ##**Read**## - the file can be opened simultaneously by other processes, but not for reading
- - ##**Write**## - the file can be opened simultaneously by other processes, but not for writing
- - ##**Read Write**## - the file cannot be opened simultaneously by other processes (the default)
+ ##//Lock_type//## indique la façon dont le fichier est verrouillé pour d'autres processus:
+ - ##**Read**## - le fichier peut être ouvert simultanément par d'autres processus, mais pas pour la lecture
+ - ##**Write**## - le fichier peut être ouvert simultanément par d'autres processus, mais pas pour l'écriture
+ - ##**Read Write**## - le fichier ne peut pas être ouvert simultanément par d'autres processus (par défaut)
- ##//filenum//## is a valid ""FreeBASIC"" file number (in the range ##1..255##) not being used for any other file presently open. The file number identifies the file for the rest of file operations. A free file number can be found using the ##[[KeyPgFreefile Freefile]]## function.
+ ##//filenum//## est un numéro de fichier valide FreeBASIC (dans la plage ##1..255##) non utilisé actuellement par un autre fichier ouvert. Le numéro de fichier identifie le fichier pour le reste des opérations. Un numéro de fichier libre peut être trouvé par la fonction ##[[KeyPgFreefile FreeFile]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/for-input.bas"}}%%(freebasic)
diff --git a/fbdocs/manual/cache/KeyPgInputnum.wakka b/fbdocs/manual/cache/KeyPgInputnum.wakka
index 40759aec7a..5b0904f5ed 100644
--- a/fbdocs/manual/cache/KeyPgInputnum.wakka
+++ b/fbdocs/manual/cache/KeyPgInputnum.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="INPUT()"}}----
-Reads a number of characters from console or file
+Lit un nombre de caractères à partir de la console ou d'un fichier
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Input** [[KeyPgOverload overload]] ( //n// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -10,19 +10,19 @@ Reads a number of characters from console or file
##
{{fbdoc item="param"}}
##//n//##
- Number of bytes to read.
+ Nombre d'octets à lire.
##//filenum//##
- File number of a bound file or device.
+ Numéro d'un fichier ou d'un dispositif.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString String]]## of the characters read.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String]]## des caractères lus.
{{fbdoc item="desc"}}
- Reads a number of characters from the console, or a bound file/device specified by ##//filenum//##.
+ Lit un nombre de caractères de la console ou un fichier / périphérique spécifié par ##//filenum//##.
- The first version waits for and reads ##//n//## characters from the keyboard buffer. Extended keys are not read. The characters are not echoed to the screen.
+ La première version attend et lit ##//n//## caractères de la mémoire tampon du clavier. Les touches étendues ne sont pas lues. Les caractères ne sont pas affichés à l'écran.
- The second version waits for and reads ##//n//## characters from a file or device. The file position is updated.
+ Le deuxième version attend et lit ##//n//## caractères à partir d'un fichier ou d'un périphérique. La position dans le fichier est mise à jour.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/console/input-n.bas"}}%%(freebasic)
@@ -37,7 +37,7 @@ loop until choice >= "1" and choice <= "3"
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgWinput Winput()]]##
diff --git a/fbdocs/manual/cache/KeyPgInstr.wakka b/fbdocs/manual/cache/KeyPgInstr.wakka
index 99ebf5e172..63cadc65cd 100644
--- a/fbdocs/manual/cache/KeyPgInstr.wakka
+++ b/fbdocs/manual/cache/KeyPgInstr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="INSTR"}}----
-Locates the first occurrence of a substring or character within a string
+Repère la position de la première occurence d'une sous-chaîne ou d'un caractère dans une chaîne de caractères
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Instr** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [ **Any** ] [[KeyPgByref byref]] //substring// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -12,31 +12,31 @@ Locates the first occurrence of a substring or character within a string
##
{{fbdoc item="param"}}
##//str//##
- The string to be searched.
+ La chaîne où chercher.
##//substring//##
- The substring to find.
+ La sous-chaîne à trouver.
##//start//##
- The position in ##//str//## at which the search will begin.
+ La position dans ##//str//## où la recherche va commencer.
-{{fbdoc item="ret"}}
- The position of the first occurrence of ##//substring//## in ##//str//##.
+{{fbdoc item="section" value="Valeur retournée
+ La position de la première occurrence de ##//substring//## dans ##//str//##.
{{fbdoc item="desc"}}
- Locates the position of the first occurrence of a substring or character within a string. In the first form of ##**Instr**##, the search begins at the first character.
+ Repère la position de la première occurence d'une sous-chaîne ou d'un caractère dans une chaîne de caractères. Dans la première forme de ##**InStr**##, la recherche commence dès le premier caractère.
- Zero (0) is returned if ##//substring//## is not found, either ##//str//## or ##//substring//## are empty strings, or ##//start//## < 1.
+ Zéro (0) est retourné si ##//substring//## n'est pas trouvée, soit ##//str//## ou ##//substring//## sont des chaînes vides, ou ##//start//## < 1.
- If the ##**Any**## keyword is specified, ##**Instr**## returns the first occurrence of any character in ##//substring//##.
+ Si le mot clé ##**Any**## est spécifié, ##**InStr**## renvoie la première occurrence de n'importe quel caractère dans ##//substring//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/instr.bas"}}%%(freebasic)
-' It will return 4
+' Retournera 4
Print InStr("abcdefg", "de")
-' It will return 0
+' Retournera 0
Print InStr("abcdefg", "h")
-' It will search for any of the characters "f", "b", "c", and return 2 as "b" is encountered first
+' Cherchera chacun des caracteres "f", "b", "c", et retournera 2 car "b" est rencontre en premier
Print InStr("abcdefg", Any "fbc")
%%
{{fbdoc item="filename" value="examples/manual/strings/instr2.bas"}}%%(freebasic)
@@ -51,20 +51,20 @@ do while idx > 0 'if not found loop will be skipped
idx = instr(idx + 1, Test, "b")
loop
%%
-<<'A Unicode example:
+##'Un exemple Unicode:
dim text as wstring*20
text = "Привет, мир!"
-print instr(text,"ет") ' displays 5
-<<::c::
-{{fbdoc item="target"}}
- - The wide-character string version of ##**Instr**## is not supported for DOS target.
+print instr(text,"ет") ' affiche 5
+%%
+;
+ {{fbdoc item="target"}}
-{{fbdoc item="diff"}}
- - QB returns ##//start//## if ##//search//## is a zero length string.
- - QB does not support Unicode.
+- La version ##**WString**## (chaîne large) de ##**InStr**## n'est pas supportée par la cible DOS.
+ {{fbdoc item="diff"}}
+ - QB retourne ##//start//## si ##//search//## est une chaîne de longueur zéro.
-{{fbdoc item="see"}}
- - ##[[KeyPgInstrrev Instrrev]]##
- - ##[[KeyPgMidfunction Mid (Function)]]##
+- QB ne supporte pas Unicode.
+ {{fbdoc item="see"}}
+ - ##[[KeyPgInstrrev InStrRev]]##
-{{fbdoc item="back" value="CatPgString|String Functions"}}
\ No newline at end of file
+- ##[[KeyPgMidfunction Mid (Fonction)]]##
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgInstrrev.wakka b/fbdocs/manual/cache/KeyPgInstrrev.wakka
index f06009a5c7..ba3e331306 100644
--- a/fbdocs/manual/cache/KeyPgInstrrev.wakka
+++ b/fbdocs/manual/cache/KeyPgInstrrev.wakka
@@ -1,7 +1,7 @@
{{fbdoc item="title" value="INSTRREV"}}----
-Locates the last occurrence of a substring or character within a string
+Repère la position de la dernière occurrence d'une sous-chaîne ou d'un caractère dans une chaîne de caractères
-~&//**Important note**: In versions up to and including v0.20.0b, ##**Instrrev**## contains a bug which may cause it to skip some matches. This is corrected as of v0.21.0b.//
+//**Note importante**: Dans les versions jusqu'à et y compris v0.20.0b, ##**InStrRev**## contient un bug qui fait que certaines occurences sont omises. Ceci est corrigé à partir de v0.21.0b.//
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Instrrev** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [ **Any** ] [[KeyPgByref byref]] //substring// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByval byval]] //start// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -12,28 +12,28 @@ Locates the last occurrence of a substring or character within a string
##
{{fbdoc item="param"}}
##//str//##
- The string to be searched.
+ La chaîne où chercher.
##//substring//##
- The substring to find.
+ La sous-chaîne à trouver.
##//start//##
- The position in ##//str//## at which the search will begin.
+ La position dans ##//str//## où la recherche va commencer.
-{{fbdoc item="ret"}}
- The position of the last occurrence of ##//substring//## in ##//str//##.
+{{fbdoc item="section" value="Valeur retournée
+ La position de la dernière occurrence de ##//substring//## dans ##//str//##.
{{fbdoc item="desc"}}
- Locates the position of the last occurrence of a substring or character within a string. If ##//start//## parameter is not given or is -1, the search begins at the last character.
+ Repère la position de la dernière occurence d'une sous-chaîne ou d'un caractère dans une chaîne de caractères. Si le paramètre ##//start//## est omis ou est -1, la recherche commence au dernier caractère.
- Zero (0) is returned if ##//substring//## is not found, or either ##//str//## or ##//substring//## are empty strings, or ##//start//## is less than 1 (except for -1), or start is greater than the length of ##//str//##.
+ Zéro (0) est retourné si ##//substring//## n'est pas trouvée, ou si ##//str//## ou ##//substring//## sont des chaînes vides, ou ##//start//## est inférieur à 1 (sauf pour -1), ou ##//start//## est plus grand que la longueur de ##//str//##.
- If the ##**Any**## keyword is specified, ##**Instrrev**## returns the last occurrence of any character in ##//substring//##.
+ Si le mot-clef ##**Any**## est specifié, ##**InStrRev**## retourne la dernière occurence de n'importe quel caractère de ##//substring//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/instrrev.bas"}}%%(freebasic)
-' It will return 4
+' Retournera 4
PRINT INSTRREV("abcdefg", "de")
-' It will return 0
+' Retournera 0
PRINT INSTRREV("abcdefg", "h")
%%
{{fbdoc item="filename" value="examples/manual/strings/instrrev2.bas"}}%%(freebasic)
@@ -49,22 +49,22 @@ do while idx > 0 'if not found loop will be skipped
loop
%%
-<<'A Unicode example:
+##
'Un exemple Unicode:
dim text as wstring*20
text = "Привет, мир!"
-print instrrev(text,"ет") ' displays 5
-<<::c::
-{{fbdoc item="target"}}
- - The wide-character string version of ##**Instrrev**## is not supported for DOS target.
+print instrrev(text,"ет") ' affiche 5
+%%
+;
+ {{fbdoc item="target"}}
-{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Instrrev""**##.
+- La version ##**WString**## (chaîne large) de ##**InStrRev**## n'est pas supportée par la cible DOS.
+ {{fbdoc item="lang"}}
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Instrrev**##.
+ {{fbdoc item="diff"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgInstr Instr]]##
- - ##[[KeyPgMidfunction Mid (Function)]]##
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
+ - ##[[KeyPgInstr InStr]]##
-{{fbdoc item="back" value="CatPgString|String Functions"}}
\ No newline at end of file
+- ##[[KeyPgMidfunction Mid (Fonction)]]##
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgInt.wakka b/fbdocs/manual/cache/KeyPgInt.wakka
index 6d9edc04b1..9e59637d8d 100644
--- a/fbdocs/manual/cache/KeyPgInt.wakka
+++ b/fbdocs/manual/cache/KeyPgInt.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="INT"}}----
-Returns the floor of a number
+Renvoie le plus grand entier qui est inférieur ou égal à un nombre
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Int** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,15 +9,15 @@ Returns the floor of a number
##
{{fbdoc item="param"}}
##//number//##
- the floating-point number to round
+ le nombre à virgule flottante à arrondir
{{fbdoc item="ret"}}
- Returns the floor of ##//number//##, i.e. the largest integer that is less than or equal to it.
+ Retourne le plus grand entier qui est inférieur ou égal à ##//number//##.
{{fbdoc item="desc"}}
- ##**Int**## returns the floor of x. For example, ##**Int**(4.9)## will return ##4.0##, and ##**Int**(-1.3)## will return ##-2.0##.
+ ##**Int**## retourne le plus grand entier qui est inférieur ou égal à ##//number//##. Par exemple, ##**Int**(4.9)## retournera ##4.0## et ##**Int**(-1.3)## retournera ##-2.0##.
- The ##**Int**## unary ##[[KeyPgOperator operator]]## can be overloaded with user defined types.
+ L'##[[KeyPgOperator Operator]]## unaire ##**Int**## peut être surchargé par un type défini par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/math/int.bas"}}%%(freebasic)
@@ -26,10 +26,10 @@ Print int(-1.9) '' will print -2
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgFix Fix]]##
diff --git a/fbdocs/manual/cache/KeyPgInteger.wakka b/fbdocs/manual/cache/KeyPgInteger.wakka
index 3760b03104..8bacbff3bc 100644
--- a/fbdocs/manual/cache/KeyPgInteger.wakka
+++ b/fbdocs/manual/cache/KeyPgInteger.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="INTEGER"}}----
-Standard data type: 32 bit signed
+Type de données standard: 32 bits signé
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Integer**
##
{{fbdoc item="desc"}}
- 32-bit signed whole-number data type. Can hold values from -2147483648 to 2147483647.
+ Type de données: nombre entier signé de 32 bits. Peut contenir des valeurs de -2147483648 à 2147483647.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/integer.bas"}}%%(freebasic)
@@ -13,20 +13,21 @@ Standard data type: 32 bit signed
Dim y As Integer = &H7FFFFFFF
Print "Integer Range = "; x; " to "; y
%%
- **Output:**
+ **Affichage:**
%%Integer Range = -2147483648 to 2147483647%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects, the ##**Integer**## data type is 32-bit.
- - In the //[[CompilerOptlang -lang qb]]// dialect, the ##**Integer**## data type is 16-bit.
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//, le type de donnée ##**Integer**## a 32 bits.
+ - Dans les dialecte //[[CompilerOptlang -lang qb]]//, le type de donnée ##**Integer**## a 16 bits.
{{fbdoc item="diff"}}
- - The INTEGER type is 16-bit wide in QB.
- - None, if compiled in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Le type INTEGER a une largeur de 16 bits dans QB.
+ - Aucune, si compilation dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgLong Long]]##
- - ##[[KeyPgUinteger Uinteger]]##
+ - ##[[KeyPgUinteger UInteger]]##
+ - ##[[KeyPgCint CInt]]##
- ##[[KeyPgCint Cint]]##
{{fbdoc item="back" value="CatPgStdDataTypes|Standard Data Types"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgIs.wakka b/fbdocs/manual/cache/KeyPgIs.wakka
index 703e11938d..3898412b46 100644
--- a/fbdocs/manual/cache/KeyPgIs.wakka
+++ b/fbdocs/manual/cache/KeyPgIs.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="Is"}}----
-Clause in the ##[[KeyPgSelectcase Select Case]]## statement block.
+Clause dans le bloc d'instructions ##[[KeyPgSelectcase Select Case]]##.
{{fbdoc item="syntax"}}##
**Case Is** //expression//
##
{{fbdoc item="desc"}}
- Is specifies that a particular case inside a Select Case block will be evaluated based on an expression including the greater than (>) or less than (<) operator and a value.
+ ##**Is**## précise qu'un cas particulier dans un bloc ##[[KeyPgSelectcase Select Case]]## sera évalué sur la base d'une expression incluant l'opérateur plus grand que (>) ou plus petit que (<) et une valeur.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgSelectcase Select Case]]##
diff --git a/fbdocs/manual/cache/KeyPgIsDate.wakka b/fbdocs/manual/cache/KeyPgIsDate.wakka
index 1784b8ba5a..b5aa3e7d01 100644
--- a/fbdocs/manual/cache/KeyPgIsDate.wakka
+++ b/fbdocs/manual/cache/KeyPgIsDate.wakka
@@ -1,26 +1,26 @@
{{fbdoc item="title" value="ISDATE"}}----
-Tests if a string can be converted to a [[ProPgDates Date Serial]]
+Teste si une chaîne est convertible en [[ProPgDates Date Serial]]
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""IsDate""** ( [[KeyPgByref byref]] //stringdate// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **IsDate** ( [[KeyPgByref ByRef]] //stringdate// [[KeyPgAs As]] [[KeyPgConstQualifier Const]] [[KeyPgString String]] ) [[KeyPgAs As]] [[KeyPgInteger Integer]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""IsDate""**( //stringdate// )
+ //result// = **IsDate**( //stringdate// )
##
{{fbdoc item="param"}}
##//stringdate//##
- the string to test
+ la chaîne à tester
-{{fbdoc item="ret"}}
- Returns non-zero (-1) if the date string can be converted to a [[ProPgDates Date Serial]], otherwise returns zero (0).
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur non-nulle (-1) si la chaîne-date est convertible en [[ProPgDates Date Serial]], sinon retourne zéro (0).
{{fbdoc item="desc"}}
- Date strings must be in the format set in the regional settings of the OS to be considered valid dates.
+ Les chaines-date doivent être dans le format enregistré dans les paramètres régionaux du système d'exploitation pour être considérées comme des dates valides.
- ##**""IsDate""([[KeyPgDate Date]])**## will return non-zero (-1) only if the regional settings specify the same date format that QB used.
+ ##**IsDate([[KeyPgDate Date]])**## retournera une valeur non-nulle (-1) seulement si les paramètres régionaux spécifient le même format de date que celui utilisé par QB.
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/isdate.bas"}}%%(freebasic)
@@ -49,7 +49,7 @@ loop
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgKill.wakka b/fbdocs/manual/cache/KeyPgKill.wakka
index bbd384cb70..366e386588 100644
--- a/fbdocs/manual/cache/KeyPgKill.wakka
+++ b/fbdocs/manual/cache/KeyPgKill.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="KILL"}}----
-Deletes a file from disk / storage media.
+Supprime un fichier à partir d'un disque / d'un support de stockage.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Kill** ( [[KeyPgByref byref]] //filename// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,13 +9,13 @@ Deletes a file from disk / storage media.
##
{{fbdoc item="param"}}
##//filename//##
- The //filename// is the name of the disk file to delete. If the file is not in the current directory, the path must also be given as ##**//path/file//**##.
+ //filename// est le nom du fichier disque à supprimer. Si le fichier n'est pas dans le répertoire courant, le chemin doit aussi être donné sous la forme ##**//chemin/nom-de-fichier//**##.
-{{fbdoc item="ret"}}
- Returns zero (##0##) on success, or non-zero on error.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne zéro (##0##) si succès, ou non-zéro si erreur.
{{fbdoc item="desc"}}
- ##**Kill**## deletes a file from disk / storage media.
+ ##**Kill**## supprime un fichier du disque/médium de stockage.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/kill.bas"}}%%(freebasic)
@@ -26,10 +26,10 @@ If result <> 0 Then Print "error trying to kill " ; filename ; " !"
%%
{{fbdoc item="target"}}
- On some platforms, ##**Kill**## may be able to remove folders and read-only files. Whether it succeeds or fails here is not currently defined. It may be necessary to check the attributes of the file you are deleting, and decide accordingly whether you want to try ##**Kill**##ing it.
+ Sur certaines plates-formes, ##**Kill**## peut être en mesure de supprimer des dossiers et fichiers en lecture seule. La réussite ou l'échec ici n'est pas défini actuellement. Il peut être nécessaire de vérifier les attributs du fichier que vous supprimez et décider en conséquence si vous voulez essayer de le ##**Kill**##er.
{{fbdoc item="diff"}}
- - KILL can optionally be used as function in ""FreeBASIC"".
+ - KILL peut éventuellement être utilisé comme fonction en FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgShell Shell]]##
diff --git a/fbdocs/manual/cache/KeyPgLbound.wakka b/fbdocs/manual/cache/KeyPgLbound.wakka
index cbee97ff61..cf37f8b25a 100644
--- a/fbdocs/manual/cache/KeyPgLbound.wakka
+++ b/fbdocs/manual/cache/KeyPgLbound.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LBOUND"}}----
-Returns the lower bound of an array's dimension
+Renvoie la limite inférieure d'une dimension d'un tableau
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Lbound** ( array() [[KeyPgAs as]] [[KeyPgAny any]], [[KeyPgByval byval]] //dimension// [[KeyPgAs as]] [[KeyPgInteger integer]] = 1 ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,17 +9,17 @@ Returns the lower bound of an array's dimension
##
{{fbdoc item="param"}}
##//array//##
- an array of any type
+ n'importe quel type de tableau
##//dimension//##
- the dimension to get lower bound of
+ la dimension dont on veut obtenir la limite inférieure
-{{fbdoc item="ret"}}
- Returns the lower bound of an array's dimension.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie la limite inférieure d'une dimension d'un tableau.
{{fbdoc item="desc"}}
- ##**Lbound**## returns the lowest value that can be used as an index into a particular dimension of an array.
+ ##**LBound**## retourne la valeur la plus petite pouvant servir d'indice d'une dimension particulière d'un tableau.
- Array dimensions are numbered from one (1) to //n//, where //n// is the total number of dimensions. If ##//dimension//## is not specified, ##**Lbound**## will return the lower bound of the first dimension. If ##//dimension//## is less than one (1) or greater than the total number of dimensions (//n//) in the array, the result is undefined.
+ Les dimensions d'un tableau sont numérotées de un (1) à //n//, dans lequel //n// est le nombre total de dimensions. Si ##//dimension//## n'est pas spécifié, ##**LBound**## retournera la limite inférieure de la première dimension. Si ##//dimension//## est inférieur à un (1) ou supérieur au nombre total de dimensions (//n//) du tableau, le résultat est indéfini.
{{fbdoc item="ex"}}
diff --git a/fbdocs/manual/cache/KeyPgLcase.wakka b/fbdocs/manual/cache/KeyPgLcase.wakka
index 434ffae8c4..a3fdc1a81d 100644
--- a/fbdocs/manual/cache/KeyPgLcase.wakka
+++ b/fbdocs/manual/cache/KeyPgLcase.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LCASE"}}----
-Returns a lower case copy of a string
+Retourne une copie en lettres minuscules d'une chaîne de caractères
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Lcase** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -10,34 +10,34 @@ Returns a lower case copy of a string
##
{{fbdoc item="param"}}
##//str//##
- String to convert to lowercase.
+ Chaîne de caractères à convertir en minuscules.
-{{fbdoc item="ret"}}
- Lowercase copy of ##//str//##.
+{{fbdoc item="section" value="Valeur retournée
+ Copie en lettres minuscules de ##//str//##.
{{fbdoc item="desc"}}
- Returns a copy of ##//str//## with all of the letters converted to lower case.
+ Retourne une copie de ##//str//## avec toutes les lettres converties en lettres minuscules.
- If ##//str//## is empty, the null string (##"####"##) is returned.
+ Si ##//str//## est vide, une chaîne nulle (##"####"##) est retournée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/lcase.bas"}}%%(freebasic)
print lcase("AbCdEfG")
%%
-Output:
+Sortie:
%%
abcdefg
%%
{{fbdoc item="target"}}
- - The wide-character string version of ##**Lcase**## is not supported for DOS target.
+ - La version large chaîne ##**WString**## de ##**LCase**## n'est pas supportée pour la cible DOS.
{{fbdoc item="lang"}}
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - QB does not support Unicode.
+ - QB ne supporte pas Unicode.
{{fbdoc item="see"}}
- ##[[KeyPgUcase Ucase]]##
diff --git a/fbdocs/manual/cache/KeyPgLeft.wakka b/fbdocs/manual/cache/KeyPgLeft.wakka
index 910bbdead2..a9b7046b6c 100644
--- a/fbdocs/manual/cache/KeyPgLeft.wakka
+++ b/fbdocs/manual/cache/KeyPgLeft.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LEFT"}}----
-Returns the leftmost substring of a string
+Retourne la sous-chaîne la plus à gauche d'une chaîne de caractères
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Left** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByval byval]] //n// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -10,44 +10,44 @@ Returns the leftmost substring of a string
##
{{fbdoc item="param"}}
##//str//##
- The source string.
+ La chaîne de caractères source.
##//n//##
- The number of characters to return from the source string.
+ Le nombre de caractères à retourner à partir de la chaîne de caractères source.
-{{fbdoc item="ret"}}
- Returns the leftmost substring from ##//str//##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la sous-chaîne la plus à gauche à partir de ##//str//##.
{{fbdoc item="desc"}}
- Returns the leftmost ##//n//## characters starting from the left (beginning) of ##//str//##. If ##//str//## is empty, then the null string (##"####"##) is returned. If ##//n// <= 0## then the null string (##"####"##) is returned. If ##//n// > len(//str//)## then the entire source string is returned.
+ Retourne les ##//n//## caractères les plus à gauche à partir du début de ##//str//##. Si ##//str//## est vide, alors la chaîne nulle (##"####"##) est retournée. Si ##//n// <= 0## alors la chaîne nulle (##"####"##) est retournée. Si ##//n// > len(//str//)## alors la chaîne entière est retournée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/left.bas"}}%%(freebasic)
dim text as string = "hello world"
print left(text, 5)
%%
- will produce the output:
+ produira la sortie:
%%hello
-%%
-An Unicode example:
-<<
-dim text as wstring*20
+%%Un exemple Unicode:
+##
dim text as wstring*20
text = "Привет, мир!"
print left(text, 6) 'displays "Привет"
-<<::c::
-
+##;
{{fbdoc item="target"}}
- - DOS does not support the wide-character string version of **##Left##**.
+- DOS ne supporte pas la version large **##WString##** de la chaîne de **##Left##**.
{{fbdoc item="lang"}}
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
-{{fbdoc item="diff"}}
- - QB does not support Unicode.
+- Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
+ {{fbdoc item="diff"}}
+ - QB ne supporte pas Unicode.
{{fbdoc item="see"}}
- ##[[KeyPgRight Right]]##
+
+- ##[[KeyPgMidfunction Mid (Function)]]##
+ - ##[[KeyPgRight Right]]##
- ##[[KeyPgMidfunction Mid (Function)]]##
{{fbdoc item="back" value="CatPgString|String Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgLen.wakka b/fbdocs/manual/cache/KeyPgLen.wakka
index 19add610a7..149909132b 100644
--- a/fbdocs/manual/cache/KeyPgLen.wakka
+++ b/fbdocs/manual/cache/KeyPgLen.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LEN"}}----
-Returns the length of a variable or data type
+Retourne la longueur d'un type de variable ou de données
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Len** ( [[KeyPgByref byref]] //variable// [[KeyPgAs as]] [[KeyPgAny any]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -7,26 +7,26 @@ Returns the length of a variable or data type
##
{{fbdoc item="usage"}}##
//result// = **Len**( //variable// )
- ##//or//##
+ ##//ou//##
//result// = **Len**( [[DataType DataType]] )
##
{{fbdoc item="param"}}
##//variable//##
- A variable of any type.
+ Une variable de n'importe quel type.
##//datatype//##
- A [[DataType DataType]].
+ Un [[DataType DataType]].
-{{fbdoc item="ret"}}
- Returns the size of a variable or [[DataType DataType]] in bytes.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la taille en octets d'une variable ou d'un [[DataType DataType]].
{{fbdoc item="desc"}}
- ##**Len**## returns the length of a variable or [[DataType DataType]], in bytes.
+ ##**Len**## retourne la longueur en octets d'une variable ou d'un [[DataType DataType]].
- In the first form, if ##//variable//## is of type ##[[KeyPgString String]]##, ##[[KeyPgWstring Wstring]]## or ##[[KeyPgZstring Zstring]]##, the length of the string in characters will be returned. Otherwise, the size of ##//variable//##'s type in bytes is returned.
+ Dans la première forme, si ##//variable//## est du type ##[[KeyPgString String]]##, ##[[KeyPgWstring WString]]## ou ##[[KeyPgZstring ZString]]##, la longueur de la chaîne, en caractères, est retournée. Sinon, la taille du type de ##//variable//## est retournée.
- In the second form, if ##//datatype//## is ##[[KeyPgZstring Zstring]]## or ##[[KeyPgWstring Wstring]]##, the size of an ASCII or Unicode character is returned, respectively. If ##//datatype//## is ##[[KeyPgString String]]##, the size of the string descriptor type is returned.
+ Dans la seconde forme, si ##//datatype//## est ##[[KeyPgZstring ZString]]## ou ##[[KeyPgWstring WString]]##, la taille d'un caractère ASCII ou Unicode est retournée, respectivement. Si ##//datatype//## est ##[[KeyPgString String]]##, la taille du descripteur de type est retournée.
- If there is both a user defined type and a variable both having the same name in the same scope, the user defined type takes precedence over the variable. To ensure that the ##**Len**## takes the variable instead of the user defined type, wrap the argument to ##**Len**## with parentheses to force it to be seen as an expression. For example ##Len((variable))##.
+ S'il y a, à la fois, un type défini par l'utilisateur et une variable qui ont le même nom dans le même champ d'application, le type défini par l'utilisateur a la priorité sur la variable. Pour s'assurer que ##**Len**## prend la variable au lieu du type défini par l'utilisateur, mettez l'argument de ##**Len**## entre parenthèses pour le forcer à être considéré comme une expression. Par exemple ##Len((variable))##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/len.bas"}}%%(freebasic)
@@ -42,12 +42,12 @@ print len(xyz) ' returns 8
%%
{{fbdoc item="lang"}}
- - ##**Len**## only allows expressions in the //[[CompilerOptlang -lang qb]]// dialect.
- - Can be used with built-in types and user-defined types in the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - ##**Len**## n'admet que des expressions dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Peut être utilisé avec les types intégrés et les types définis par l'utilisateur dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - Can be used with built-in types and user-defined types in the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
- - None in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Peut être utilisé avec les types intégrés et les types définis par l'utilisateur dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//.
+ - Aucune dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgSizeof Sizeof]]##
diff --git a/fbdocs/manual/cache/KeyPgLet.wakka b/fbdocs/manual/cache/KeyPgLet.wakka
index b64cfcce4d..c92dbf9180 100644
--- a/fbdocs/manual/cache/KeyPgLet.wakka
+++ b/fbdocs/manual/cache/KeyPgLet.wakka
@@ -1,21 +1,21 @@
{{fbdoc item="title" value="LET"}}----
-Indicates the assignment operator.
+Indique l'opérateur d'affectation.
{{fbdoc item="syntax"}}##
**Let** //variable// = //value//
-//or//
+//ou//
**Let**( //variable1// [, //variable2// [, ... ]] ) = //udt//
-//or//
+//ou//
[[KeyPgOperator operator]] //typename//.**Let** ( [ [[KeyPgByref byref]] | [[KeyPgByval byval]] ] rhs [[KeyPgAs as]] [[DataType datatype]] )
//statements//
end operator
##
{{fbdoc item="desc"}}
- Command intended to help the programmer to distinguish an assignment statement (e.g. ##**Let** a = 1##) from an equality test (e.g. ##If a = 1 then ...##). As the compiler does not require it, it is usually omitted.
+ Commande ayant pour but d'aider le programmeur à distinguer une instruction d'affectation (par exemple, ##**Let** a = 1##) d'un test d'égalité (par exemple, ##If a = 1 then ...##). Comme le compilateur ne l'exige pas, il est souvent omis.
- **Let** can be used as a left-hand side operator to assign the members of a user defined type to multiple variables. //See ##[[KeyPgOpLetlist Operator Let() (Assignment)]]##//
+ **Let** peut être utilisé comme un opérateur de gauche pour affecter les membres d'un type défini par l'utilisateur à plusieurs variables. //Voir ##[[KeyPgOpLetlist Operator Let() (Affectation)]]##//
- **Let** is used with operator overloading to refer the assignment operator. //##See [[KeyPgOpLet Operator Let (Assignment)]]##//
+ **Let** est utilisé avec un opérateur surchargé pour désigner l'opérateur d'affectation. //##Voir [[KeyPgOpLet Operator Let (Affectation)]]##//
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/misc/let.bas"}}%%(freebasic)
@@ -29,19 +29,19 @@ x = 100
%%
{{fbdoc item="lang"}}
- - The use of ##**let**## to indicate an assignment statement (##//**Let** variable = expr//##) is not allowed in the //[[CompilerOptlang -lang fb]]// dialect.
- - The UDT to multi-variable Let assignment is only available in the //[[CompilerOptlang -lang fb]]// dialect.
- - Overloading of operators is not available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
+ - L'utilisation de ##**Let**## pour indiquer une instruction d'affectation (##//**Let** variable = expr//##) n'existe pas dans le dialecte //[[CompilerOptlang -lang fb]]//.
+ - L'affectation multi-variables définie par l'utilisateur ##**Let**## n'est disponible que dans le dialecte //[[CompilerOptlang -lang fb]]//.
+ - La surcharge des opérateurs n'est pas disponible dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
{{fbdoc item="diff"}}
- - None in the //[[CompilerOptlang -lang fb]]// dialect.
- - The Let operator is new to ""FreeBASIC"".
- - The UDT to multi-variable Let assignment is new to ""FreeBASIC"".
+ - Aucune dans le dialecte //[[CompilerOptlang -lang fb]]//.
+ - L'opérateur ##**Let**## est nouveau pour FreeBASIC.
+ - L'affectation multi-variables définie par l'utilisateur est nouvelle pour FreeBASIC.
{{fbdoc item="see"}}
- - ##[[KeyPgOpAssignment Operator = (Assignment)]]##
- - ##[[KeyPgOpLet Operator Let (Assignment)]]##
- - ##[[KeyPgOpLetlist Operator Let() (Assignment)]]##
- - ##[[KeyPgOperator Operator]]##
+ - ##[[KeyPgOpAssignment Opérateur = (Affectation)]]##
+ - ##[[KeyPgOpLet Opérateur Let (Affectation)]]##
+ - ##[[KeyPgOpLetlist Opérateur Let() (Affectation)]]##
+ - ##[[KeyPgOperator Opérateur]]##
{{fbdoc item="back" value="CatPgMisc|Miscellaneous"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgLib.wakka b/fbdocs/manual/cache/KeyPgLib.wakka
index 8761df5746..8b46d462d4 100644
--- a/fbdocs/manual/cache/KeyPgLib.wakka
+++ b/fbdocs/manual/cache/KeyPgLib.wakka
@@ -1,8 +1,8 @@
{{fbdoc item="title" value="LIB"}}----
-Specifies the library where a sub or function can be found as part of a declaration
+Spécifie où un sous-programme / une fonction peut trouver une DLL dans le cadre d'une déclaration
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **lib** "//libname//" [ [[KeyPgAlias alias]] "//symbol_name//" ] ( //arguments list// ) [[KeyPgAs as]] //return_type//
+ [[KeyPgDeclare Declare]] { [[KeyPgSub Sub]] | [[KeyPgFunction Function]] } //proc_name// **Lib** "//dllname//" [[KeyPgAlias Alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs As]] //return_type//
[[KeyPgExternBlock extern]] "//mangling//" lib "//libname//"
//declarative statements//
@@ -15,9 +15,9 @@ Specifies the library where a sub or function can be found as part of a declarat
##
{{fbdoc item="desc"}}
- In ##[[KeyPgSub Sub]]## or ##[[KeyPgFunction Function]]## declarations, and also in class method declarations (including constructors and destructors), ##**lib**## indicates the library containing the function. Libraries specified in this way are linked in as if ##[[KeyPgInclib #inclib "libname"]]## or ##[[CompilerOptl -l libname]]## had been used.
+ Dans les déclarations ##[[KeyPgSub Sub]]## et ##[[KeyPgFunction Function]]##, ##**Lib**## indique la "dll" contenant la fonction. Les bibliothèques spécifiées de cette manière sont liées, comme si elles avaient été spécifiées avec [[KeyPgInclib #inclib]].
- ##**lib**## can also be used with [[KeyPgExternBlock Extern ... End Extern blocks]] to specifiy a ##**lib**## for all declarations inside.
+ ##**Lib**## peut aussi être utilisé avec des [[KeyPgExternBlock blocs Extern ... End Extern]] pour spécifier ##**Lib**## pour toutes les déclarations internes.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/procs/mydll.bas"}}%%(freebasic)
@@ -40,7 +40,7 @@ Print "GetValue = &h"; Hex(GetValue())
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDeclare Declare]]##
diff --git a/fbdocs/manual/cache/KeyPgLinegraphics.wakka b/fbdocs/manual/cache/KeyPgLinegraphics.wakka
index 01762dc106..9927e7902e 100644
--- a/fbdocs/manual/cache/KeyPgLinegraphics.wakka
+++ b/fbdocs/manual/cache/KeyPgLinegraphics.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LINE (GRAPHICS)"}}----
-Draws a line
+Dessine une ligne
{{fbdoc item="syntax"}}##
**Line** [//target//,] [[STEP] (//x1//, //y1//)]-[STEP] (//x2, y2//) [, [//color//][, [B|BF][, //style//]]]
@@ -8,36 +8,36 @@ Draws a line
##
{{fbdoc item="param"}}
##//target//##
- specifies buffer to draw on
+ spécifie le tampon sur lequel dessiner
##STEP##
- indicates that the starting coordinates are relative
+ indique que les coordonnées de départ sont relatives
##//(x1, y1)//##
- starting coordinates of the line
+ coordonnées de départ de la ligne
##STEP##
- indicates that ending coordinates are relative
+ indique que les coordonnées de fin sont relatives
##//(x2, y2)//##
- ending coordinates of the line
+ coordonnées de fin de la ligne
##//color//##
- the color attribute.
+ l'attribut de couleur.
##B|BF##
- specifies box or box filled mode
+ spécifie boîte ou boîte remplie
##//style//##
- line style
+ style de la ligne
{{fbdoc item="desc"}}
- Graphics statement that draws a straight line or a box between two points. The action will take place on the current work page set via [[KeyPgScreenset ScreenSet]], or onto the buffer [[KeyPgGetgraphics Get]]/[[KeyPgPutgraphics Put]] buffer if specified.
+ Déclaration graphique qui dessine une ligne droite ou une boîte entre deux points. Cela se passera sur la page de travail courante via [[KeyPgScreenset ScreenSet]] ou sur un tampon [[KeyPgGetgraphics Get]]/[[KeyPgPutgraphics Put]] si c'est spécifié.
- **Line** coordinates are affected by custom coordinates system set via [[KeyPgWindow Window]] and [[KeyPgViewgraphics View (Graphics)]] statements, and respect clipping rectangle set by [[KeyPgViewgraphics View (Graphics)]]. If a pair of coordinates is preceded by the ##STEP## keyword, the coordinates are assumed to be relative to the last graphics cursor position. If the ##B## flag is specified, a rectangle will be drawn instead of a line, with ##(//x1//,//y1//)-(//x2//,//y2//)## as the coordinates of the opposite rectangle corners. If ##BF## is specified, a filled rectangle will be drawn.
+ Les coordonnées de **Line** sont affectées par le système de coordonnées personnel établi via [[KeyPgWindow Window]] et [[KeyPgViewgraphics View (Graphique)]] et respecte le rectangle de découpage (clipping rectangle) établi par [[KeyPgViewgraphics View (Graphics)]]. Si une paire de coordonnées est précédée par le mot-clef ##STEP##, les coordonnées sont considérées comme relatives à la dernière position du curseur graphique. Si l'indicateur ##B## est spécifié, un rectangle sera tracé au lieu d'une ligne, avec ##(//x1//,//y1//)-(//x2//,//y2//)## comme coordonnées des coins opposés du rectangle. Si ##BF## est spécifié, un rectangle plein sera tracé.
- ##//Color//## denotes the color attribute, which is mode specific (see [[KeyPgColor Color]] and [[KeyPgScreengraphics Screen (Graphics)]] for details). If omitted, the current foreground color as set by the [[KeyPgColor Color]] statement is used.
+ ##//Color//## correspond à l'attribut de couleur, qui est spécifique au mode (voir [[KeyPgColor Color]] et [[KeyPgScreengraphics Screen (Graphique)]] pour plus de détails). Si omis, la couleur courante d'avant-plan validée par [[KeyPgColor Color]] sera utilisée.
- ##//Style//##, if specified, allows styled line drawing; its value is interpreted as a 16bit bitmask, and **Line** will use it to skip pixel drawing. Starting at ##(//x1//,//y1//)##, the most significant bit of the style mask is checked: if 1, the pixel is drawn, if 0, it's skipped. This repeats for all the line pixels with the other bits, with the mask being reused when the 16 bits are all checked.
+ Si ##//Style//## est spécifié, cela permet de tracer une ligne avec un certain style; sa valeur est interprétée comme un masque de 16 bits et **Line** sera utilisé pour interpréter le dessin de pixels. Débutant à ##(//x1//,//y1//)##, le bit de poids le plus fort du masque de style est utilisé: s'il est à 1, le pixel est dessiné, s'il est à 0, il ne l'est pas. Ceci sera répété pour tous les pixels de la ligne en utilisant les autres bits, le masque étant réutilisé depuis le début quand ses 16 bits auront été utilisés.
- When **Line** is used as //Line - (x2, y2)//, a line is drawn from the current cursor position to the ##(//x2//,//y2//)## coordinates specified by LINE. Alternatively, [[KeyPgPoint Point]] can be used to get the current cursor position.
+ Quand **Line** est utilisé de cette façon: //Line - (x2, y2)//, une ligne est tracée de la position courante du curseur aux coordonnées ##(//x2//,//y2//)## spécifiées par LINE. Alternativement, [[KeyPgPoint Point]] peut être utilisé pour obtenir la position courante du curseur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/line.bas"}}%%(freebasic)
-'' draws a diagonal red line with a white box, and waits for 3 seconds
+'' Dessine une ligne diagonale rouge avec une boite blanche, et attend 3 secondes
screen 13
line (20, 20)-(300, 180), 4
line (140, 80)-(180, 120), 15, b
@@ -46,23 +46,23 @@ sleep 3000
%%
{{fbdoc item="filename" value="examples/manual/gfx/line_style.bas"}}%%(freebasic)
-' Draws 2 lines with 2 different line styles in 2 different colors
+' Dessine 2 lignes avec 2 styles de ligne differents dans 2 couleurs differentes
screenres 320, 240
-Line (10, 100)-(309, 140), 4, B, &b1010101010101010 ' red box with dashed border
+Line (10, 100)-(309, 140), 4, B, &b1010101010101010 ' boite rouge avec bords pointilles
-Line (20, 115)-(299, 115), 9, , &b1111000011111111 ' blue dashed line
-Line (20, 125)-(299, 125), 10, , &b0000000011110000 ' green dashed line
+Line (20, 115)-(299, 115), 9, , &b1111000011111111 ' ligne bleue tirets
+Line (20, 125)-(299, 125), 10, , &b0000000011110000 ' ligne verte tirets
Sleep
%%
{{fbdoc item="diff"}}
- - ##//target//## is new to ""FreeBASIC""
+ - ##//target//## est nouveau pour FreeBASIC
{{fbdoc item="see"}}
- [[KeyPgCircle Circle]]
- [[KeyPgWindow Window]]
- - [[KeyPgViewgraphics View (Graphics)]]
+ - [[KeyPgViewgraphics View (Graphique)]]
{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgLineinput.wakka b/fbdocs/manual/cache/KeyPgLineinput.wakka
index 9f48e55e5d..6e80d9fbdf 100644
--- a/fbdocs/manual/cache/KeyPgLineinput.wakka
+++ b/fbdocs/manual/cache/KeyPgLineinput.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="LINE INPUT"}}----
-Reads one line of input from the keyboard
+Lit une ligne d'entrée à partir du clavier
{{fbdoc item="syntax"}}##
**Line Input** [;] [//promptstring// {;|,} ] //stringvariable//
##
{{fbdoc item="param"}}
##//promptstring//##
- prompt to display before waiting for input
+ invite à afficher avant d'attendre pour l'entrée
##//stringvariable//##
- variable to receive the line of text
+ variable pour recevoir la ligne de texte
{{fbdoc item="desc"}}
- Reads a line of text from the keyboard and stores it in a string variable.
+ Lit une ligne de texte à partir du clavier et la stocke dans une variable chaîne.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/console/lineinput.bas"}}%%(freebasic)
@@ -23,7 +23,7 @@ print "You entered '"; x; "'"
%%
{{fbdoc item="diff"}}
- - QBASIC only allowed literal strings for the prompt text. FreeBASIC allows any variable or constant string expression.
+ - QBASIC permet seulement des chaînes littérales pour le texte de l'invite. FreeBASIC permet n'importe quelle expression chaîne variable ou constante.
{{fbdoc item="see"}}
- ##[[KeyPgLineinputPp Line Input #]]##
diff --git a/fbdocs/manual/cache/KeyPgLineinputPp.wakka b/fbdocs/manual/cache/KeyPgLineinputPp.wakka
index bfc05bf8a0..3dd4f12e8c 100644
--- a/fbdocs/manual/cache/KeyPgLineinputPp.wakka
+++ b/fbdocs/manual/cache/KeyPgLineinputPp.wakka
@@ -1,19 +1,19 @@
{{fbdoc item="title" value="LINE INPUT #"}}----
-Reads one line of text from a file
+Lit une ligne de texte à partir d'un fichier
{{fbdoc item="syntax"}}##
**Line Input** #//file number//, //string_variable//
##
{{fbdoc item="param"}}
##//file number//##
- file number of an file opened for ##[[KeyPgInputfilemode Input]]##
+ numéro de fichier d'un fichier ouvert pour ##[[KeyPgInputfilemode Input]]##
##//string_variable//##
- variable to receive the line of text
+ variable pour recevoir la ligne de texte
{{fbdoc item="desc"}}
- Reads a line from an open text file (opened for ##[[KeyPgInputfilemode Input]]## through a bound file number) and stores it in a string variable.
+ Lit une ligne d'un fichier texte ouvert (ouvert pour ##[[KeyPgInputfilemode Input]]## grâce à un numéro de fichier lié) et les stocke dans une variable chaîne.
- A line of text ends at, but does not include the end of line characters. An end of line character may be the ##LF## character (##[[KeyPgChr Chr]](10)##) or the ##CRLF## character pair (##[[KeyPgChr Chr]](13,10)##).
+ Une ligne de texte se termine à un certain endroit, mais ne comprend pas les caractères de fin de ligne. Le caractère de fin de ligne peut être le caractère ##LF## (##[[KeyPgChr Chr]](10)##) ou le double caractère ##CRLF## (##[[KeyPgChr Chr]](13,10)##).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/lineinput.bas"}}%%(freebasic)
@@ -46,12 +46,12 @@ Resume Next
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgInputPp Input #]]##
- ##[[KeyPgLineinputPp Line Input #]]##
- ##[[KeyPgOpen Open]]##
- - ##[[KeyPgInputfilemode Input (file mode)]]##
+ - ##[[KeyPgInputfilemode Input (Mode fichier)]]##
{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgLoByte.wakka b/fbdocs/manual/cache/KeyPgLoByte.wakka
index 72ebbb0993..a92014f7d5 100644
--- a/fbdocs/manual/cache/KeyPgLoByte.wakka
+++ b/fbdocs/manual/cache/KeyPgLoByte.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOBYTE"}}----
-Gets the least-significant byte (LSB, or //lo-byte//) of an ##[[KeyPgUinteger Uinteger]]## value.
+Obtient la valeur de l'octet le moins significatif (LSB = Least-Significant Byte, ou //lo-byte//) d'une valeur ##[[KeyPgUinteger UInteger]]##.
{{fbdoc item="syntax"}}##
[[KeyPgPpdefine #define]] **Lobyte**( //expr// ) ( [[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//) [[KeyPgOpAnd and]] &h000000FF )
@@ -9,13 +9,13 @@ Gets the least-significant byte (LSB, or //lo-byte//) of an ##[[KeyPgUinteger Ui
##
{{fbdoc item="param"}}
##//expr//##
- A numeric expression, converted to an ##[[KeyPgUinteger Uinteger]]## value.
+ Une expression numérique, convertie en une valeur ##[[KeyPgUinteger UInteger]]##.
-{{fbdoc item="ret"}}
- Returns the LSB value of `##[[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//)##`.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la valeur de l'octet le moins significatif (LSB) de `##[[KeyPgCast Cast]]([[KeyPgUinteger UInteger]], //expr//)##`.
{{fbdoc item="desc"}}
- This macro converts the numeric expression ##//expr//## to an ##[[KeyPgUinteger Uinteger]]## value, then expands to an [[KeyPgUinteger Uinteger]] representing the value of its LSB.
+ Cette macro convertit l'expression numérique ##//expr//## en une valeur ##[[KeyPgUinteger UInteger]]##, qu'elle développe ensuite en un [[KeyPgUinteger UInteger]] représentant la valeur de son LSB.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/bits/lobyte.bas"}}%%(freebasic)
@@ -32,7 +32,7 @@ PRINT "The binary representation of the LSB is "; BIN(LOBYTE(N))
SLEEP
%%
-The output would look like:
+La sortie sera:
%%
N Is 43905
The Binary representation of N Is 1010101110000001
@@ -44,10 +44,10 @@ The Binary representation of the LSB Is 10000001
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__LOBYTE""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__LOBYTE**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgHibyte Hibyte]]##
diff --git a/fbdocs/manual/cache/KeyPgLoWord.wakka b/fbdocs/manual/cache/KeyPgLoWord.wakka
index c6bb9de9c4..e4ac355784 100644
--- a/fbdocs/manual/cache/KeyPgLoWord.wakka
+++ b/fbdocs/manual/cache/KeyPgLoWord.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOWORD"}}----
-Gets the least-significant word (LSW, or //lo-word//) of an ##[[KeyPgUinteger Uinteger]]## value.
+Obtient la valeur du mot le moins significatif (LSW = Least-Significant Word, ou //lo-word//) d'une valeur ##[[KeyPgUinteger UInteger]]##.
{{fbdoc item="syntax"}}##
[[KeyPgPpdefine #define]] **Loword**( //expr// ) ( [[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//) [[KeyPgOpAnd and]] &h0000FFFF )
@@ -9,13 +9,13 @@ Gets the least-significant word (LSW, or //lo-word//) of an ##[[KeyPgUinteger Ui
##
{{fbdoc item="param"}}
##//expr//##
- A numeric expression, converted to an ##[[KeyPgUinteger Uinteger]]## value.
+ Une expression numérique, convertie en une valeur ##[[KeyPgUinteger UInteger]]##.
-{{fbdoc item="ret"}}
- Returns the LSW value of `##[[KeyPgCast Cast]]([[KeyPgUinteger Uinteger]], //expr//)##`.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la valeur du mot le moins significatif (LSW) de `##[[KeyPgCast Cast]]([[KeyPgUinteger UInteger]], //expr//)##`.
{{fbdoc item="desc"}}
- This macro converts the numeric expression ##//expr//## to an ##[[KeyPgUinteger Uinteger]]## value, then expands to an [[KeyPgUinteger Uinteger]] representing the value of its LSW.
+ Cette macro convertit l'expression numérique ##//expr//## en une valeur ##[[KeyPgUinteger UInteger]]##, qu'elle développe ensuite en un [[KeyPgUinteger UInteger]] représentant la valeur de son LSW.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/bits/loword.bas"}}%%(freebasic)
@@ -34,7 +34,7 @@ PRINT "The binary representation of the LSW is "; BIN(LOWORD(N))
SLEEP
%%
-The output would look like:
+La sortie sera:
%%
N Is 2147614719
The Binary representation of N Is 10000000000000011111111111111111
@@ -46,10 +46,10 @@ The Binary representation of the LSW Is 1111111111111111
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__LOWORD""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__LOWORD**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgLoByte Lobyte]]##
diff --git a/fbdocs/manual/cache/KeyPgLoc.wakka b/fbdocs/manual/cache/KeyPgLoc.wakka
index 759c18445c..b0fca41a64 100644
--- a/fbdocs/manual/cache/KeyPgLoc.wakka
+++ b/fbdocs/manual/cache/KeyPgLoc.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOC"}}----
-Returns the file position where the last file read/write was performed
+Retourne la position où la dernière opération de lecture/écriture du fichier a été réalisée
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Loc** ( [[KeyPgByval byval]] //filenum// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
@@ -9,22 +9,22 @@ Returns the file position where the last file read/write was performed
##
{{fbdoc item="param"}}
##//filenum//##
- The file number of an open file.
+ Le numéro d'un fichier ouvert.
-{{fbdoc item="ret"}}
- The file position where the last read/write was performed.
+{{fbdoc item="section" value="Valeur retournée
+ La position où la dernière opération de lecture/écriture du fichier a été réalisée.
{{fbdoc item="desc"}}
- Returns the position where the last file read/write was performed.
+ Retourne la position où la dernière opération de lecture/écriture du fichier a été réalisée.
- The position is indicated in records:
- In files opened FOR RANDOM the record length specified when file was opened is used
- In text files (FOR INPUT|OUTPUT|APPEND, a record length of 128 bytes is supposed.
- In files opened for BINARY a 1 byte record length is used.
+ La position est indiquée en enregistrements:
+ Dans les fichiers ouverts FOR RANDOM la longueur en enregistrements est spécifiée quand le fichier qui a été ouvert est utilisé.
+ Dans les fichiers texte (FOR INPUT|OUTPUT|APPEND, un enregistrement est supposé avoir une longueur de 128 octets.
+ Dans les fichiers ouverts BINARY la longueur d'un enregistrement est de 1 octet.
- In FreeBASIC the file position is 1 based, the first record of a file is record 1.
+ Dans FreeBASIC la position dans le fichier est basée sur 1, le premier enregistrement d'un fichier a le numéro 1.
- When used with a serial device, ##**Loc**## returns the number of bytes waiting to be read from the serial device's input buffer.
+ Lorsqu'il est utilisé avec un périphérique série, ##**LOC**## renvoie le nombre d'octets en attente de lecture dans la mémoire tampon d'entrée du dispositif série.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/loc.bas"}}%%(freebasic)
@@ -52,12 +52,12 @@ close #1
%%
{{fbdoc item="diff"}}
- - !!WRITEME!! ?
+ - !! À écrire !! ?
{{fbdoc item="see"}}
- ##[[KeyPgLof Lof]]##
- ##[[KeyPgEof Eof]]##
- - ##[[KeyPgSeekreturn Seek (Function)]]##
+ - ##[[KeyPgSeekreturn Seek (Fonction)]]##
- ##[[KeyPgOpen Open]]##
{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgLocal.wakka b/fbdocs/manual/cache/KeyPgLocal.wakka
index 8890091d0b..45d7c70df2 100644
--- a/fbdocs/manual/cache/KeyPgLocal.wakka
+++ b/fbdocs/manual/cache/KeyPgLocal.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOCAL"}}----
-Error handling statement to set the current error handler
+Instruction de gestion des erreurs pour définir le gestionnaire d'erreur courant
{{fbdoc item="syntax"}}##
On **Local** Error Goto //label//
@@ -7,14 +7,14 @@ Error handling statement to set the current error handler
{{fbdoc item="usage"}}##
On **Local** Error Goto //label//
##
-{{fbdoc item="param"}}
+{{fbdoc item="section" value="Paramétres
##//label//##
- label to jump to when error occurs
+ label où sauter en cas d'erreur
{{fbdoc item="desc"}}
- The ##**Local**## clause in an ##[[KeyPgOnerror On Error]]## construction allows to define an error handler in the same ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## the ##**On Local Error**## is. ##[[KeyPgExit Exit]]## ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## must be used before the start of the error handler.
+ La clause ##**Local**## dans une construction de type ##[[KeyPgOnerror On Error]]## permet de définir un gestionnaire d'erreur dans le même style ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## que ##**On Local Error**##. ##[[KeyPgExit Exit]]## ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## doit être utilisé avant le début du gestionnaire d'erreur.
- Notice the program must be compiled with //[[CompilerOpte -e]]// or //[[CompilerOptex -ex]]// option for the QB-like error handling to work.
+ Notez que le programme doit être compilé avec l'option //[[CompilerOpte -e]]// ou //[[CompilerOptex -ex]]// pour que fonctionne la gestion de type QB des erreurs.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/error/local.bas"}}%%(freebasic)
@@ -41,9 +41,9 @@ fail: ' here starts the error handler
End Sub
%%
{{fbdoc item="diff"}}
- - The LOCAL clause comes from PDS 7.1. QB 4.5 does not allow local error handling.
+ - La clause LOCAL vient de PDS 7.1. QB 4.5 ne permet pas la gestion locale des erreurs.
{{fbdoc item="see"}}
- - {{fbdoc item="keyword" value="ProPgErrorHandling|Error Handling"}}
+ - [[ProPgErrorHandling Gestion des erreurs]]
{{fbdoc item="back" value="CatPgError|Error Handling Functions"}}
diff --git a/fbdocs/manual/cache/KeyPgLocate.wakka b/fbdocs/manual/cache/KeyPgLocate.wakka
index 5010743df0..6812a07ed0 100644
--- a/fbdocs/manual/cache/KeyPgLocate.wakka
+++ b/fbdocs/manual/cache/KeyPgLocate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOCATE"}}----
-Sets the current cursor position
+Fixe la position ligne et colonne du cuseur ainsi que sa visibilité
{{fbdoc item="syntax"}}##
**Locate** [//row// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//column// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//cursorstate// [[KeyPgAs as]] [[KeyPgInteger integer]] ]][, [//start// [[KeyPgAs as]] [[KeyPgInteger integer]] ][, [//stop// [[KeyPgAs as]] [[KeyPgInteger integer]] ]
@@ -9,23 +9,42 @@ Sets the current cursor position
##
{{fbdoc item="param"}}
##//row//##
- the 1-based vertical character position in the console.
+ position verticale (en caractères), dans la console, du curseur (1ère position = 1 non pas 0).
##//column//##
- the 1-based horizontal character position in the console.
+ position horizonale (en caractères), dans la console, du curseur (1ère position = 1 non pas 0).
##//cursorstate//##
- the state of the cursor. ##0## is off, ##1## is on (console-mode only).
+ l'état du curseur. ##0## est invisible (off), ##1## est visible (on) (mode console seulement).
##//start//##
- Ignored. Allowed for //[[CompilerOptlang -lang qb]]// dialect compatibility only.
+ Ignoré. Alloué seulement pour compatibilité avec le dialecte //[[CompilerOptlang -lang qb]]//.
##//stop//##
- Ignored. Allowed for //[[CompilerOptlang -lang qb]]// dialect compatibility only.
+ Ignoré. Alloué seulement pour compatibilité avec le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="desc"}}
- Sets the text cursor in both graphics and console modes.
+ Valide le curseur texte aussi bien dans les modes graphiques que console.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/console/locate.bas"}}%%(freebasic)
+ %%(freebasic)
locate 10
print "Current line:"; CSRLIN
+%%
+
+ {{fbdoc item="diff"}}
+- Les arguments ##//start//## et ##//stop//## n'ont aucun effet dans FreeBASIC.
+{{fbdoc item="see"}}
+
+- ##[[KeyPgCsrlin CsrLin]]##
+- ##[[KeyPgPos Pos]]##
+
+- ##[[KeyPgPrint Print]]##
+ getmouse dx, dy
+ if( dx <> x or dy <> y ) then
+ locate y+1, x+1: print " ";
+ x = dx
+ y = dy
+ locate 1, 1: print x, y, ""
+ locate y+1, x+1: print "X";
+ end if
+wend
%%
{{fbdoc item="diff"}}
diff --git a/fbdocs/manual/cache/KeyPgLock.wakka b/fbdocs/manual/cache/KeyPgLock.wakka
index 42bb50668c..12527fa47b 100644
--- a/fbdocs/manual/cache/KeyPgLock.wakka
+++ b/fbdocs/manual/cache/KeyPgLock.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOCK"}}----
-Restricts read/write access to a file or portion of a file
+Limite l'accès en lecture/écriture sur un fichier ou une partie d'un fichier
{{fbdoc item="syntax"}}##
**Lock** #//filenum//, //record//
@@ -7,20 +7,20 @@ Restricts read/write access to a file or portion of a file
##
{{fbdoc item="param"}}
##//filenum//##
- The file number used to ##[[KeyPgOpen Open]]## the file.
+ Le numéro du fichier pour ##[[KeyPgOpen Open (=ouvrir)]]## le fichier.
##//record//##
- The record (##[[KeyPgRandom Random]]## files) to lock.
+ L'enregistrement (fichiers ##[[KeyPgRandom Random]]##) à verrouiller.
##//start//##
- The first byte position (##[[KeyPgBinary Binary]]## files) to lock from.
+ La position du premier octet (##[[KeyPgBinary Binary]]## files) à partir duquel verrouiller.
##//end//##
- The last byte position (##[[KeyPgBinary Binary]]## files) to lock to.
+ La position du dernier octet (##[[KeyPgBinary Binary]]## files) jusqu'où verrouiller.
{{fbdoc item="desc"}}
- ##**Lock**## temporarily restricts access by other threads or programs to a file, or portion of a file, usually to allow safe writing to it.
+ ##**Lock**## restreint temporairement l'accès par d'autres ##//threads//## ou programmes dans un fichier, ou une partie d'un fichier, généralement pour permettre une écriture sécurisée dans ce fichier (ou partie de...).
- After modifying the data, an ##[[KeyPgUnlock Unlock]]## with the same parameters as the ##**Lock**## should be issued.
+ Après avoir modifié les données, un ##[[KeyPgUnlock Unlock]]## avec les mêmes paramètres que ##**Lock**## doit être effectué.
- **Note: This command does not always work, neither as documented nor as expected. It appears to be broken at the moment.**
+ **Note: Cette commande ne fonctionne toujours pas, ni comme documentée, ni comme prévu. Elle semble être "cassée" pour le moment.**
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/lock.bas"}}%%(freebasic)
@@ -41,8 +41,8 @@ close #f
%%
{{fbdoc item="diff"}}
- - Currently, FB cannot implicitly lock the entire file
- - In ##[[KeyPgRandom Random]]## mode, FB cannot lock a range of records
+ - Actuellement, FB ne peut pas verrouiller implicitement tout le fichier.
+ - En mode ##[[KeyPgRandom Random]]##, FB ne peut pas verrouiller une plage d'enregistrements.
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgLof.wakka b/fbdocs/manual/cache/KeyPgLof.wakka
index 5b481a3758..0d0a623117 100644
--- a/fbdocs/manual/cache/KeyPgLof.wakka
+++ b/fbdocs/manual/cache/KeyPgLof.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOF"}}----
-Returns the length of an open disk file
+Retourne la longueur d'un fichier disque ouvert
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Lof** ( [[KeyPgByval byval]] //filenum// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
@@ -9,15 +9,15 @@ Returns the length of an open disk file
##
{{fbdoc item="param"}}
##//filenum//##
- The file number of an open disk file.
+ Le numéro de fichier d'un fichier ouvert sur le disque.
-{{fbdoc item="ret"}}
- The length in bytes of an open disk file.
+{{fbdoc item="section" value="Valeur retournée
+ La longueur en octets d'un fichier ouvert sur le disque.
{{fbdoc item="desc"}}
- Returns the length, in bytes, of a file opened previously with ##[[KeyPgOpen Open]]## using the given ##//filenum//##.
+ Renvoie la longueur, en octets, d'un fichier ouvert précédemment avec ##[[KeyPgOpen Open (=ouvrir)]]## en utilisant ##//filenum//##.
- With ##[[KeyPgOpenCom Open Com]]## it returns the length of the data pending to be read in the receive buffer.
+ Avec ##[[KeyPgOpenCom Open Com]]##, il renvoie la longueur des données en attente d'être lues, dans le tampon de réception.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/lof.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ close #f
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgLoc Loc]]##
diff --git a/fbdocs/manual/cache/KeyPgLog.wakka b/fbdocs/manual/cache/KeyPgLog.wakka
index 3c2e245c45..1e0b589736 100644
--- a/fbdocs/manual/cache/KeyPgLog.wakka
+++ b/fbdocs/manual/cache/KeyPgLog.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOG"}}----
-Returns the natural logarithm of a given number
+Retourne le logarithme naturel d'un nombre donné
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Log** [[KeyPgCdecl cdecl]] ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,13 +9,13 @@ Returns the natural logarithm of a given number
##
{{fbdoc item="param"}}
##//number//##
- The number to calculate the natural log.
+ Le nombre pour lequel on calcule le logarithme naturel.
-{{fbdoc item="ret"}}
- Returns the logarithm with the base //e// (also know as the natural logarithm) of ##//number//##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le logarithme avec la base //**e**// (connu aussi sous le nom de logarithme naturel) de ##//number//##.
{{fbdoc item="desc"}}
- There can be some confusion with this notation given that in mathematics the natural logarithm function is usually denoted **LN**, while the logarithm of base 10 is often denoted as LOG. FreeBASIC, like most computer programming languages, uses LOG to denote the natural logarithm. The required //number// argument can be any valid numeric expression greater than zero. If ##//number//## is zero, FreeBASIC returns a special value representing "-infinity", printing like "-Inf". If ##//number//## is less than zero, **Log** returns a special value representing "not defined", printing like """NaN""" or "IND", exact text is platform dependent. If ##//number//## is an uninitialized variable, -infinity is returned.
+ Il peut y avoir une certaine confusion avec cette notation étant donné que dans les mathématiques la fonction logarithme naturel est généralement notée **LN**, tandis que le logarithme de base 10 est souvent notée comme LOG. FreeBasic, comme la plupart des langages de programmation informatique, utilise LOG pour désigner le logarithme naturel. Si ##//number//## est égal à zéro, FreeBasic retourne une valeur spéciale qui représente "-infinity", affiché "-Inf". Si ##//number//## est inférieur à zéro, **Log** retourne une valeur spéciale représentant "non défini", affichée "NaN" ou "IND", le texte exact dépend de la plate-forme de travail. Si ##//number//## est une variable non initialisée, "-infinity" est retourné.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/math/log.bas"}}%%(freebasic)
@@ -31,14 +31,14 @@ PRINT "The log base 2 of 16 is:"; LogBaseX ( 16 , 2 )
SLEEP
%%
-The output would look like:
+Affichera:
%%
The log base 10 of 20 is: 1.301029995663981
The log base 2 of 16 is: 4
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgExp Exp]]##
diff --git a/fbdocs/manual/cache/KeyPgLong.wakka b/fbdocs/manual/cache/KeyPgLong.wakka
index 56f8498261..87cfdce9f2 100644
--- a/fbdocs/manual/cache/KeyPgLong.wakka
+++ b/fbdocs/manual/cache/KeyPgLong.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="LONG"}}----
-Standard data type: signed integer having same size as ##[[KeyPgSizeof Sizeof]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##
+Type de données standard: nombre entier signé ayant la même taille que ##[[KeyPgSizeof SizeOf]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Long**
##
{{fbdoc item="desc"}}
- Depending on the platform, same as ##[[KeyPgInteger Integer]]## or ##[[KeyPgLongint Longint]]##. A 32-bit or 64-bit signed whole-number data type.
+ Selon la plate-forme, identique à un ##[[KeyPgInteger Integer]]## ou un ##[[KeyPgLongint LongInt]]##. Type de données: nombre entier signé de 32 bits ou 64 bits.
- ##**Long**## has the same size as ##[[KeyPgSizeof Sizeof]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##.
+ ##**Long**## a la même taille que ##[[KeyPgSizeof SizeOf]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/long.bas"}}%%(freebasic)
@@ -15,16 +15,16 @@ Standard data type: signed integer having same size as ##[[KeyPgSizeof Sizeof]](
Dim y As Long = &H7FFFFFFF
Print "Long Range = "; x; " to "; y
%%
- **Output:**
+ **Affichage:**
%%Long Range = -2147483648 to 2147483647%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang fb]]// and //[[CompilerOptlang -lang fblite]]// dialects, the ##**Long**## data type has the same size as ##[[KeyPgSizeof Sizeof]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##.
- - In the //[[CompilerOptlang -lang qb]]// dialect, the ##**Long**## data type is always 32-bit.
+ - Dans les dialectes //[[CompilerOptlang -lang fb]]// et //[[CompilerOptlang -lang fblite]]//, le type de données ##**Long**## a la même taille que ##[[KeyPgSizeof SizeOf]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, le type de données ##**Long**## a toujours 32 bits.
{{fbdoc item="diff"}}
- - In QB, LONG is always 32-bit.
- - None, if compiled in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Dans QB, LONG est toujours 32 bits.
+ - Aucune, si compilé dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgInteger Integer]]##
diff --git a/fbdocs/manual/cache/KeyPgLongint.wakka b/fbdocs/manual/cache/KeyPgLongint.wakka
index a3e5e3301e..8bfb298157 100644
--- a/fbdocs/manual/cache/KeyPgLongint.wakka
+++ b/fbdocs/manual/cache/KeyPgLongint.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="LONGINT"}}----
-Standard data type: 64 bit signed
+Type de données standard: entier signé de 64 bits
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Longint**
##
{{fbdoc item="desc"}}
- A 64-bit signed whole-number data type. Can hold values from -9 223 372 036 854 775 808 to 9 223 372 036 854 775 807
+ Un nombre entier signé de 64 bits. Peut contenir des valeurs de -9 223 372 036 854 775 808 à 9 223 372 036 854 775 807.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/longint.bas"}}%%(freebasic)
@@ -13,15 +13,15 @@ Standard data type: 64 bit signed
Dim y As Longint = &H7FFFFFFFFFFFFFFF
Print "LongInt Range = "; x; " to "; y
%%
- **Output:**
+ **Affichage:**
%%LongInt Range = -9223372036854775808 to 9223372036854775807%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Longint""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Longint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgUlongint Ulongint]]##
diff --git a/fbdocs/manual/cache/KeyPgLoop.wakka b/fbdocs/manual/cache/KeyPgLoop.wakka
index 34feb229d8..4be5042e7b 100644
--- a/fbdocs/manual/cache/KeyPgLoop.wakka
+++ b/fbdocs/manual/cache/KeyPgLoop.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LOOP"}}----
-Control flow statement for looping.
+Déclaration de contrôle de flux pour une boucle.
{{fbdoc item="syntax"}}##
**Do**
diff --git a/fbdocs/manual/cache/KeyPgLpos.wakka b/fbdocs/manual/cache/KeyPgLpos.wakka
index 59fa180f5b..6b2bbf7272 100644
--- a/fbdocs/manual/cache/KeyPgLpos.wakka
+++ b/fbdocs/manual/cache/KeyPgLpos.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LPOS"}}----
-Returns the number of characters sent to the printer port in the last ##[[KeyPgLprint Lprint]]## statement.
+Retourne le nombre de caractères envoyés au port d'imprimante depuis la dernière déclaration ##[[KeyPgLprint LPrint]]##.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Lpos** ( [[KeyPgByval byval]] //printer// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,13 +9,13 @@ Returns the number of characters sent to the printer port in the last ##[[KeyPgL
##
{{fbdoc item="param"}}
##//printer//##
- Either 0, 1, 2 or 3. Represents the printer port (LPT#)
+ 0, 1, 2 ou 3. Représente le port imprimante (LPT#)
-{{fbdoc item="ret"}}
- Returns the number of characters sent.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le nombre de caractères envoyés.
{{fbdoc item="desc"}}
- Used to determine, from the last ##[[KeyPgLprint Lprint]]##, how many characters were sent to the printer port.
+ Utilisé pour déterminer, à partir du dernier ##[[KeyPgLprint LPrint]]##, combien de caractères ont été envoyés au port d'imprimante.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/hardware/lpos.bas"}}%%(freebasic)
@@ -34,7 +34,7 @@ Sleep
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgLprint Lprint]]##
diff --git a/fbdocs/manual/cache/KeyPgLprint.wakka b/fbdocs/manual/cache/KeyPgLprint.wakka
index b85d3113ee..39b63402b9 100644
--- a/fbdocs/manual/cache/KeyPgLprint.wakka
+++ b/fbdocs/manual/cache/KeyPgLprint.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="LPRINT"}}----
-Writes text to the default printer.
+Écrit du texte vers l'imprimante par défaut.
{{fbdoc item="syntax"}}##
**Lprint** [ [[KeyPgPrintusing Using]] //formatstring//,] [//expressionlist//] [(, | ;)] ...
##
{{fbdoc item="param"}}
##//formatstring//##
- String specifying the output format.
+ Chaîne spécifiant le format de sortie.
##//expressionlist//##
- List of variables to output according to the specified format.
+ Liste des variables pour une sortie selon le format spécifié.
{{fbdoc item="desc"}}
- Prints ##//expressionlist//## to the printer attached to the parallel port LPT1, or if it does not exist, to the default printer. To print to a printer different from the default one, use ##[[KeyPgOpenLpt OPEN LPT]]##.
+ Imprime ##//expressionlist//## sur l'imprimante connectée au port parallèle LPT1, ou si elle n'existe pas, à l'imprimante par défaut. Pour imprimer sur une imprimante différente de celle par défaut, utilisez ##[[KeyPgOpenLpt Open Lpt]]##.
- The ##[[KeyPgPrintusing Using]]## clause formats ##//expressionlist//## according to ##//formatstring//##. Any data type but a UDT can be passed to **##Lprint##** ##//expressionlist##//, expressions do **not** have to be converted to strings first.
+ La clause ##[[KeyPgPrintusing Using]]## formate ##//expressionlist//## en accord avec ##//formatstring//##. Tout type de données sauf un type défini par l'utilisateur peut être passé à **##LPrint##** ##//expressionlist##//, les expressions n'ont pas à être converties en chaînes avant.
- Using a comma (##,##) as separator or in the end of the ##//expressionlist//## will place the cursor in the next column (every 14 characters), using a semi-colon (##;##) won't move the cursor. If neither of them are used in the end of the ##//expressionlist//##, then a new-line will be printed.
+ L'utilisation d'une virgule (##,##) comme séparateur ou à la fin de ##//expressionlist//## placera le curseur au début de la colonne suivante (tous les 14 caractères), l'utilisation d'un point-virgule (##;##) ne déplacera pas le curseur. Si ni l'un ni l'autre n'est placé à la fin de ##//expressionlist//##, alors une spécification de nouvelle ligne sera envoyée.
- Some printers will not print at all until a ##[[KeyPgChr Chr]](12)## (End of Page) character is printed.
+ Certaines imprimantes n'impriment rien tant qu'un caractère ##[[KeyPgChr Chr]](12)## (Fin de Page) n'est pas envoyé.
- Internally, FreeBASIC uses the special file number ##-1## for printing using **##Lprint##**. This file number may be safely closed using ##[[KeyPgClose Close]] -1##. The next use of **##Lprint##** will automatically reopen it as needed.
+ En interne, FreeBASIC utilise le numéro de fichier spécial ##-1## pour l'impression en utilisant **##LPrint##**. Ce numéro de fichier peut être fermé en toute sécurité avec ##[[KeyPgClose Close]] -1##. L'utilisation suivante de **##LPrint##** le réouvrira automatiquement si nécessaire.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/hardware/lprint.bas"}}%%(freebasic)
@@ -43,10 +43,10 @@ LPrint Chr$(12)
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="lang"}}
- - ##**Lprint**## is not supported in the //[[CompilerOptlang -lang fb]]// dialect. In this dialect the printer must be properly opened with ##[[KeyPgOpenLpt Open LPT]]## and ##[[KeyPgPrintPp Print #]]## must be used to print.
+ - ##**LPrint**## n'est pas supporté par le dialecte //[[CompilerOptlang -lang fb]]//. Dans ce dialecte, l'imprimante doit être ouverte correctement avec ##[[KeyPgOpenLpt Open Lpt]]## et ##[[KeyPgPrintPp Print #]]## doit être utilisé pour imprimer.
{{fbdoc item="see"}}
- ##[[KeyPgOpenLpt Open LPT]]##
diff --git a/fbdocs/manual/cache/KeyPgLset.wakka b/fbdocs/manual/cache/KeyPgLset.wakka
index 8b4acdf60e..31ccce0626 100644
--- a/fbdocs/manual/cache/KeyPgLset.wakka
+++ b/fbdocs/manual/cache/KeyPgLset.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LSET"}}----
-Left-justifies a string
+Justification à gauche d'une chaîne de caractères
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Lset** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //dst// [[KeyPgAs as]] [[KeyPgString string]], [[KeyPgByref byref]] //src// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] )
@@ -10,19 +10,19 @@ Left-justifies a string
**Lset** //dst_udt//, //src_udt//
##
{{fbdoc item="param"}}
- ##//src//##
- String variable to receive the data.
##//dst//##
- Source string to get the data.
+ Variable chaîne pour recevoir les données.
+ ##//src//##
+ Chaîne source pour obtenir les données.
##//dst_udt//##
- User defined ##[[KeyPgType Type]]## to receive the data.
+ ##[[KeyPgType Type]]## défini par l'utilisateur pour recevoir les données.
##//src_udt//##
- User defined ##[[KeyPgType Type]]## to copy the data from.
+ ##[[KeyPgType Type]]## défini par l'utilisateur pour fournir les données.
{{fbdoc item="desc"}}
- ##**Lset**## left justifies text into the string buffer ##//dst//##, filling the left part of the string with ##//src//## and the right part with spaces. The string buffer size is not modified.
+ ##**LSet**## justifie à gauche un texte dans un tampon chaîne ##//dst//##, en remplissant sa partie gauche avec ##//src//## et sa partie droite avec des espaces. La taille du tampon chaîne n'est pas modifiée.
- For compatibility with QBasic, ##**Lset**## can also copy a user defined type variable into another one. The copy is made byte for byte, without any care for fields or alignment. It's up to the programmer to take care for the validity of the result.
+ Pour une compatibilité avec QBasic, ##**LSet**## peut aussi copier une variable définie par l'utilisateur dans une autre. La copie est effectuée octet par octet, sans se préoccuper des champs ou de l'alignement. C'est au programmeur de s'occuper de la validité des résultats.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/lset.bas"}}%%(freebasic)
@@ -50,7 +50,7 @@ print a.x
%%
{{fbdoc item="diff"}}
- -In QB, the syntax was ##**Lset** //dst// = //src//##
+
Dans QB, la syntaxe est ##**LSet** //dst// = //src//##
{{fbdoc item="see"}}
- ##[[KeyPgRset Rset]]##
diff --git a/fbdocs/manual/cache/KeyPgLtrim.wakka b/fbdocs/manual/cache/KeyPgLtrim.wakka
index 27f418f329..a58af4d5f6 100644
--- a/fbdocs/manual/cache/KeyPgLtrim.wakka
+++ b/fbdocs/manual/cache/KeyPgLtrim.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="LTRIM"}}----
-Removes surrounding substrings or characters on the left side of a string
+Enlève les sous-chaines qui entourent ou les caractères sur le côté gauche d'une chaîne.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Ltrim** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [ **Any** ] [[KeyPgByref byref]] //trimset// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] = " " ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -10,19 +10,19 @@ Removes surrounding substrings or characters on the left side of a string
##
{{fbdoc item="param"}}
##//str//##
- The source string.
+ La chaîne source.
##//trimset//##
- The substring to trim.
+ La sous-chaîne à enlever.
-{{fbdoc item="ret"}}
- Returns the trimmed string.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la chaîne "nettoyée" à gauche.
{{fbdoc item="desc"}}
- This procedure trims surrounding characters from the left (beginning) of a source string. Substrings matching ##//trimset//## will be trimmed if specified, otherwise spaces ([[CptAscii ASCII]] code 32) are trimmed.
+ Cette procédure élimine les caractères entourant à gauche (début) de la chaîne source. Les sous-chaînes correspondant à ##//trimset//## seront éliminées si spécifiées, autrement les espaces (code [[CptAscii ASCII]] 32) sont éliminés.
- If the ##**Any**## keyword is used, any character matching a character in ##//trimset//## will be trimmed.
+ Si le mot-clef ##**Any**## est utilisé, chaque caractère correspondant à un caractère dans ##//trimset//## sera éliminé.
- All comparisons are case-sensitive.
+ Toutes les comparaisons sont sensibles à la casse.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/ltrim.bas"}}%%(freebasic)
@@ -35,7 +35,7 @@ dim s2 as string = "BaaBaaBAA Test Pattern"
Print "'" + ltrim(s2, "Baa") + "'"
Print "'" + ltrim(s2, any "BaA") + "'"
%%
- will produce the output:
+ produira la sortie:
%%'101 Things to do.'
' 101 Things to do.'
@@ -45,14 +45,14 @@ Print "'" + ltrim(s2, any "BaA") + "'"
%%
{{fbdoc item="target"}}
- - DOS version/target of ""FreeBASIC"" does not support the wide-character version of ##**LTrim**##.
+ - La version/cible DOS de FreeBASIC ne supporte pas la version larges-caractères de ##**LTrim**##.
{{fbdoc item="lang"}}
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - QB does not support specifying a ##//trimset//## string or the ##ANY## clause.
+ - QB ne supporte pas les spécifications ##//trimset//## ou ##ANY##.
{{fbdoc item="see"}}
- ##[[KeyPgRtrim Rtrim]]##
diff --git a/fbdocs/manual/cache/KeyPgMemberFunction.wakka b/fbdocs/manual/cache/KeyPgMemberFunction.wakka
index 7edcc61a54..10dbd35b82 100644
--- a/fbdocs/manual/cache/KeyPgMemberFunction.wakka
+++ b/fbdocs/manual/cache/KeyPgMemberFunction.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="FUNCTION (Member)"}}----
-Declares or defines a member procedure returning a value.
+Déclare ou définit une procédure membre qui renvoie une valeur.
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] } //typename//
@@ -12,24 +12,24 @@ Declares or defines a member procedure returning a value.
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##
+ nom de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]## ou ##[[KeyPgUnion Union]]##
##//fieldname//##
- name of the procedure
+ nom de la procédure
##//external_name//##
- name of field as seen when externally linked
+ nom de champ vu quand on établit des liens externes
##//parameters//##
- the parameters to be passed to the procedure
+ les paramètres à passer à la procédure
##//calling convention specifier//##
- can be one of: ##[[KeyPgCdecl Cdecl]]##, ##[[KeyPgStdcall Stdcall]]## or ##[[KeyPgPascal Pascal]]##
+ peut être: ##[[KeyPgCdecl cdecl]]##, ##[[KeyPgStdcall stdcall]]## ou ##[[KeyPgPascal pascal]]##
{{fbdoc item="desc"}}
- ##**Function**## members are accessed with ##[[KeyPgOpMemberAccess Operator . (Member access)]]## or ##[[KeyPgOpPtrMemberAccess Operator -> (Pointer to member access)]]## to call a member procedure that returns a value. The procedure may optionally accept parameters either ##[[KeyPgByval byval]]## or ##[[KeyPgByref byref]]##. ##//typename//## be overloaded without explicit use of the ##[[KeyPgOverload Overload]]## keyword.
+ Les membres de ##**Function**## sont accessibles avec ##[[KeyPgOpMemberAccess Operator . (Accès de membre)]]## ou ##[[KeyPgOpPtrMemberAccess Operator -> (Pointeur vers Accès de membre)]]## pour appeler une procédure membre qui retourne une valeur. La procédure peut éventuellement accepter des paramètres ##[[KeyPgByval ByVal]]## ou ##[[KeyPgByref ByRef]]##. ##//typename//## peut être surchargé, sans utilisation explicite du mot-clé ##[[KeyPgOverload Overload]]##.
- ##//typename//## is the name of the type for which the ##**Function**## method is declared and defined. Name resolution for ##//typename//## follows the same rules as procedures when used in a ##[[KeyPgNamespace Namespace]]##.
+ ##//typename//## est le nom du type avec lequel la ##**Function**## est déclarée et définie. La résolution de noms pour ##//typename//## suit les mêmes règles que pour les procédures en cas d'utilisation dans un ##[[KeyPgNamespace Namespace = Espace de noms]]##.
- A hidden ##[[KeyPgThis this]]## parameter having the same type as ##//typename//## is passed to non-static member procedures. ##[[KeyPgThis this]]## is used to access the fields of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##.
+ Un paramètre caché ##[[KeyPgThis This]]## ayant le même type que ##//typename//## est passé aux procédures membres non statiques. ##[[KeyPgThis This]]## est utilisé pour accéder aux champs de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]## ou ##[[KeyPgUnion Union]]##.
- A ##[[KeyPgStaticMember Static (Member)]]## may be declared using the ##**Static**## specifier. A ##[[KeyPgConstMember Const (Member)]]## may be declared using the ##**Const**## specifier.
+ Un ##[[KeyPgStaticMember Static (Membre)]]## peut être déclaré en utilisant le spécificateur ##**Static**##. A ##[[KeyPgConstMember Const (Membre)]]## peut être déclaré en utilisant le spécificateur ##**Const**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/function.bas"}}%%(freebasic)
@@ -72,12 +72,12 @@ print "Day = "; d.Day
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgClass Class]]##
- ##[[KeyPgFunction Function]]##
- - ##[[KeyPgMemberSub Sub (Member)]]##
+ - ##[[KeyPgMemberSub Sub (Membre)]]##
- ##[[KeyPgType Type]]##
{{fbdoc item="back" value="CatPgUserDefTypes|User Defined Types"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgMemberSub.wakka b/fbdocs/manual/cache/KeyPgMemberSub.wakka
index 0302f07e71..8f0ee26441 100644
--- a/fbdocs/manual/cache/KeyPgMemberSub.wakka
+++ b/fbdocs/manual/cache/KeyPgMemberSub.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="SUB (Member)"}}----
-Declares or defines a member procedure.
+Déclare ou définit un membre de procédure.
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] } //typename//
@@ -12,24 +12,24 @@ Declares or defines a member procedure.
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##
+ nom de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ou ##[[KeyPgUnion Union]]##
##//fieldname//##
- name of the procedure
+ nom de la procédure
##//external_name//##
- name of field as seen when externally linked
+ nom du champ tel qu'il est vu quand lié extérieurement
##//parameters//##
- the parameters to be passed to the procedure
- ##//calling convention specifier//##
- can be one of: ##[[KeyPgCdecl Cdecl]]##, ##[[KeyPgStdcall Stdcall]]## or ##[[KeyPgPascal Pascal]]##
+ les paramètres à passer à la procèdure
+ ##//spécificateur de convention d'appel//##
+ peut être: ##[[KeyPgCdecl cdecl]]##, ##[[KeyPgStdcall stdcall]]## ou ##[[KeyPgPascal pascal]]##
{{fbdoc item="desc"}}
- ##**Sub**## members are accessed with ##[[KeyPgOpMemberAccess Operator . (Member access)]]## or ##[[KeyPgOpPtrMemberAccess Operator -> (Pointer to member access)]]## to call a member procedure and may optionally accept parameters either ##[[KeyPgByval byval]]## or ##[[KeyPgByref byref]]##. ##//typename//## be overloaded without explicit use of the ##[[KeyPgOverload Overload]]## keyword.
+ Les membres de ##**Sub**## sont accessibles avec ##[[KeyPgOpMemberAccess "Operator . (Accès de membre)"]]## ou ##[[KeyPgOpPtrMemberAccess "Operator -> (Pointeur vers Accès membre)"]]## pour appeler des membres de procédure et peuvent éventuellement accepter des paramètres comme ##[[KeyPgByval ByVal]]## ou ##[[KeyPgByref ByRef]]##. ##//typename//## peut être surchargé sans l'utilisation explicite du mot-clef ##[[KeyPgOverload Overload]]##.
- ##//typename//## is the name of the type for which the ##**Sub**## method is declared and defined. Name resolution for ##//typename//## follows the same rules as procedures when used in a ##[[KeyPgNamespace Namespace]]##.
+ ##//typename//## est le nom du type sous lequel la méthode ##**Sub**## a été déclarée et définie. La résolution de nom de ##//typename//## suit les mêmes règles que les procèdures quand elles sont utilisées dans un ##[[KeyPgNamespace Namespace]]##.
- A hidden ##[[KeyPgThis this]]## parameter having the same type as ##//typename//## is passed to non-static member procedures. ##[[KeyPgThis this]]## is used to access the fields of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##.
+ Le paramètre caché ##[[KeyPgThis This]]## qui a le même type que ##//typename//## est passé aux membres non-statics des procédures. ##[[KeyPgThis This]]## est utilisé pour accéder aux champs du ##[[KeyPgType Type]]##, de la ##[[KeyPgClass Class]]##, ou de l'##[[KeyPgUnion Union]]##.
- A ##[[KeyPgStaticMember Static (Member)]]## may be declared using the ##**Static**## specifier. A ##[[KeyPgConstMember Const (Member)]]## may be declared using the ##**Const**## specifier.
+ Un ##[[KeyPgStaticMember Static (Membre)]]## peut être déclaré en utilisant le spécificateur ##**Static**##. Un ##[[KeyPgConstMember Const (Membre)]]## peut être déclaré en utilisant le spécificateur ##**Const**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/sub.bas"}}%%(freebasic)
@@ -64,18 +64,18 @@ stats.AddValue 16.9
stats.ShowResults
%%
-**Output:**
+**Affichage:**
%%
Number of Values = 4
Average = 19.2
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgClass Class]]##
- - ##[[KeyPgMemberFunction Function (Member)]]##
+ - ##[[KeyPgMemberFunction Function (Membre)]]##
- ##[[KeyPgSub Sub]]##
- ##[[KeyPgType Type]]##
diff --git a/fbdocs/manual/cache/KeyPgMetaDynamic.wakka b/fbdocs/manual/cache/KeyPgMetaDynamic.wakka
index 16c9b76a91..b8242d0685 100644
--- a/fbdocs/manual/cache/KeyPgMetaDynamic.wakka
+++ b/fbdocs/manual/cache/KeyPgMetaDynamic.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="$DYNAMIC"}}----
-Metacommand to change the way arrays are allocated
+Métacommande pour changer la façon dont les tableaux sont alloués
{{fbdoc item="syntax"}}##
**'$Dynamic**
- //or//
+ //ou//
[[KeyPgRem rem]] **$Dynamic**
##
{{fbdoc item="desc"}}
- **'$Dynamic** is metacommand that specifies that any following array declarations are variable-length, whether they are declared with constant subscript ranges or not. This remains in effect for the rest of the module in which **'$Dynamic** is used, and can be overridden with ##[[KeyPgMetaStatic $Static]]##.
+ **'$Dynamic** est une métacommande qui implique que toutes les déclarations de tableaux qui suivent, qu'elles aient été déclarées avec un intervalle d'indices constant ou non, sont de longueur variable. Ceci demeure en vigueur pour le reste du module dans lequel **'$Dynamic** est utilisé, et peut être modifié avec ##[[KeyPgMetaStatic $Static]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/meta/dynamic.bas"}}%%(freebasic)
@@ -21,10 +21,10 @@ Dim a(100)
ReDim a(200)
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - When used inside comments it must be the first token
+ - Lorsqu'il est utilisé dans les commentaires il doit être le premier symbole
{{fbdoc item="see"}}
- ##[[KeyPgMetaStatic $Static]]##
diff --git a/fbdocs/manual/cache/KeyPgMetaInclude.wakka b/fbdocs/manual/cache/KeyPgMetaInclude.wakka
index 8f35bcc922..9c1fa3c7a8 100644
--- a/fbdocs/manual/cache/KeyPgMetaInclude.wakka
+++ b/fbdocs/manual/cache/KeyPgMetaInclude.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="$INCLUDE"}}----
-Metacommand statement to include contents of another source file
+Métacommande pour inclure le contenu d'un autre fichier source
{{fbdoc item="syntax"}}##
'$Include [once]: '//file//'
@@ -7,11 +7,11 @@ Metacommand statement to include contents of another source file
[[KeyPgRem rem]] $Include [once]: '//file//'
##
{{fbdoc item="desc"}}
- ##**$include**## inserts source code from another file at the point where the ##**$include**## metacommand appears. This has the effect of compiling the source code from the include file as though it were part of the source file that includes it. Once the compiler has reached the end of the include file, the original source file continues to be compiled.
+ ##**$Include**## insère le code source d'un autre fichier à l'endroit où la métacommande ##**$Include**## apparaît. Cela a pour effet de compiler le code source du fichier à inclure, comme s'il faisait partie du fichier source qui l'inclut. Une fois que le compilateur a atteint la fin du fichier d'inclusion, le fichier source d'origine continue à être compilé.
- The ##**once**## specifier tells the compiler to include the file only once even if it is included several times by the source code.
+ Le spécificateur ##**once**## indique au compilateur de n'inclure le fichier qu'une seule fois, même s'il est inclus à plusieurs reprises dans le code source.
- ##**'$Include:**## exists for compatibility with QuickBASIC. It is recommended to use ##[[KeyPgInclude #include]]## instead.
+ ##**'$Include:**## existe pour la compatibilité avec QuickBASIC. Il est recommandé d'utiliser ##[[KeyPgInclude #include]]## à la place.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/meta/header.bi"}}%%(freebasic)
@@ -36,10 +36,10 @@ Foo.Bar = 1
Foo.Barbeque = 2
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgInclude #include]]##
diff --git a/fbdocs/manual/cache/KeyPgMetaLang.wakka b/fbdocs/manual/cache/KeyPgMetaLang.wakka
index 8c44225510..94fcd101bb 100644
--- a/fbdocs/manual/cache/KeyPgMetaLang.wakka
+++ b/fbdocs/manual/cache/KeyPgMetaLang.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="$LANG"}}----
-Metacommand statement to set the compiler dialect.
+Métacommande pour définir le dialecte du compilateur.
{{fbdoc item="syntax"}}##
**'$lang:** "//lang//"
- //or//
+ //ou//
[[KeyPgRem rem]] **$lang:** "//lang//"
##
{{fbdoc item="param"}}
##"//lang//"##
- The dialect to set, enclosed in double quotes, and must be one of ##"fb"##, ##"fblite"##, ##"qb"##, or ##"deprecated"##.
+ Le dialecte à fixer, entre guillemets, doit être l'un de ceux-ci: ##"fb"##, ##"fblite"##, ##"qb"##, ou ##"deprecated"##.
{{fbdoc item="desc"}}
- If the //[[CompilerOptforcelang -forcelang]]// option was not given on the command line, ##**$lang**## can be used to set the dialect for the source module in which it appears. At most two passes will be made on the source module. On the first pass, if the specified dialect is anything other than the default dialect (chosen with //[[CompilerOptlang -lang]]//, or ##"fb"## by default), the compiler will reset the parser for another pass and restart compilation at the beginning of the source module. If this metacommand is encountered again on the second pass, and the specified dialect does not match the new current dialect, a warning is issued and compilation continues. If any errors were encountered on the first pass, the compiler will not attempt a second pass.
+ Si l'option //[[CompilerOptforcelang -forcelang]]// n'est pas donnée sur la ligne de commande, ##**$Lang**## peut être utilisé pour fixer le dialecte du module source dans lequel il apparaît. Tout au plus deux passes seront effectuées sur le module source. Au premier passage, si le dialecte spécifié est est différent du dialecte par défaut (choisi avec //[[CompilerOptlang -lang]]//, ou ##"fb"## par défaut), le compilateur réinitialisera l'analyseur pour un nouveau passage et redémarrera la compilation au début du module source. Si cette métacommande est rencontrée à nouveau lors du second passage, et que le dialecte spécifié ne correspond pas au nouveau dialecte courant, un avertissement est émis et la compilation continue. Si des erreurs ont été rencontrées lors du premier passage, le compilateur ne tentera pas une seconde passe.
- ##**$lang**## may not be used in any compound statement, scope, or subroutine. However, it may be nested in module level preprocessor statements or used in an include file.
+ ##**$Lang**## ne peut pas être utilisé dans toute instruction composée, portée ou sous-routine. Cependant, il peut être imbriqué dans le module niveau préprocesseur ou utilisé dans un fichier inclus.
- There is currently no restriction on where this directive may be placed in a source module. In future this may change, therefore best practice would be to use this directive before the first declaration, definition, or executable statement in the source.
+ Il n'existe actuellement aucune restriction sur l'endroit où cette directive peut être placée dans un module source. À l'avenir, cela pourrait changer, la meilleure pratique serait donc d'utiliser cette directive avant la première déclaration, définition ou déclaration exécutable dans la source.
- This directive overrides the //[[CompilerOptlang -lang]]// option if it was given on the command line. However, if the //[[CompilerOptforcelang -forcelang]]// option was given on the command line, this directive will have no effect. A warning is issued, the directive is ignored, and compilation will continue. This allows the user to explicitly override ##**$lang**## metacommands.
+ Cette directive remplace l'option //[[CompilerOptlang -lang]]//, si elle a été donnée sur la ligne de commande. Toutefois, si l'option //[[CompilerOptforcelang -forcelang]]// a été donnée sur la ligne de commande, cette directive n'aura aucun effet. Un avertissement est émis, la directive est ignorée et la compilation va se poursuivre. Cela permet à l'utilisateur de remplacer explicitement les métacommandes ##**$Lang**##.
- This metacommand was introduced in ""FreeBASIC"" version 0.20.0. Older versions of FB, and ""QuickBASIC"", will treat it as a comment and silently ignore it.
+ Cette métacommande a été introduite dans la version 0.20.0 de FreeBasic. Dans les anciennes versions de FB et QuickBASIC, elle sera traitée comme un commentaire et ignorée silencieusement .
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/meta/lang.bas"}}%%(freebasic)
@@ -27,8 +27,8 @@ Metacommand statement to set the compiler dialect.
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
- - QB handles ##'$lang:## as a normal comment
+ - Nouveau pour FreeBASIC
+ - QB considère ##'$lang:## comme un commentaire normal
{{fbdoc item="see"}}
- ##[[KeyPgPplang #lang]]##
diff --git a/fbdocs/manual/cache/KeyPgMetaStatic.wakka b/fbdocs/manual/cache/KeyPgMetaStatic.wakka
index 4ab1b763b6..7b5570444a 100644
--- a/fbdocs/manual/cache/KeyPgMetaStatic.wakka
+++ b/fbdocs/manual/cache/KeyPgMetaStatic.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="$STATIC"}}----
-Metacommand to change the way arrays are allocated
+Métacommande pour changer la façon dont les tableaux sont alloués
{{fbdoc item="syntax"}}##
**'$Static**
- //or//
+ //ou//
[[KeyPgRem rem]] **$Static**
##
{{fbdoc item="desc"}}
- ##**'$Static**## is a metacommand that overrides the behavior of ##[[KeyPgMetaDynamic $Dynamic]]##, that is, arrays declared with constant subscript ranges are fixed-length. This remains in effect for the rest of the module in which ##**'$Static**## is used, and can be overridden with ##[[KeyPgMetaDynamic $Dynamic]]##.
+ ##**'$Static**## est une métacommande qui annule le comportement de ##[[KeyPgMetaDynamic $Dynamic]]##, c'est à dire que les tableaux déclarés avec une gamme d'indices constante sont de longueur fixe. Ceci demeure en vigueur pour le reste du module dans lequel ##**'$Static**## est utilisé, et peut être modifié avec ##[[KeyPgMetaDynamic $Dynamic]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/meta/static.bas"}}%%(freebasic)
@@ -22,10 +22,10 @@ Dim b(100) '<= len(//str//)## then all of the remaining characters are returned.
+ Dans la première forme de ##**Mid**##, tous les autres caractères sont retournés. Dans la seconde forme, si ##//n// < 0## ou ##//n// >= len(//str//)## alors tous les autres caractères sont retournés.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mid-func.bas"}}%%(freebasic)
@@ -29,31 +29,31 @@ PRINT MID("abcdefg", 3, 2)
PRINT MID("abcdefg", 3)
PRINT MID("abcdefg", 2, 1)
%%
- will produce the output:
+ produira la sortie:
%%cd
cdefg
b
-%%
-A Unicode example:
-~&Wiki: code rendered this way to allow display of the Unicode characters.
+%%Un exemple Unicode:
+Wiki: Code rendu de cette façon pour permettre l'affichage des caractères Unicode.
+
- <
result Then Print "error: unable to create folder " & pathname & " in the current path."
%%
{{fbdoc item="target"}}
- - Linux requires the //filename// case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes / . Windows uses backward slashes \ but it allows for forward slashes . DOS uses backward \ slashes.
+ - Linux nécessite que la casse de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques /. Windows utilise des barres obliques vers l'arrière \ mais il admet des barres obliques . DOS utilise des barres obliques en arrière \.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgShell Shell]]##
diff --git a/fbdocs/manual/cache/KeyPgMki.wakka b/fbdocs/manual/cache/KeyPgMki.wakka
index 93525ed39d..96590349e0 100644
--- a/fbdocs/manual/cache/KeyPgMki.wakka
+++ b/fbdocs/manual/cache/KeyPgMki.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MKI"}}----
-Does a binary copy from a ##[[KeyPgInteger integer]]## variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes
+Copie binaire d'une variable ##[[KeyPgInteger Integer (entière)]]## en une ##[[KeyPgString String (chaîne)]]##, réglage de sa longueur à 4 octets
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mki** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,15 +9,15 @@ Does a binary copy from a ##[[KeyPgInteger integer]]## variable to a ##[[KeyPgSt
##
{{fbdoc item="param"}}
##//number//##
- A ##[[KeyPgInteger integer]]## variable to binary copy to a ##[[KeyPgString string]]##.
+ Une variable ##[[KeyPgInteger Integer (entière)]]## dont on fait une copie binaire vers une ##[[KeyPgString String (chaîne)]]##.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString string]]## with a binary copy of the ##[[KeyPgInteger integer]]##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String (chaîne)]]## copie binaire d'un nombre ##[[KeyPgInteger Integer (entier)]]##.
{{fbdoc item="desc"}}
- Does a binary copy from an ##[[KeyPgInteger Integer]]## variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes. The resulting string can be read back to an ##[[KeyPgInteger Integer]]## by ##[[KeyPgCvi Cvi]]##
+ Exécute une copie binaire d'une variable ##[[KeyPgInteger Integer (entière)]]## vers une ##[[KeyPgString String (chaîne)]]## dont la longueur est de 4 octets. La chaîne résultat peut être lue à nouveau comme un ##[[KeyPgInteger Integer (entier)]]## par ##[[KeyPgCvi CVI]]##
- This function is useful to write numeric values to buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour écrire une valeur numérique dans un tampon sans utiliser de définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mki.bas"}}%%(freebasic)
@@ -29,9 +29,9 @@ sleep
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, ##**Mki**## returns a 2-byte-string, since a QB integer is only 16 bits.
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, ##**MKI**## retourne une chaîne de 2 octets, car un entier QB n'a que 16 bits.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgCvi Cvi]]##
diff --git a/fbdocs/manual/cache/KeyPgMkl.wakka b/fbdocs/manual/cache/KeyPgMkl.wakka
index 012f646bb4..859d60e0a0 100644
--- a/fbdocs/manual/cache/KeyPgMkl.wakka
+++ b/fbdocs/manual/cache/KeyPgMkl.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MKL"}}----
-Does a binary copy from a ##[[KeyPgInteger long]]## variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes
+Copie binaire d'une variable ##[[KeyPgInteger Long]]## en une ##[[KeyPgString String (chaîne)]]##, réglage de sa longueur à 4 octets
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mkl** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,15 +9,15 @@ Does a binary copy from a ##[[KeyPgInteger long]]## variable to a ##[[KeyPgStrin
##
{{fbdoc item="param"}}
##//number//##
- A ##[[KeyPgInteger integer]]## variable to binary copy to a ##[[KeyPgString string]]##.
+ Une variable ##[[KeyPgInteger Integer (entière)]]## dont on fait une copie binaire vers une ##[[KeyPgString String (chaîne)]]##.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString string]]## with a binary copy of the ##[[KeyPgInteger long]]##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String (chaîne)]]## copie binaire d'un nombre entier ##[[KeyPgInteger Long]]##.
{{fbdoc item="desc"}}
- Does a binary copy from a long variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes. The resulting string can be read back to a ##[[KeyPgLong Long]]## by ##[[KeyPgCvl Cvl]]##.
+ Exécute une copie binaire d'une variable entière long(ue) vers une ##[[KeyPgString String (chaîne)]]## dont la longueur est de 4 octets. La chaîne résultat peut être lue à nouveau comme un ##[[KeyPgLong Long]]## par ##[[KeyPgCvl CVL]]##.
- This function is useful to write numeric values to buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour écrire une valeur numérique dans un tampon sans utiliser de définition de TYPE.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mkl.bas"}}%%(freebasic)
@@ -29,11 +29,11 @@ sleep
%%
{{fbdoc item="lang"}}
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgMkd Mkd]]##
diff --git a/fbdocs/manual/cache/KeyPgMklongint.wakka b/fbdocs/manual/cache/KeyPgMklongint.wakka
index 698d796e41..15aa57d8a7 100644
--- a/fbdocs/manual/cache/KeyPgMklongint.wakka
+++ b/fbdocs/manual/cache/KeyPgMklongint.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MKLONGINT"}}----
-Does a binary copy from a ##[[KeyPgLongint longint]]## variable to a ##[[KeyPgString string]]##, setting its length to 8 bytes
+Copie binaire d'une variable ##[[KeyPgDouble LongInt]]## en une ##[[KeyPgString String (chaîne)]]##, réglage de sa longueur à 8 octets
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mklongint** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgLongint longint]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,15 +9,15 @@ Does a binary copy from a ##[[KeyPgLongint longint]]## variable to a ##[[KeyPgSt
##
{{fbdoc item="param"}}
##//number//##
- A ##[[KeyPgLongint longint]]## variable to binary copy to a ##[[KeyPgString string]]##.
+ Une variable ##[[KeyPgDouble LongInt]]## dont on fait une copie binaire vers une ##[[KeyPgString String (chaîne)]]##.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString string]]## with a binary copy of the ##[[KeyPgLongint longint]]##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String (chaîne)]]## copie binaire d'un nombre ##[[KeyPgDouble LongInt]]##.
{{fbdoc item="desc"}}
- Does a binary copy from a ##[[KeyPgLongint Longint]]## variable to a string, setting its length to 8 bytes. The resulting string can be read back to a longint by ##[[KeyPgCvlongint Cvlonging]]##
+ Exécute une copie binaire d'une variable ##[[KeyPgLongint LongInt]]## vers une chaîne dont la longueur est de 8 octets. La chaîne résultat peut être lue à nouveau comme un ##[[KeyPgLongint LongInt]]## par ##[[KeyPgCvlongint Cvlonging]]##
- This function is useful to write numeric values to buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour écrire une valeur numérique dans un tampon sans utiliser de définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mklongint.bas"}}%%(freebasic)
@@ -30,10 +30,10 @@ sleep
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Mklongint""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé par l'alias ##**__Mklongint**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgCvlongint Cvlongint]]##
diff --git a/fbdocs/manual/cache/KeyPgMks.wakka b/fbdocs/manual/cache/KeyPgMks.wakka
index 41f6e198d8..93b94700a6 100644
--- a/fbdocs/manual/cache/KeyPgMks.wakka
+++ b/fbdocs/manual/cache/KeyPgMks.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MKS"}}----
-Does a binary copy from a ##[[KeyPgSingle single]]## variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes
+Copie binaire d'une variable ##[[KeyPgSingle Single]]## en une ##[[KeyPgString String (chaîne)]]##, réglage de sa longueur à 4 octets
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mks** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgSingle single]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,15 +9,15 @@ Does a binary copy from a ##[[KeyPgSingle single]]## variable to a ##[[KeyPgStri
##
{{fbdoc item="param"}}
##//number//##
- A ##[[KeyPgSingle single]]## variable to binary copy to a ##[[KeyPgString string]]##.
+ Une variable ##[[KeyPgDouble Single]]## dont on fait une copie binaire vers une ##[[KeyPgString String (chaîne)]]##.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString string]]## with a binary copy of the ##[[KeyPgSingle single]]##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String (chaîne)]]## copie binaire d'un nombre ##[[KeyPgDouble Single]]##.
{{fbdoc item="desc"}}
- Does a binary copy from a ##[[KeyPgSingle Single]]## variable to a ##[[KeyPgString string]]##, setting its length to 4 bytes. The resulting string can be read back to a single by ##[[KeyPgCvs Cvs]]##.
+ Exécute une copie binaire d'une variable ##[[KeyPgSingle Single]]## vers une ##[[KeyPgString String (chaîne)]]## dont la longueur est de 4 octets. La chaîne résultat peut être lue à nouveau comme un ##[[KeyPgSingle Single]]## par ##[[KeyPgCvs CVS]]##
- This function is useful to write numeric values to buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour écrire une valeur numérique dans un tampon sans utiliser de définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mks.bas"}}%%(freebasic)
@@ -28,11 +28,11 @@ print n, cvs(e)
%%
{{fbdoc item="lang"}}
- - The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type de chaîne "$" est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type de chaîne "$" est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- -None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgMki Mki]]##
diff --git a/fbdocs/manual/cache/KeyPgMkshort.wakka b/fbdocs/manual/cache/KeyPgMkshort.wakka
index 9806959124..0d25a02720 100644
--- a/fbdocs/manual/cache/KeyPgMkshort.wakka
+++ b/fbdocs/manual/cache/KeyPgMkshort.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MKSHORT"}}----
-Does a binary copy from a ##[[KeyPgShort short]]## variable to a ##[[KeyPgString string]]##, setting its length to 2 bytes
+Copie binaire d'une variable ##[[KeyPgSingle Short]]## en une ##[[KeyPgString String (chaîne)]]##, réglage de sa longueur à 2 octets
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mkshort** ( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgShort short]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -9,15 +9,15 @@ Does a binary copy from a ##[[KeyPgShort short]]## variable to a ##[[KeyPgString
##
{{fbdoc item="param"}}
##//number//##
- A ##[[KeyPgShort short]]## variable to binary copy to a ##[[KeyPgString string]]##.
+ Une variable ##[[KeyPgDouble Short]]## dont on fait une copie binaire vers une ##[[KeyPgString String (chaîne)]]##.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgString string]]## with a binary copy of the ##[[KeyPgShort short]]##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une ##[[KeyPgString String (chaîne)]]## copie binaire d'un nombre ##[[KeyPgDouble Short]]##.
{{fbdoc item="desc"}}
- Does a binary copy from a SHORT variable to a string, setting its length to 2 bytes. The resulting string can be read back to a ##[[KeyPgShort short]]## by ##[[KeyPgCvshort Cvshort]]##
+ Exécute une copie binaire d'une variable ##[[KeyPgSingle Short]]## vers une ##[[KeyPgString String (chaîne)]]## dont la longueur est de 2 octets. La chaîne résultat peut être lue à nouveau comme un ##[[KeyPgSingle Short]]## par ##[[KeyPgCvs CVShort]]##
- This function is useful to write numeric values to buffers without using a ##[[KeyPgType Type]]## definition.
+ Cette fonction est utile pour écrire une valeur numérique dans un tampon sans utiliser de définition de ##[[KeyPgType Type]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/mkshort.bas"}}%%(freebasic)
@@ -30,10 +30,10 @@ sleep
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Mkshort""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé par l'alias ##**__Mkshort**##.
{{fbdoc item="diff"}}
- - In QBasic this function is called ##**Mki**##.
+ - Dans QBasic cette fonction est appelée ##**MKI**##.
{{fbdoc item="see"}}
- ##[[KeyPgCvshort Cvshort]]##
diff --git a/fbdocs/manual/cache/KeyPgModuleConstructor.wakka b/fbdocs/manual/cache/KeyPgModuleConstructor.wakka
index d58faba72d..3f1904551c 100644
--- a/fbdocs/manual/cache/KeyPgModuleConstructor.wakka
+++ b/fbdocs/manual/cache/KeyPgModuleConstructor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="CONSTRUCTOR (Module)"}}----
-Specifies execution of a procedure before module-level code
+Spécifie l'exécution d'une procédure avant le code niveau module
{{fbdoc item="syntax"}}##
[[[KeyPgPublic Public]] | [[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //procedure_name// [[[KeyPgAlias Alias]] "//external_identifier//"] [()] **Constructor** [//priority//] [[[KeyPgStatic Static]]]
@@ -7,17 +7,17 @@ Specifies execution of a procedure before module-level code
[[KeyPgEndblock End]] [[KeyPgSub Sub]]
##
{{fbdoc item="desc"}}
- The ##**Constructor**## keyword is used in ##[[KeyPgSub Sub]]## definitions to force execution of the procedure prior to that of module-level code. Procedures defined as constructors may be used the same way as ordinary procedures, that is, they may be called from within module-level code, as well as other procedures.
+ Le mot-clé ##**Constructor**## est utilisé dans les définitions de ##[[KeyPgSub Sub]]## pour forcer l'exécution de la procédure avant celle du code au niveau module. Les procédures définies comme des constructeurs peuvent être utilisés de la même manière que les procédures ordinaires, c'est à dire, qu'elles peuvent être appelées à partir du code au niveau du module, ainsi que d'autres procédures.
- The procedure must have an empty parameter list. A compile-time error will be generated if the ##**Constructor**## keyword is used in a Sub definition having one or more parameters. In a set of overloaded procedures, only one (1) constructor may be defined because of the ambiguity of having multiple Subs which take no arguments.
+ La procédure doit avoir une liste de paramètres vide. Une erreur de compilation sera générée si le mot-clef ##**Constructor**## est utilisé dans une définition de ##[[KeyPgSub Sub]]## ayant un ou plusieurs paramètres. Dans un ensemble de procédures surchargées, un seul (1) constructeur peut être défini en raison de l'ambiguïté d'avoir plusieurs ##[[KeyPgSub Sub]]## qui n'ont aucun argument.
- In a single module, constructors normally execute in the order in which they are defined.
+ Dans un seul module, les constructeurs sont normalement exécutés dans l'ordre dans lequel ils ont été définis.
- The ##//priority//## attribute, an integer between 101 and 65535, can be used to force constructors to be executed in a certain order. The value of ##//priority//## has no specific meaning, only the relationship of the number with other constructor priorities. 101 is the highest priority and is executed first. All constructors having a ##//priority//## attribute are executed before constructors with no attribute. The priority value of 65535 is the same as not assigning a priority value.
+ L'attribut ##//priority//##, un entier compris entre 101 et 65535, peut être utilisé pour forcer les constructeurs à être exécutés dans un certain ordre. La valeur de ##//priority//## n'a pas de signification particulière, que la relation entre le numéro et les priorités des autres constructeurs. 101 est la plus haute priorité et est exécuté en premier. Tous les constructeurs ayant un attribut de ##//priority//## sont exécutés avant les constructeurs n'ayant pas cet attribut. La valeur de priorité de 65535 est équivalente à "ne pas attribuer une valeur de priorité".
- A module may define multiple constructor procedures, and multiple modules may define additional constructors provided no two ##[[KeyPgPublic Public]]## constructors share the same //procedure_name//.
+ Un module peut définir des procédures constructeur multiples, et plusieurs modules peuvent définir des constructeurs supplémentaires à condition que deux constructeurs ##[[KeyPgPublic Public]]## ne partagent pas la même //procedure_name//.
- When linking with modules that also define constructors, the order of execution is not guaranteed at link-time unless the ##//priority//## attribute is used. Therefore, special care should be taken when using constructors that may call on a secondary module also defining a constructor. In such a case it is advisable to use a single constructor that explicitly calls initialization procedures in those modules.
+ Lors de l'édition de liens avec des modules qui définissent également les constructeurs, l'ordre d'exécution n'est pas garanti au moment de la liaison sauf si l'attribut ##//priority//## est utilisé. Par conséquent, une attention particulière doit être prise lors de l'utilisation de constructeurs qui font appel à un module secondaire qui également définit un constructeur. Dans un tel cas, il est conseillé d'utiliser un seul constructeur qui appelle explicitement les procédures d'initialisation dans ces modules.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/procs/mod-ctor.bas"}}%%(freebasic)
@@ -47,7 +47,7 @@ end sub
end 0
'' ----------------------
%%
- **Output:**
+ **Affichage:**
%%
Constructor1() called
Constructor2() called
@@ -57,10 +57,10 @@ Destructor2() called
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[KeyPgConstructor Constructor (Class)]]
+ - [[KeyPgConstructor Constructor (Classe)]]
- [[KeyPgModuleDestructor Destructor (Module)]]
- [[KeyPgSub Sub]]
diff --git a/fbdocs/manual/cache/KeyPgModuleDestructor.wakka b/fbdocs/manual/cache/KeyPgModuleDestructor.wakka
index 937f67f429..5641bcd430 100644
--- a/fbdocs/manual/cache/KeyPgModuleDestructor.wakka
+++ b/fbdocs/manual/cache/KeyPgModuleDestructor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="DESTRUCTOR (Module)"}}----
-Specifies execution of a procedure at program termination
+Spécifie l'exécution d'une procédure à la fin du programme
{{fbdoc item="syntax"}}##
[[[KeyPgPublic Public]] | [[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //identifier// [[[KeyPgAlias Alias]] "//external_identifier//"] [()] **Destructor** [//priority//] [[[KeyPgStatic Static]]]
@@ -7,22 +7,22 @@ Specifies execution of a procedure at program termination
[[KeyPgEnd End]] [[KeyPgSub Sub]]
##
{{fbdoc item="desc"}}
- Defines a procedure to be automatically called from a compiled program's end-code. End-code is generated by the compiler and is executed when the program terminates normally. Procedures defined as destructors may be used the same way as ordinary procedures, that is, they may be called from within module-level code, as well as other procedures.
+ Définit une procédure qui sera appelée automatiquement en "fin-du-code" d'un programme compilé. "Fin-du-code" est générée par le compilateur et est exécutée quand le programme se termine normalement. Les procédures définies comme des destructeurs peuvent être utilisées de la même manière que les procédures ordinaires, c'est à dire, qu'elles peuvent être appelées à partir du code au niveau du module, comme d'autres procédures.
- The procedure must have an empty parameter list. A compile-time error will be generated if the ##**Destructor**## keyword is used in a Sub definition having one or more parameters. In a set of overloaded procedures, only one (1) destructor may be defined because of the ambiguity of having multiple Subs which take no arguments.
+ La procédure doit avoir une liste de paramètres vide. Une erreur de compilation sera générée si le mot-clef ##**Destructor**## est utilisé dans une définition de ##[[KeyPgSub Sub]]## ayant un ou plusieurs paramètres. Dans un ensemble de procédures surchargées, un seul (1) constructeur peut être défini en raison de l'ambiguïté d'avoir plusieurs ##[[KeyPgSub Sub]]## qui n'ont aucun argument.
- In a single module, destructors normally execute in the order in which they are defined.
+ Dans un seul module, les destructeurs sont normalement exécutés dans l'ordre dans lequel ils ont été définis.
- The ##//priority//## attribute, an integer between 101 and 65535, can be used to force destructors to be executed in a certain order. The value of ##//priority//## has no specific meaning, only the relationship of the number with other destructor priorities. 101 is the lowest priority and is executed last. All destructors having a ##//priority//## attribute are executed after destructors with no attribute. The priority value of 65535 is the same as not assigning a priority value.
+ L'attribut ##//priority//##, un entier compris entre 101 et 65535, peut être utilisé pour forcer les destructeurs à être exécutés dans un certain ordre. La valeur de ##//priority//## n'a pas de signification particulière, que la relation entre le numéro et les priorités des autres constructeurs. 101 est la plus basse priorité et est exécuté en dernier. Tous les destructeurs ayant un attribut de ##//priority//## sont exécutés après les destructeurs n'ayant pas cet attribut. La valeur de priorité de 65535 est équivalente à ne pas attribuer une valeur de priorité.
- A module may define multiple destructor procedures. Destructor procedures may also appear in more than one module. All procedures defined with the syntax shown above will be added to the list of procedures to be called during the program's termination.
+ Un module peut définir des procédures destructeur multiples. Des procédures destructeur peuvent aussi apparaître dans plusieurs modules. Toutes les procédures définies avec la syntaxe ci-dessus seront ajoutées à la liste des procédures à appeler lorsque le programme se terminera.
- The order in which destructors defined in multiple modules are executed is known only at link time. Therefore, special care should be taken when using destructors that may call on a secondary module also defining a destructors. In such a case it is advisable to use a single destructor that explicit calls termination procedures in multiple modules to ensure a graceful termination of the application.
+ L'ordre dans lequel les destructeurs définis dans plusieurs modules sont exécutés est connu uniquement au moment de l'édition de lien. Par conséquent, des précautions particulières doivent être prises lors de l'utilisation des destructeurs qui peuvent faire appel à un module secondaire qui lui aussi définit des destructeurs. Dans un tel cas, il est conseillé d'utiliser un destructeur unique qui explicite les procédures d'appel de fin de programme dans plusieurs modules pour assurer une fin de programme correcte.
- Destructors will be called if the program terminates normally or if error-checking is enabled and the program terminates abnormally.
+ Les destructeurs seront appelés si le programme se termine normalement ou si une vérification des erreurs est activée et que le programme se termine anormalement.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/procs/mod-dtor.bas"}}%%(freebasic)
+ %%(freebasic)
sub pauseonexit destructor
'' If the program reaches the end, or aborts with an error,
@@ -42,10 +42,10 @@ print array(i, j)
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgDestructor Destructor (Class)]]##
+ - ##[[KeyPgDestructor Destructor (Classe)]]##
- ##[[KeyPgModuleConstructor Constructor (Module)]]##
- ##[[KeyPgSub Sub]]##
diff --git a/fbdocs/manual/cache/KeyPgMonth.wakka b/fbdocs/manual/cache/KeyPgMonth.wakka
index a5d947548a..59db8e89d5 100644
--- a/fbdocs/manual/cache/KeyPgMonth.wakka
+++ b/fbdocs/manual/cache/KeyPgMonth.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MONTH"}}----
-Gets the month of the year from a [[ProPgDates Date Serial]]
+Récupère le mois de l'année à partir d'une [[ProPgDates Date Serial]]
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Month** ( [[KeyPgByval byval]] //date_serial// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -10,16 +10,16 @@ Gets the month of the year from a [[ProPgDates Date Serial]]
##
{{fbdoc item="param"}}
##//date_serial//##
- the date
+ la date
-{{fbdoc item="ret"}}
- Returns the month number from a variable containing a date in [[ProPgDates Date Serial]] format.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le numéro du mois à partir d'une variable contenant une date sous forme de [[ProPgDates Date Serial]].
- The month values are in the range 1-12 being 1 for January and 12 for December.
+ Les valeurs du mois sont comprises entre 1 et 12; 1 pour Janvier et 12 pour Décembre.
{{fbdoc item="desc"}}
- The compiler will not recognize this function unless ##vbcompat.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/month.bas"}}%%(freebasic)
@@ -31,7 +31,7 @@ Print Format(a, "yyyy/mm/dd hh:mm:ss "); Month(a)
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgMonthname.wakka b/fbdocs/manual/cache/KeyPgMonthname.wakka
index 08ecc4e315..394efb0830 100644
--- a/fbdocs/manual/cache/KeyPgMonthname.wakka
+++ b/fbdocs/manual/cache/KeyPgMonthname.wakka
@@ -1,27 +1,27 @@
{{fbdoc item="title" value="MONTHNAME"}}----
-Gets the name of a month from it's integral representation
+Récupère le nom d'un mois à partir de sa représentation entière
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""MonthName""** ( [[KeyPgByval byval]] //month// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //abbreviate// [[KeyPgAs as]] [[KeyPgInteger integer]] = 0 ) [[KeyPgAs as]] [[KeyPgString string]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **MonthName** ( [[KeyPgByval ByVal]] //month// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //abbreviate// [[KeyPgAs As]] [[KeyPgInteger Integer]] = 0 ) [[KeyPgAs As]] [[KeyPgString String]]
##
{{fbdoc item="usage"}}##
#include "vbcompat.bi"
- //result// = **""MonthName""**( //month_number// [, //abreviate// ] )
+ //result// = **MonthName**( //month_number// [, //abreviate// ] )
##
{{fbdoc item="param"}}
##//month//##
- the number of the month of the year - 1:January through 12:December
+ le numéro du mois de l'année --> 1: Janvier jusqu'à 12: Décembre
##//abbreviate//##
- flag to indicate that name should be abbreviated
+ drapeau indiquant que le nom doit être abrégé
-{{fbdoc item="ret"}}
- Returns the local operating system language month name from ##//month//## value 1 to 12.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le nom du mois en fonction du langage du système d'exploitation local à partir de ##//month//## dont la valeur va de 1 à 12.
{{fbdoc item="desc"}}
- If ##//abbreviate//## is true, the month name abbreviation is returned. If omitted or false, the whole name is returned.
+ Si ##//abbreviate//## est vrai, l'abréviation du nom du mois est retournée. Si omis ou faux, le nom complet est retourné.
- The compiler will not recognize this function unless ##vbcompat.bi## or ##datetime.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## ou ##datetime.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/monthname.bas"}}%%(freebasic)
@@ -33,7 +33,7 @@ Print Format(ds, "yyyy/mm/dd hh:mm:ss "); MonthName(Month(ds))
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in Visual Basic.
+ - N'existe pas dans QB. Cette fonction est apparue dans Visual Basic.
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgMultikey.wakka b/fbdocs/manual/cache/KeyPgMultikey.wakka
index 575a81d3b5..4abded4b36 100644
--- a/fbdocs/manual/cache/KeyPgMultikey.wakka
+++ b/fbdocs/manual/cache/KeyPgMultikey.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MULTIKEY"}}----
-Detects the status of keys by keyboard scancode.
+Détecte l'état des touches par scancode du clavier.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Multikey** ( [[KeyPgByval byval]] //scancode// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,18 +9,18 @@ Detects the status of keys by keyboard scancode.
##
{{fbdoc item="param"}}
##//scancode//##
- The [[GfxScancodes scan code]] of the key to check.
+ Le [[GfxScancodes scan code]] de la touche à détecter.
-{{fbdoc item="ret"}}
- Returns ##-1## if the key for the specified [[GfxScancodes scan code]] is pressed, otherwise returns ##0##.
+{{fbdoc item="section" value="Valeur renvoyée
+ Retourne ##-1## si la touche correspondant au [[GfxScancodes scan code]] est appuyée, autrement retourne ##0##.
{{fbdoc item="desc"}}
- ##**Multikey**## is a function which will detect the status of any key, determined by scancode, at any time. It will return ##-1## if the key is pressed, otherwise it will return ##0##. The keyboard input buffer is not disabled while you use ##**Multikey**##; that is, pressed keys will be stored and subsequently returned by your next call to ##[[KeyPgInkey Inkey]]##. This means you have to empty ##[[KeyPgInkey Inkey]]## manually when you finish using ##**Multikey**##, using something like the following method:
+ ##**MultiKey**## est une fonction qui détecte l'état de n'importe quelle touche, déterminé par scancode, à n'importe quel moment. Retournera ##-1## si la touche est appuyée, autrement retournera ##0##. Le tampon d'entrée clavier n'est pas désactivé lorsque vous utilisez ##**MultiKey**##; les touches appuyées seront stockées et ensuite retournées par votre prochain appel à ##[[KeyPgInkey Inkey]]##. Ceci signifie que vous devez vider manuellement ##[[KeyPgInkey Inkey]]## quand vous avez fini d'utiliser ##**MultiKey**##, en utilisant quelque chose de semblable à la méthode ci-dessous:
{{fbdoc item="filename" value="examples/manual/check/KeyPgMultikey_1.bas"}}%%(freebasic)
-While Inkey <> "": Wend '' loop until the Inkey buffer is empty
+While Inkey <> "": Wend '' boucle tant que le tampon inkey est vide
%%
- Keeping ##[[KeyPgInkey Inkey]]## to work while you use ##**Multikey**## allows more flexibility and can be useful to detect ##[[KeyPgChr Chr]](255)+"k"## combo returned on window close button click, if a windowed graphics mode has been set via the ##[[KeyPgScreengraphics Screen]]## statement. For a list of accepted scancodes, see [[GfxScancodes DOS keyboard scancodes]]; these are guaranteed to be valid for all ""FreeBASIC"" supported platforms.
- ##**Multikey**## should always work in graphics mode, as long as the screen is [[KeyPgScreenunlock unlocked]]. Support in the console depends on the platform the program is run on though, and cannot be guaranteed.
+ Garder ##[[KeyPgInkey Inkey]]## au travail pendant l'utilisation de ##**MultiKey**## vous donne plus de flexibilité et peut être très utile pour détecter une combinaison ##[[KeyPgChr Chr]](255)+"k"## renvoyée par le clic sur le bouton de fermeture d'une fenêtre, si un mode graphique fenêtré a été validé par ##[[KeyPgScreengraphics Screen]]##. Pour une liste des scancodes acceptés, voir [[GfxScancodes Scancodes clavier DOS]]; ceci garantit la validité pour toutes les plates-formes supportées par FreeBASIC.
+ ##**MultiKey**## devrait toujours fonctionner en mode graphique, aussi longtemps que l'écran est [[KeyPgScreenunlock Unlock]]é. Le fonctionnement en console dépend de la plate-forme sur laquelle fonctionne le programme, et ne peut être garanti.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/input/multikey.bas"}}%%(freebasic)
@@ -37,23 +37,23 @@ Color 2, 15
x = 320: y = 240
Do
- ' Check arrow keys and update the (x, y) position accordingly
+ ' Surveille touches fleches et met a jour position (x, y)
If MultiKey(SC_LEFT ) And x > 0 Then x = x - 1
If MultiKey(SC_RIGHT) And x < 639 Then x = x + 1
If MultiKey(SC_UP ) And y > 0 Then y = y - 1
If MultiKey(SC_DOWN ) And y < 479 Then y = y + 1
- ' Lock the page while we work on it
+ ' Verouille page pendante travail sur elle
Screenlock
- ' Clear the screen and draw a circle at the position (x, y)
+ ' Efface ecran et trace cercle a la position (x, y)
Cls
Circle(x, y), 30, , , , ,F
ScreenUnlock
- ' Run loop until user presses Escape
+ ' Boucle jusqu'a Echappement appuye
Loop Until MultiKey(SC_ESCAPE)
-' Clear Inkey buffer
+' Vide tampon Inkey
While Inkey <> "": Wend
@@ -62,23 +62,23 @@ Print "Press CTRL and H to exit..."
Do
Sleep 25
- '' Stay in loop until user holds down CTRL and H at the same time
+ '' Boucle jusqu'a appui sur CTRL et H ensemble
If MultiKey(SC_CONTROL) And MultiKey(SC_H) Then Exit Do
Loop
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Multikey""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Multikey**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[GfxScancodes Keyboard scancodes]]
+ - [[GfxScancodes Scancodes clavier]]
- ##[[KeyPgGetmouse Getmouse]]##
- ##[[KeyPgGetjoystick Getjoystick]]##
- - ##[[KeyPgScreengraphics Screen (Graphics)]]##
+ - ##[[KeyPgScreengraphics Screen (Graphique)]]##
- ##[[KeyPgInkey Inkey]]##
{{fbdoc item="back" value="CatPgGfxInput|User Input Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgMutexCreate.wakka b/fbdocs/manual/cache/KeyPgMutexCreate.wakka
index 60c9601165..a2d7bcd3ce 100644
--- a/fbdocs/manual/cache/KeyPgMutexCreate.wakka
+++ b/fbdocs/manual/cache/KeyPgMutexCreate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MUTEXCREATE"}}----
-Creates a mutex used for synchronizing the execution of threads
+Crée un "mutex" utilisé pour synchroniser l'exécution des "threads"
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Mutexcreate** ( ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]]
@@ -7,103 +7,37 @@ Creates a mutex used for synchronizing the execution of threads
{{fbdoc item="usage"}}##
//result// = **Mutexcreate**
##
-{{fbdoc item="ret"}}
- The ##[[KeyPgAny any]] [[KeyPgPtr ptr]]## handle of the mutex created, or the null pointer (0) on failure.
+{{fbdoc item="section" value="Valeur retournée
+ Le ##[[KeyPgAny Any]] [[KeyPgPtr Ptr]]## "handle" du "mutex" créé, ou le pointeur nul (0) en cas d'échec.
{{fbdoc item="desc"}}
- Mutexes, short for "Mutually Exclusive", are a way of synchronizing shared data within threads. If there is a global variable used by multiple threads (or a local variable used by a single thread, called multiple times), it should be "locked" during its use with a mutex. This halts all threads using ##[[KeyPgMutexLock Mutexlock]]## with that mutex, until it is unlocked with ##[[KeyPgMutexUnlock Mutexunlock]]##.
+ Les "Mutex", abréviation de "Mutually Exclusive" (Mutuellement exclusive), sont un moyen de synchroniser les données partagées dans les "threads". S'il y a une variable globale utilisée par plusieurs "threads" (ou une variable locale utilisée par un "thread" unique, appelée plusieurs fois), elle devrait être "verrouillée" lors de son utilisation avec un "mutex". Ceci arrête tous les "threads" en utilisant ##[[KeyPgMutexLock MutexLock]]## avec ce "mutex", jusqu'à ce qu'il soit déverrouillé avec ##[[KeyPgMutexUnlock MutexUnlock]]##.
- ##Mutexcreate## creates a mutex, returning a handle which is to be referred to when locking, unlocking, or destroying the mutex. Mutexes created with ##Mutexcreate## should be destroyed when no longer needed or before the end of the program with ##[[KeyPgMutexDestroy Mutexdestroy]]##.
+ ##Mutexcreate## crée un "mutex", et retourne un "handle" qui sert de référence lors du verrouillage, du déverrouillage ou de la destruction du "mutex". Les "mutex" créés avec ##Mutexcreate## doivent être détruits lorsqu'ils ne sont plus nécessaires ou avant la fin du programme avec ##[[KeyPgMutexDestroy MutexDestroy]]##.
- A mutex is a lock that guarantees three things:
- 1. Atomicity - Locking a mutex is an atomic operation, meaning that the operating system (or threads library) assures you that if you locked a mutex, no other thread succeeded in locking this mutex at the same time.
- 2. Singularity - If a thread managed to lock a mutex, it is assured that no other thread will be able to lock the thread until the original thread releases the lock.
- 3. Non-Busy Wait - If a thread attempts to lock a thread that was locked by a second thread, the first thread will be suspended (and will not consume any CPU resources) until the lock is freed by the second thread. At this time, the first thread will wake up and continue execution, having the mutex locked by it.
+ Un "mutex" est un verrou qui garantit trois choses:
+ 1. Atomicité - Le verrouillage d'un "mutex" est une opération atomique, ce qui signifie que le système d'exploitation (ou la bibliothèque "threads") vous assure que si vous avez verrouillé un "mutex", aucun autre "thread" réussira à verrouiller ce "mutex" en même temps.
+ 2. Singularité - Si un "thread" a réussi à verrouiller un "mutex", il est assuré qu'aucun autre "thread" ne sera en mesure de bloquer le "thread" jusqu'à ce que le "thread" d'origine ne libère le verrou.
+ 3. Attente non-occupée - Si un "thread" tente de verrouiller un "thread" qui a été verrouillé par un second "thread", le premier "thread" sera suspendu (et ne consommera aucune ressource CPU) jusqu'à ce que le verrou soit libéré par le second "thread". A ce moment-là, le premier "thread" va se réveiller et poursuivre l'exécution, après avoir lui-même verrouillé le "mutex".
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/threads/mutexcreate.bas"}}%%(freebasic)
-'' Threading syncronyzation using Mutexes
-'' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-'' the threads will not be in sync and some of the data may be printed
-'' out of place.
-
-const MAX_THREADS = 10
-
-DECLARE SUB thread( byval id_ptr as any ptr )
-DECLARE SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
-
-DIM SHARED threadsync AS any ptr
-
-dim i as integer
-
-DIM handleTb(0 to MAX_THREADS-1) AS any ptr
-
-'' Create a mutex to syncronize the threads
-threadsync = MUTEXCREATE
-
-'' Create threads
-for i = 0 to MAX_THREADS-1
- handleTb(i) = THREADCREATE(@thread, @i)
- IF handleTb(i) = 0 THEN
- PRINT "Error creating thread:"; i
- exit for
- END IF
-next
-
-'' Wait until all threads are finished
-for i = 0 to MAX_THREADS-1
- if( handleTb(i) <> 0 ) then
- THREADWAIT( handleTb(i) )
- end if
-next
+ %%(freebasic)
-teletype "Testing.................", 1, 1
-teletype "Testing again...........", 10, 1
-
-'' Discard the mutex when we are through using teletype
-MUTEXDESTROY threadsync
-
-SUB thread( byval id_ptr as any ptr )
- dim id as integer
- id = *cast( integer ptr, id_ptr )
- teletype "Thread (" & id & ").........", 1, 1+id
-END SUB
-
-'' Teletype unfurls some text across the screen at a given location
-SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
- DIM i AS INTEGER
-
- FOR i = 0 TO LEN(text)-1
- '' MutexLock prevents the two simultaneously running
- '' threads from sharing "x", "y", and "a"
- MUTEXLOCK threadsync
-
- LOCATE y, x+i
- PRINT CHR(text[i])
-
- '' MutexUnlock releases these variables for other use
- MUTEXUNLOCK threadsync
-
- SLEEP 25
- NEXT
-END SUB
-%%
-
-{{fbdoc item="lang"}}
- - Threading is not allowed in the //[[CompilerOptlang -lang qb]]// dialect.
+'' Threading syncronyzation using Mutexes
+ '' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-{{fbdoc item="target"}}
- - The DOS version of FreeBASIC does not allow for threads, as the OS does not support them.
- - In Linux the threads are always started in the order they are created, this can't be assumed in Win32. It's an OS, not a FreeBASIC issue.
+'' the threads will not be in sync and some of the data may be printed
+ '' out of place.
+ Const MAX_THREADS = 10
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+Declare Sub thread( ByVal id_ptr As Any Ptr )
+ Declare Sub teletype (ByVal text As String, ByVal x As Integer, ByVal y As Integer)
-{{fbdoc item="see"}}
- - ##[[KeyPgMutexDestroy Mutexdestroy]]##
- - ##[[KeyPgMutexLock Mutexlock]]##
- - ##[[KeyPgMutexUnlock Mutexunlock]]##
- - ##[[KeyPgThreadCreate Threadcreate]]##
- - ##[[KeyPgThreadWait Threadwait]]##
+Dim Shared threadsync As Any Ptr
+ Dim i As Integer
+ Dim handleTb(0 To MAX_THREADS-1) As Any Ptr
+ '' Create a mutex to syncronize the threads
+ threadsync = MutexCreate
+ '' Create threads
-{{fbdoc item="back" value="CatPgThreading|Threading Support Functions"}}
\ No newline at end of file
+For i = 0 To MAX_THREADS-1
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgMutexDestroy.wakka b/fbdocs/manual/cache/KeyPgMutexDestroy.wakka
index d9a2606ba9..71d432bcc1 100644
--- a/fbdocs/manual/cache/KeyPgMutexDestroy.wakka
+++ b/fbdocs/manual/cache/KeyPgMutexDestroy.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MUTEXDESTROY"}}----
-Destroys a mutex
+Détruit un "mutex"
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Mutexdestroy** ( [[KeyPgByval byval]] //id// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
@@ -9,103 +9,31 @@ Destroys a mutex
##
{{fbdoc item="param"}}
##//id//##
- The ##[[KeyPgAny any]] [[KeyPgPtr ptr]]## handle of the mutex to be destroyed.
+ Le ##[[KeyPgAny Any]] [[KeyPgPtr Ptr]]## handle du "mutex" à détruire.
{{fbdoc item="desc"}}
- ##Mutexdestroy## discards a mutex created by ##[[KeyPgMutexCreate Mutexcreate]]##. This call should be executed after any threads using the mutex are no longer in use.
+ ##Mutexdestroy## détruit un "mutex" créé par ##[[KeyPgMutexCreate MutexCreate]]##. Cet appel doit être exécuté lorsque tous les "threads" utilisant le "mutex" ne sont plus en cours d'utilisation.
- See ##[[KeyPgMutexCreate Mutexcreate]]## for more general information on mutexes.
+ Voir ##[[KeyPgMutexCreate MutexCreate]]## pour plus d'information générale sur les "mutex".
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/threads/mutexdestroy.bas"}}%%(freebasic)
-'' Threading synchronization using Mutexes
-'' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-'' the threads will not be in sync and some of the data may be printed
-'' out of place.
-
-DECLARE SUB thread1( param as any ptr )
-DECLARE SUB thread2( param as any ptr )
-DECLARE SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
-
-DIM SHARED threadsync AS any ptr
-DIM SHARED thread1handle AS any ptr
-DIM SHARED thread2handle AS any ptr
-
-'' Create a mutex to syncronize the threads
-threadsync = MUTEXCREATE
-
-'' Call thread 1
-thread1handle = THREADCREATE(@thread1)
-IF thread1handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Call thread 2
-thread2handle = THREADCREATE(@thread2)
-IF thread2handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Wait until both threads are finished
-THREADWAIT(thread1handle)
-THREADWAIT(thread2handle)
-
-teletype "Testing.................", 1, 1
-teletype "Testing again...........", 10, 1
-
-'' Discard the mutex when we are through using teletype
-MUTEXDESTROY threadsync
+ %%(freebasic)
-SLEEP
-END
-
-'' Thread 1 calls a simple "teletype" routine
-SUB thread1( param as any ptr )
- teletype "This is a test...", 4, 1
-END SUB
-
-'' ...As does thread 2
-SUB thread2( param as any ptr )
- teletype "This is another test...", 7, 1
-END SUB
-
-'' Teletype unfurls some text across the screen at a given location
-SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
- DIM i AS INTEGER, a AS INTEGER
- DIM text_length AS INTEGER
-
- text_length = LEN(text)
- FOR a = 0 TO text_length
- '' MutexLock prevents the two simultaneously running
- '' threads from sharing "x", "y", and "a"
- MUTEXLOCK threadsync
-
- LOCATE x,(y+a)
- PRINT CHR(text[a])
-
- '' MutexUnlock releases these variables for other use
- MUTEXUNLOCK threadsync
-
- SLEEP 25
- NEXT a
-END SUB
-%%
-
-{{fbdoc item="lang"}}
- - Threading is not allowed in the //[[CompilerOptlang -lang qb]]// dialect.
+'' Threading synchronization using Mutexes
+ '' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-{{fbdoc item="target"}}
- - The DOS version of FreeBASIC does not allow for threads, as the OS does not support them.
- - In Linux the threads are always started in the order they are created, this can't be assumed in Win32. It's an OS, not a FreeBASIC issue.
+'' the threads will not be in sync and some of the data may be printed
+ '' out of place.
+ Declare Sub thread1( param As Any Ptr )
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+Declare Sub thread2( param As Any Ptr )
+ Declare Sub teletype (ByVal text As String, ByVal x As Integer, ByVal y As Integer)
-{{fbdoc item="see"}}
- - ##[[KeyPgMutexCreate Mutexcreate]]##
- - ##[[KeyPgMutexLock Mutexlock]]##
- - ##[[KeyPgMutexUnlock Mutexunlock]]##
- - ##[[KeyPgThreadCreate Threadcreate]]##
- - ##[[KeyPgThreadWait Threadwait]]##
+Dim Shared threadsync As Any Ptr
+ Dim Shared thread1handle As Any Ptr
+ Dim Shared thread2handle As Any Ptr
+ '' Create a mutex to syncronize the threads
+ threadsync = MutexCreate
+ '' Call thread 1
-{{fbdoc item="back" value="CatPgThreading|Threading Support Functions"}}
\ No newline at end of file
+thread1handle = ThreadCreate(@thread1)
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgMutexLock.wakka b/fbdocs/manual/cache/KeyPgMutexLock.wakka
index 04c99fa3ed..bf4cb1fa63 100644
--- a/fbdocs/manual/cache/KeyPgMutexLock.wakka
+++ b/fbdocs/manual/cache/KeyPgMutexLock.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MUTEXLOCK"}}----
-Acquires a mutex
+Acquiert un "mutex"
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Mutexlock** ( [[KeyPgByval byval]] //id// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
@@ -9,103 +9,31 @@ Acquires a mutex
##
{{fbdoc item="param"}}
##//id//##
- The ##[[KeyPgAny any]] [[KeyPgPtr ptr]]## handle of the mutex to be locked.
+ Le ##[[KeyPgAny Any]] [[KeyPgPtr Ptr]]## "handle" du "mutex" à verrouiller.
{{fbdoc item="desc"}}
- ##Mutexlock## halts any other threads using a mutex "handle", generated by ##[[KeyPgMutexCreate Mutexcreate]]##, until the handle is unlocked with ##[[KeyPgMutexUnlock Mutexunlock]]##.
+ ##Mutexlock## arrête tous les autres "threads" utilisant un "handle" de "mutex" généré par ##[[KeyPgMutexCreate MutexCreate]]##, jusqu'à ce que le "handle" soit déverrouillé avec ##[[KeyPgMutexUnlock MutexUnlock]]##.
- See ##[[KeyPgMutexCreate Mutexcreate]]## for more general information on mutexes.
+ Voir ##[[KeyPgMutexCreate MutexCreate]]## pour plus d'information générale sur les "mutex".
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/threads/mutexlock.bas"}}%%(freebasic)
-'' Threading synchronization using Mutexes
-'' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-'' the threads will not be in sync and some of the data may be printed
-'' out of place.
-
-DECLARE SUB thread1( param as any ptr )
-DECLARE SUB thread2( param as any ptr )
-DECLARE SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
-
-DIM SHARED threadsync AS any ptr
-DIM SHARED thread1handle AS any ptr
-DIM SHARED thread2handle AS any ptr
-
-'' Create a mutex to synchronize the threads
-threadsync = MUTEXCREATE
-
-'' Call thread 1
-thread1handle = THREADCREATE(@thread1)
-IF thread1handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Call thread 2
-thread2handle = THREADCREATE(@thread2)
-IF thread2handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Wait until both threads are finished
-THREADWAIT(thread1handle)
-THREADWAIT(thread2handle)
-
-teletype "Testing.................", 1, 1
-teletype "Testing again...........", 10, 1
-
-'' Discard the mutex when we are through using teletype
-MUTEXDESTROY threadsync
+ %%(freebasic)
-SLEEP
-END
-
-'' Thread 1 calls a simple "teletype" routine
-SUB thread1( param as any ptr )
- teletype "This is a test...", 4, 1
-END SUB
-
-'' ...As does thread 2
-SUB thread2( param as any ptr )
- teletype "This is another test...", 7, 1
-END SUB
-
-'' Teletype unfurls some text across the screen at a given location
-SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
- DIM i AS INTEGER, a as INTEGER
- DIM text_length AS INTEGER
-
- text_length = LEN(text)
- FOR a = 0 TO text_length
- '' MutexLock prevents the two simultaneously running
- '' threads from sharing "x", "y", and "a"
- MUTEXLOCK threadsync
-
- LOCATE x,(y+a)
- PRINT CHR(text[a])
-
- '' MutexUnlock releases these variables for other use
- MUTEXUNLOCK threadsync
-
- SLEEP 25
- NEXT a
-END SUB
-%%
-
-{{fbdoc item="lang"}}
- - Threading is not allowed in the //[[CompilerOptlang -lang qb]]// dialect.
+'' Threading synchronization using Mutexes
+ '' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-{{fbdoc item="target"}}
- - The DOS version of FreeBASIC does not allow for threads, as the OS does not support them.
- - In Linux the threads are always started in the order they are created, this can't be assumed in Win32. It's an OS, not a FreeBASIC issue.
+'' the threads will not be in sync and some of the data may be printed
+ '' out of place.
+ Declare Sub thread1( param As Any Ptr )
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+Declare Sub thread2( param As Any Ptr )
+ Declare Sub teletype (ByVal text As String, ByVal x As Integer, ByVal y As Integer)
-{{fbdoc item="see"}}
- - ##[[KeyPgMutexCreate Mutexcreate]]##
- - ##[[KeyPgMutexDestroy Mutexdestroy]]##
- - ##[[KeyPgMutexUnlock Mutexunlock]]##
- - ##[[KeyPgThreadCreate Threadcreate]]##
- - ##[[KeyPgThreadWait Threadwait]]##
+Dim Shared threadsync As Any Ptr
+ Dim Shared thread1handle As Any Ptr
+ Dim Shared thread2handle As Any Ptr
+ '' Create a mutex to synchronize the threads
+ threadsync = MutexCreate
+ '' Call thread 1
-{{fbdoc item="back" value="CatPgThreading|Threading Support Functions"}}
\ No newline at end of file
+thread1handle = ThreadCreate(@thread1)
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgMutexUnlock.wakka b/fbdocs/manual/cache/KeyPgMutexUnlock.wakka
index 2caa491b03..46d56b9dcb 100644
--- a/fbdocs/manual/cache/KeyPgMutexUnlock.wakka
+++ b/fbdocs/manual/cache/KeyPgMutexUnlock.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="MUTEXUNLOCK"}}----
-Releases a mutex lock
+Détruit un verrouillage de "mutex"
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Mutexunlock** ( [[KeyPgByval byval]] //id// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
@@ -9,103 +9,31 @@ Releases a mutex lock
##
{{fbdoc item="param"}}
##//id//##
- The ##[[KeyPgAny any]] [[KeyPgPtr ptr]]## handle of the mutex to be unlocked.
+ Le ##[[KeyPgAny Any]] [[KeyPgPtr Ptr]]## "handle" du "mutex" à déverrouiller.
{{fbdoc item="desc"}}
- ##Mutexunlock## releases a mutex "handle" created by ##[[KeyPgMutexCreate Mutexcreate]]##, and locked with ##[[KeyPgMutexLock Mutexlock]]##. This allows other threads sharing the mutex to continue execution.
+ ##Mutexlock## arrête tous les autres "threads" utilisant un "handle" de "mutex" généré par ##[[KeyPgMutexCreate MutexCreate]]##, jusqu'à ce que le "handle" soit déverrouillé avec ##[[KeyPgMutexUnlock MutexUnlock]]##.
- See ##[[KeyPgMutexCreate Mutexcreate]]## for more general information on mutexes.
+ Voir ##[[KeyPgMutexCreate MutexCreate]]## pour plus d'information générale sur les "mutex".
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/threads/mutexunlock.bas"}}%%(freebasic)
-'' Threading synchronization using Mutexes
-'' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-'' the threads will not be in sync and some of the data may be printed
-'' out of place.
-
-DECLARE SUB thread1( param as any ptr )
-DECLARE SUB thread2( param as any ptr )
-DECLARE SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
-
-DIM SHARED threadsync AS any ptr
-DIM SHARED thread1handle AS any ptr
-DIM SHARED thread2handle AS any ptr
-
-'' Create a mutex to synchronize the threads
-threadsync = MUTEXCREATE
-
-'' Call thread 1
-thread1handle = THREADCREATE(@thread1)
-IF thread1handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Call thread 2
-thread2handle = THREADCREATE(@thread2)
-IF thread2handle = 0 THEN
- PRINT "Error creating thread1"
-END IF
-
-'' Wait until both threads are finished
-THREADWAIT(thread1handle)
-THREADWAIT(thread2handle)
-
-teletype "Testing.................", 1, 1
-teletype "Testing again...........", 10, 1
-
-'' Discard the mutex when we are through using teletype
-MUTEXDESTROY threadsync
+ %%(freebasic)
-SLEEP
-END
-
-'' Thread 1 calls a simple "teletype" routine
-SUB thread1( param as any ptr )
- teletype "This is a test...", 4, 1
-END SUB
-
-'' ...As does thread 2
-SUB thread2( param as any ptr )
- teletype "This is another test...", 7, 1
-END SUB
-
-'' Teletype unfurls some text across the screen at a given location
-SUB teletype (BYVAL text AS STRING, BYVAL x AS INTEGER, BYVAL y AS INTEGER)
- DIM i AS INTEGER, a as INTEGER
- DIM text_length AS INTEGER
-
- text_length = LEN(text)
- FOR a = 0 TO text_length
- '' MutexLock prevents the two simultaneously running
- '' threads from sharing "x", "y", and "a"
- MUTEXLOCK threadsync
-
- LOCATE x,(y+a)
- PRINT CHR(text[a])
-
- '' MutexUnlock releases these variables for other use
- MUTEXUNLOCK threadsync
-
- SLEEP 25
- NEXT a
-END SUB
-%%
-
-{{fbdoc item="lang"}}
- - Threading is not allowed in the //[[CompilerOptlang -lang qb]]// dialect.
+'' Threading synchronization using Mutexes
+ '' If you comment out the lines containing "MutexLock" and "MutexUnlock",
-{{fbdoc item="target"}}
- - The DOS version of FreeBASIC does not allow for threads, as the OS does not support them.
- - In Linux the threads are always started in the order they are created, this can't be assumed in Win32. It's an OS, not a FreeBASIC issue.
+'' the threads will not be in sync and some of the data may be printed
+ '' out of place.
+ Declare Sub thread1( param As Any Ptr )
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+Declare Sub thread2( param As Any Ptr )
+ Declare Sub teletype (ByVal text As String, ByVal x As Integer, ByVal y As Integer)
-{{fbdoc item="see"}}
- - ##[[KeyPgMutexCreate Mutexcreate]]##
- - ##[[KeyPgMutexDestroy Mutexdestroy]]##
- - ##[[KeyPgMutexLock Mutexlock]]##
- - ##[[KeyPgThreadCreate Threadcreate]]##
- - ##[[KeyPgThreadWait Threadwait]]##
+Dim Shared threadsync As Any Ptr
+ Dim Shared thread1handle As Any Ptr
+ Dim Shared thread2handle As Any Ptr
+ '' Create a mutex to synchronize the threads
+ threadsync = MutexCreate
+ '' Call thread 1
-{{fbdoc item="back" value="CatPgThreading|Threading Support Functions"}}
\ No newline at end of file
+thread1handle = ThreadCreate(@thread1)
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgNaked.wakka b/fbdocs/manual/cache/KeyPgNaked.wakka
index f542a57d1f..9bc6e941e8 100644
--- a/fbdocs/manual/cache/KeyPgNaked.wakka
+++ b/fbdocs/manual/cache/KeyPgNaked.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="NAKED"}}----
-Write functions without prolog/epilog code
+Ecrire des fonctions sans code prologue / épilogue
{{fbdoc item="syntax"}}##
[[KeyPgSub Sub]] //identifier// **Naked** [//calling_convention//] ( //param_list// )
@@ -10,14 +10,14 @@ Write functions without prolog/epilog code
[[KeyPgEndblock End]] [[KeyPgFunction Function]]
##
{{fbdoc item="param"}}
- ##//identifier//## - name of the procedure.
- ##//calling_convention//## - calling convention of the procedure - can be ##[[KeyPgCdecl CDecl]]##, ##[[KeyPgPascal Pascal]]##, or ##[[KeyPgStdcall StdCall]]##
- ##//asm_statements//## - the code in the procedure body. The code for handling parameters and returning values must all be done manually. Note that the methods for doing these can change, depending on the calling convention.
- ##//param_list//## - parameters to be passed to the procedure.
- ##//data_type//## - the [[DataType data type]] of the function.
+ ##//identifier//## nom de la procédure.
+ ##//calling_convention//## convention d'appel de la procédure - peut être ##[[KeyPgCdecl cdecl]]##, ##[[KeyPgPascal pascal]]## ou ##[[KeyPgStdcall stdcall]]##
+ ##//asm_statements//## le code dans le corps de la procédure. Le code pour gérer les paramètres et retourner les valeurs doit être fait entièrement manuellement. Notez que les méthodes pour faire ceci peuvent changeer en fonction de la convention d'appel.
+ ##//param_list//## paramètres à passer à la procédure.
+ ##//data_type//## le [[DataType data type]] de la fonction.
{{fbdoc item="desc"}}
- ##**Naked**## allows the programmer to write procedures without the compiler generating any prolog/epilog code. This is useful when writing small, fast functions in ##[[KeyPgAsm Asm]]## without any unnecessary overhead.
+ ##**Naked**## permet au programmeur d'écrire des procédures sans que le compilateur génére de code prologue / épilogue. Ceci est utile lors de l'écriture de petites fonctions rapides en ##[[KeyPgAsm Asm]]## sans surcharge inutile.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/procs/naked.bas"}}%%(freebasic)
@@ -39,10 +39,10 @@ end function
print add( 1, 5 )%%
{{fbdoc item="target"}}
- - The default calling convention can change depending on the platform used. Additionally, ##[[KeyPgStdcall StdCall]]## does not behave the same on all platforms - on Linux, it behaves like ##[[KeyPgCdecl Cdecl]]##. It may be necessary to check the [[CatPgDddefines Intrinsic Defines]] (such as ##[[KeyPgDdfbwin32 __FB_WIN32__]]##), and write different code depending on them.
+ - La convention d'appel par défaut peut changer en fonction de la plate-forme utilisée. En outre, ##[[KeyPgStdcall stdcall]]## ne se comporte pas de la même façon sur toutes les plateformes - sur Linux, il se comporte comme ##[[KeyPgCdecl cdecl]]##. Il peut être nécessaire de vérifier [[CatPgDddefines les définitions intrinsèques]] ((comme ##[[KeyPgDdfbwin32 __FB_WIN32__]]##) et d'écrire du code différent en fonction d'elles.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgAsm Asm]]##
diff --git a/fbdocs/manual/cache/KeyPgName.wakka b/fbdocs/manual/cache/KeyPgName.wakka
index 35cac8327c..e4dfd5d4f8 100644
--- a/fbdocs/manual/cache/KeyPgName.wakka
+++ b/fbdocs/manual/cache/KeyPgName.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="NAME"}}----
-Renames a file on disk
+Renomme un fichier sur le disque
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Name**( [[KeyPgByref byref]] //oldname// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]], [[KeyPgByref byref]] //newname// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,15 +9,15 @@ Renames a file on disk
##
{{fbdoc item="param"}}
##//oldname//##
- Name of an existing file.
+ Nom d'un fichier existant.
##//newname//##
- New name of the file.
+ Nouveau nom du fichier.
-{{fbdoc item="ret"}}
- Returns zero (0) on success and non-zero on failure.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne zéro (0) si succès et non-zéro en cas d'échec.
{{fbdoc item="desc"}}
- Renames a file or folder originally called ##//oldname//## to ##//newname//##.
+ Renomme ##//newname//## un fichier ou un dossier appelé à l'origine ##//oldname//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/system/name.bas"}}%%(freebasic)
@@ -35,7 +35,7 @@ End If
%%
{{fbdoc item="diff"}}
- - In QB, NAME required AS rather than a comma between the old and new names.
+ - Dans QB, NAME nécessite AS plutôt qu'une virgule entre ancien et nouveau noms.
{{fbdoc item="see"}}
- ##[[KeyPgKill Kill]]##
diff --git a/fbdocs/manual/cache/KeyPgNamespace.wakka b/fbdocs/manual/cache/KeyPgNamespace.wakka
index f13cc49b82..0862cc1f99 100644
--- a/fbdocs/manual/cache/KeyPgNamespace.wakka
+++ b/fbdocs/manual/cache/KeyPgNamespace.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="NAMESPACE"}}----
-Declares a namespace block
+Déclare un bloc d'espace de noms
{{fbdoc item="syntax"}}##
**Namespace** //identifier// [ [[KeyPgAlias Alias]] "//aliasname//" ]
@@ -8,16 +8,16 @@ Declares a namespace block
##
{{fbdoc item="param"}}
##//identifier//##
- The name of the namespace.
+ Le nom de l'espace de noms.
##//aliasname//##
- An alternate external name for the namespace.
+ Un autre nom externe pour l'espace de noms.
{{fbdoc item="desc"}}
- Namespaces are commonly used in libraries where you don't want all the symbols from that library to crowd the user's space (called the Global Namespace).
+ Les espaces de noms sont couramment utilisés dans les bibliothèques si vous ne voulez pas que tous les symboles de celle-ci s'entassent et s'ajoutent sur l'espace de l'utilisateur (appelé Global Namespace = Espace de noms global).
- For example, if you used the "Forms" library, it might define the Point type for describing an X and Y coordinate, and you might also define it for another purpose. This can be resolved by creating the namespace Forms for the library, and then referring to its Point type as Forms.Point, and yours as just Point.
+ Par exemple, si vous utilisez la librairie "Forms", elle pourrait définir le type de Point pour décrire les coordonnées X et Y, et vous pourriez également le définir dans un autre but. Cela peut être résolu par la création de l'espace de noms pour la bibliothèque "Forms", puis se référer à son type Point comme Forms.Point, et le vôtre en tant que Point.
- To access duplicated symbols defined in the global namespace use: ##.""SomeSymbol""## (or ##..""SomeSymbol""## if inside a [[KeyPgWith With..End With]] block).
+ Pour accéder aux symboles dupliqués définis dans l'espace global de noms utilisez: ##.UnSymbole## (ou ##..UnSymbole## si à l'intérieur d'un bloc [[KeyPgWith With..End With]]).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/namespace.bas"}}%%(freebasic)
@@ -49,6 +49,36 @@ Dim pt1 As Point
AdjustPoint( pt1, 1, 1, 1 )
Dim pt2 As Forms.Point
Forms.AdjustPoint( pt2, 1, 1 )
+%%
+
+ {{fbdoc item="lang"}}
+ - Les espaces de noms ne sont pas permis dans le dialecte //[[CompilerOptlang -lang qb]]//.
+{{fbdoc item="diff"}}
+- Nouveau pour FreeBASIC
+{{fbdoc item="see"}}
+- [[KeyPgUsing Using (Espaces de noms)]]
+
+#include
+#include
+
+namespace mylib
+{
+ int test()
+ {
+ return 123;
+ }
+}
+%%
+ %%(freebasic)
+'' test.bas
+
+extern "c++" lib "mylib"
+ namespace mylib alias "mylib"
+ declare function test() as integer
+ end namespace
+end extern
+
+print mylib.test()
%%
{{fbdoc item="lang"}}
diff --git a/fbdocs/manual/cache/KeyPgNext.wakka b/fbdocs/manual/cache/KeyPgNext.wakka
index 161bfc0a4c..08398f003b 100644
--- a/fbdocs/manual/cache/KeyPgNext.wakka
+++ b/fbdocs/manual/cache/KeyPgNext.wakka
@@ -1,47 +1,47 @@
{{fbdoc item="title" value="NEXT"}}----
-Control flow statement to mark the end of a ##[[KeyPgFornext For...Next]]## loop.
+Déclaration de contrôle de flux pour marquer la fin d'une boucle ##[[KeyPgFornext For...Next]]##.
{{fbdoc item="syntax"}}##
**Next** [ //identifier_list// ]
##
{{fbdoc item="desc"}}
- Indicates the end of a statement block associated with a matching ##[[KeyPgFornext For]]## statement.
+ Indique la fin d'un bloc d'instructions associé à une déclaration ##[[KeyPgFornext For]]##.
- When ##**Next**## is used on its own without an //identifier_list//, it closes the most recent ##[[KeyPgFornext For]]## statement block.
+ Quand ##**Next**## est utilisé seul sans //identifier_list//, il ferme le bloc d'instructions ##[[KeyPgFornext For]]## le plus récent.
- ##//identifier_list//## is optional and may be one or more variable names separated by commas. This form of the ##**Next**## statement is retained for compatibility with QB. ##//identifier_list//##, if given, must match the identifiers used in the associated ##[[KeyPgFornext For]]## statements in reverse order.
+ ##//identifier_list//## est facultatif et correspond à une ou plusieurs variables séparées par des virgules. Cette forme de déclaration de ##**Next**## est conservée pour la compatibilité avec QB.
+##//identifier_list//##, s'il existe, doit correspondre aux identifiants utilisés dans la déclaration ##[[KeyPgFornext For]]## associée, dans l'ordre inverse.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/control/next.bas"}}%%(freebasic)
dim i as integer, j as integer
-for i=1 to 10
-for j=1 to 2
- ' ...
+Dim i As Integer, j As Integer
+For i=1 To 10
+ For j=1 To 2
+' ...
next
-next
-%%
+Next
-{{fbdoc item="filename" value="examples/manual/control/next2.bas"}}%%(freebasic)
-dim i as integer, j as integer
-for i=1 to 10
-for j=1 to 2
- ' ...
-next j
-next i
%%
-
-{{fbdoc item="filename" value="examples/manual/control/next3.bas"}}%%(freebasic)
dim i as integer, j as integer
-for i=1 to 10
-for j=1 to 2
- ' ...
-next j,i
+Dim i As Integer, j As Integer
+For i=1 To 10
+ For j=1 To 2
+' ...
+Next j
+Next i
+
%%
+dim i as integer, j as integer
+Dim i As Integer, j As Integer
+For i=1 To 10
+ For j=1 To 2
+' ...
+Next j,i
-{{fbdoc item="diff"}}
- - ##[[KeyPgByref Byref]]## arguments cannot be used as counters.
+%%
+ {{fbdoc item="diff"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgFornext For...Next]]##
+- Les arguments ##[[KeyPgByref ByRef]]## ne peuvent être utilisés comme compteurs.
+ {{fbdoc item="see"}}
-{{fbdoc item="back" value="CatPgMisc|Miscellaneous"}}
\ No newline at end of file
+- ##[[KeyPgFornext For...Next]]##
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgNow.wakka b/fbdocs/manual/cache/KeyPgNow.wakka
index 941cf494ff..1cdb36fa14 100644
--- a/fbdocs/manual/cache/KeyPgNow.wakka
+++ b/fbdocs/manual/cache/KeyPgNow.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="NOW"}}----
-Gets the current system time as a [[ProPgDates Date Serial]]
+Récupère une [[ProPgDates Date Serial]] de la date et de l'heure du système
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Now** ( ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -8,13 +8,13 @@ Gets the current system time as a [[ProPgDates Date Serial]]
#include "vbcompat.bi"
//result// = **Now**
##
-{{fbdoc item="ret"}}
- Returns a date serial containing the system's date and time at execution time.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une "date serial" contenant la date et l'heure au moment de l'exécution.
{{fbdoc item="desc"}}
- As the time is the decimal part of a date serial, if the value of **Now** is saved to an integer, the time in it will be reset to 00:00:00
+ Comme l'heure est la partie décimale d'une "date serial", si la valeur de **Now** est sauvée dans un nombre entier, l'heure sera mise à zéro 00:00:00
- The compiler will not recognize this function unless ##vbcompat.bi## is included.
+ Le compilateur ne reconnaît cette fonction que si ##vbcompat.bi## est inclus.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/dates/now.bas"}}%%(freebasic)
@@ -26,7 +26,7 @@ print format(a, "yyyy/mm/dd hh:mm:ss")
%%
{{fbdoc item="diff"}}
- - Did not exist in QB. This function appeared in PDS and VBDOS
+ - N'existe pas dans QB. Cette fonction est apparue dans PDS et VBDOS
{{fbdoc item="see"}}
- [[ProPgDates Date Serials]]
diff --git a/fbdocs/manual/cache/KeyPgOct.wakka b/fbdocs/manual/cache/KeyPgOct.wakka
index 6cd79bd105..0d0a2f1e0d 100644
--- a/fbdocs/manual/cache/KeyPgOct.wakka
+++ b/fbdocs/manual/cache/KeyPgOct.wakka
@@ -1,39 +1,39 @@
{{fbdoc item="title" value="OCT"}}----
-Converts a number to octal representation
+Conversion d'un nombre dans sa représentation octale
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgString string]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByval byval]] //digits// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgByte Byte]] ) [[KeyPgAs As]] [[KeyPgString String]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgByte Byte]], [[KeyPgByval ByVal]] //digits// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgString String]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgShort short]] ) [[KeyPgAs as]] [[KeyPgString string]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgShort short]], [[KeyPgByval byval]] //digits// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgShort Short]] ) [[KeyPgAs As]] [[KeyPgString String]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgShort Short]], [[KeyPgByval ByVal]] //digits// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgString String]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByval byval]] //digits// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgString String]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgInteger Integer]], [[KeyPgByval ByVal]] //digits// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgString String]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgLongint longint]] ) [[KeyPgAs as]] [[KeyPgString string]]
- [[KeyPgDeclare declare]] [[KeyPgFunction function]] **""Oct""**( [[KeyPgByval byval]] //number// [[KeyPgAs as]] [[KeyPgLongint longint]], [[KeyPgByval byval]] //digits// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgString string]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgLongint LongInt]] ) [[KeyPgAs As]] [[KeyPgString String]]
+ [[KeyPgDeclare Declare]] [[KeyPgFunction Function]] **Oct**( [[KeyPgByval ByVal]] //number// [[KeyPgAs As]] [[KeyPgLongint LongInt]], [[KeyPgByval ByVal]] //digits// [[KeyPgAs As]] [[KeyPgInteger Integer]] ) [[KeyPgAs As]] [[KeyPgString String]]
##
{{fbdoc item="usage"}}##
//result// = **Oct**[$]( //number// [, //digits// ] )
##
{{fbdoc item="param"}}
##//number//##
- A number or expression evaluating to a number. A floating-point number will be converted to a ##[[KeyPgLongint longint]]##.
+ Un nombre ou une expression numérique représentant un nombre. Un nombre à virgule flottante sera converti en ##[[KeyPgLongint LongInt (entier long)]]##.
##//digits//##
- Desired number of digits in the returned string.
+ Nombre de chiffres désirés pour la chaîne retournée.
-{{fbdoc item="ret"}}
- A string containing the unsigned octal representation of ##//number//##.
+{{fbdoc item="section" value="Valeur retournée
+ Une chaîne contenant la représentation octale non-signée de ##//number//##.
{{fbdoc item="desc"}}
- Returns the unsigned octal string representation of ##//number//##. Octal digits range from 0 to 7.
+ Retourne la représentation octale non-signée de ##//number//##. Chiffres octals de 0 à 7.
- If you specify ##//digits//## > 0, the result string will be exactly that length. It will be truncated or padded with zeros on the left, if necessary.
+ Si vous spécifiez ##//digits//## > 0, la chaîne résultat aura exactement cette longueur. Elle sera tronquée ou complétée avec des zéros sur la gauche, si nécessaire.
- The length of the returned string will not be longer than the maximum number of digits required for the type of ##//number//## (3 characters for ##[[KeyPgByte Byte]]##, 6 for ##[[KeyPgShort Short]]##, 11 for ##[[KeyPgInteger Integer]]##, and 22 for ##[[KeyPgLongint Longint]]##)
+ La longueur de la chaîne ne dépassera pas le nombre de bits maximum requis pour le type de ##//number//## (3 caractères pour ##[[KeyPgByte Byte (octet)]]##, 6 pour ##[[KeyPgShort Short (entier court)]]##, 11 pour ##[[KeyPgInteger Integer (entier)]]##, et 22 pour ##[[KeyPgLongint LongInt (entier long)]]##)
- If you want to do the opposite, i.e. convert an octal string back into a number, the easiest way to do it is to prepend the string with ##"&O"##, and convert it using ##[[KeyPgValint Valint]]## or ##[[KeyPgVallng Vallng]]##, similarly to a normal numeric string. E.g. ##[[KeyPgValint Valint]]("&O77")##
+ Si vous désirez l'opposé, par exemple convertir une chaîne octale vers un nombre, la meilleure façon de le faire est d'ajouter ##"&O"##, au début de la chaîne, et la convertir en utilisant ##[[KeyPgValint ValInt]]## ou ##[[KeyPgVallng ValLng]]##, de façon similaire à une chaîne numérique normale. Par exemple ##[[KeyPgValint ValInt]]("&O77")##
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/strings/oct.bas"}}%%(freebasic)
@@ -41,7 +41,7 @@ Print Oct(54321)
Print Oct(54321, 4)
Print Oct(54321, 8)
%%
- will produce the output:
+ produira la sortie:
%%152061
2061
@@ -49,12 +49,12 @@ Print Oct(54321, 8)
%%
{{fbdoc item="lang"}}
- - The string type suffix ##"$"## is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- - The string type suffix ##"$"## is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.
+ - Le suffixe de type chaîne ##"$"## est obligatoire dans le dialecte //[[CompilerOptlang -lang qb]]//.
+ - Le suffixe de type chaîne ##"$"## est facultatif dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - In QBASIC, there was no way to specify the number of digits returned.
- - The size of the string returned was limited to 32 bits, or 11 octal digits.
+ - Dans QBASIC, il n'y avait aucun moyen de spécifier le nombre de chiffres retournés.
+ - La taille de la chaîne retournée était limitée à 32 bits, ou 11 chiffres octals.
{{fbdoc item="see"}}
- ##[[KeyPgBin Bin]]##
diff --git a/fbdocs/manual/cache/KeyPgOffsetof.wakka b/fbdocs/manual/cache/KeyPgOffsetof.wakka
index 33a7ef823a..27bf516af6 100644
--- a/fbdocs/manual/cache/KeyPgOffsetof.wakka
+++ b/fbdocs/manual/cache/KeyPgOffsetof.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OFFSETOF"}}----
-Returns the offset of a field within a type.
+Retourne la position (offset) d'un champ dans un type.
{{fbdoc item="syntax"}}##
[[KeyPgPpdefine #define]] **Offsetof**(//typename//, //fieldname//) [[KeyPgCint cint]]( @[[KeyPgCast cast]]( //typename// [[KeyPgPtr ptr]], 0 )->//fieldname// )
@@ -9,12 +9,12 @@ Returns the offset of a field within a type.
##
{{fbdoc item="param"}}
##//typename//##
- Name of the type as defined using the ##[[KeyPgType Type...End Type]]## statements.
+ Nom du type qui a été défini avec ##[[KeyPgType Type...End Type]]##.
##//fieldname//##
- Name of the field as defined within the type.
+ Nom du type de champ qui a été défini dans le type.
{{fbdoc item="desc"}}
- ##**Offsetof**## will return the location ##//fieldname//## as offset in bytes from the beginning of ##//typename//##.
+ ##**OffsetOf**## retournera la position, en octets, de ##//fieldname//## depuis le début de ##//typename//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/misc/offsetof.bas"}}%%(freebasic)
@@ -42,10 +42,10 @@ OffsetOf i = 8
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Offsetof""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Offsetof**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgType Type...End Type]]##
diff --git a/fbdocs/manual/cache/KeyPgOnerror.wakka b/fbdocs/manual/cache/KeyPgOnerror.wakka
index 7529bd918a..5ef1194b6f 100644
--- a/fbdocs/manual/cache/KeyPgOnerror.wakka
+++ b/fbdocs/manual/cache/KeyPgOnerror.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="ON ERROR"}}----
-Error handling statement to set the current error handler
+Instruction de gestion des erreurs pour définir le gestionnaire d'erreur courant
{{fbdoc item="syntax"}}##
**On [Local] Error Goto** //label//
@@ -9,18 +9,18 @@ Error handling statement to set the current error handler
##
{{fbdoc item="param"}}
##//label//##
- label to jump to when error occurs
+ label où sauter en cas d'erreur
{{fbdoc item="desc"}}
- ##[[KeyPgOnerror On Error]]## triggers a jump to an error handler when an error occurs.
+ ##[[KeyPgOnerror On Error]]## déclenche un saut vers un gestionnaire d'erreur lorsqu'une erreur se produit.
- If ##[[KeyPgLocal Local]]## is not used the handler must be in the main part of the module. Using ##[[KeyPgLocal Local]]## allows to have the error handler inside the ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## where the ##**On Error**## is located.
+ Si ##[[KeyPgLocal Local]]## n'est pas utilisé le gestionnaire doit être dans la partie principale du module. L'utilisation de ##[[KeyPgLocal Local]]## permet d'avoir un gestionnaire d'erreur dans ##[[KeyPgSub Sub]]##/##[[KeyPgFunction Function]]## où ##**On Error**## est situé.
- ##**On Error GOTO 0**## deactivates the current error handler.
+ ##**On Error GOTO 0**## désactive le gestionnaire d'erreur courant.
- The use of QB-like error handling requires compilation with switch //[[CompilerOpte -e]]//, //[[CompilerOptex -ex]]// or //[[CompilerOptexx -exx]]// activated.
+ L'utilisation d'un gestionnaire d'erreur de type QB nécessite une compilation avec le commutateur //[[CompilerOpte -e]]//, //[[CompilerOptex -ex]]// ou //[[CompilerOptexx -exx]]// activé.
- See [[TblRuntimeErrors Runtime Error Codes]] for a listing of runtime error numbers and their associated meaning.
+ Voir [[TblRuntimeErrors Codes des erreurs de fonctionnement]] pour une liste des erreurs de fonctionnement et de leurs numéros, ainsi que de leur signification.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/error/onerror.bas"}}%%(freebasic)
@@ -38,7 +38,44 @@ End
%%
{{fbdoc item="lang"}}
- - ON ERROR is supported in the //[[CompilerOptlang -lang qb]]// dialect only. In the //[[CompilerOptlang -lang fb]]// dialect, statements can be used in function form to return an error code
+- ON ERROR n'est utilisable que dans le dialecte //[[CompilerOptlang -lang qb]]//. Dans le dialecte //[[CompilerOptlang -lang fb]]//, des déclarations peuvent être utilisées sous forme de fonction pour retourner un code d'erreur.
+
+#lang "fblite"
+
+'' Compile with FB default (-lang fb) dialect
+ If Open( "text" For Input As #1 ) <> 0 Then
+
+ Print "Unable to open file"
+
+ End If
+
+ %%
+ {{fbdoc item="diff"}}
+
+ - QB n'a pas de clause LOCAL et nécessite que le label soit dans la partie principale du module.
+
+ {{fbdoc item="see"}}
+
+- ##[[KeyPgError Error]]##
+ - ##[[KeyPgLocal Local]]##
+- ##[[KeyPgErr Err]]##
+
+
+ - [[TblRuntimeErrors Codes des erreur de fonctionnement]]
+
+ on error goto errhandler
+ error 1234
+ print "back from resume next"
+ end 0
+
+errhandler:
+ print "error number: " + str( err ) + " at line: " + str( erl )
+ resume next
+%%
+
+{{fbdoc item="lang"}}
+ - ON ERROR is supported in any //[[CompilerOptlang -lang]]// dialect.
+ - In the //[[CompilerOptlang -lang fb]]// dialect, statements can be used preferably in function form to return an error code: in that case ON ERROR being ineffective but consuming CPU time must be unused.
{{fbdoc item="filename" value="examples/manual/check/KeyPgOnerror_2.bas"}}%%(freebasic)
'' Compile with FB default (-lang fb) dialect
If Open( "text" For Input As #1 ) <> 0 Then
@@ -55,5 +92,6 @@ End If
- ##[[KeyPgLocal Local]]##
- ##[[KeyPgErr Err]]##
- [[TblRuntimeErrors Runtime Error Codes]]
+ - {{fbdoc item="keyword" value="ProPgErrorHandling|Error Handling"}}
{{fbdoc item="back" value="CatPgError|Error Handling Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOngosub.wakka b/fbdocs/manual/cache/KeyPgOngosub.wakka
index bf6e006af7..4e9c509be1 100644
--- a/fbdocs/manual/cache/KeyPgOngosub.wakka
+++ b/fbdocs/manual/cache/KeyPgOngosub.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="ON...GOSUB"}}----
-Calls a label based on an expression
+Appel (basé sur une expression) d'une ligne avec une étiquette
{{fbdoc item="syntax"}}##
**On** //expression// **Gosub** //label1//[, ...]
##
{{fbdoc item="desc"}}
- Branches to different labels depending on the value of //expression//. An expression value of 1 will branch to the first label, a value of 2 to the second, etc. If the value of //expression// is zero (0) or greater than the number of items in the list, execution continues on the next statement following the ##**On...Gosub**##.
+ Branchement vers différents labels dépendant de la valeur de //expression//. Une valeur de l'expression de 1 effectuera un branchement vers la première étiquette, une valeur de 2 vers la seconde, etc. Si la valeur de //expression// est zéro (0) ou plus grande que le nombre d'éléments dans la liste, l'exécution se poursuit sur la déclaration qui suit immédiatement ##**On...Gosub**##.
- This statement behaves exactly like ##[[KeyPgGosub Gosub]]## and execution may return to the statement following the ##**On...Gosub**## using ##[[KeyPgReturn Return]]##.
+ Cette déclaration comporte exactement comme ##[[KeyPgGosub GoSub]]## et l'exécution peut revenir à l'instruction qui suit ##**On...Gosub**## en utilisant ##[[KeyPgReturn Return]]##.
- It is recommended that the structured ##[[KeyPgSelectcase Select Case]]## conditional statement be used instead of ##**On...Gosub**##.
+ Il est recommandé d'utiliser l'instruction conditionnelle et structurée ##[[KeyPgSelectcase Select Case]]## à la place de ##**On...Gosub**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/ongosub.bas"}}%%(freebasic)
@@ -36,11 +36,11 @@ Return
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
- - ##**On Gosub**## support is disabled by default in the //[[CompilerOptlang -lang fblite]]// unless the ##[[KeyPgOptiongosub Option Gosub]]## statement is used.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//.
+ - Le support de ##**On Gosub**## est invalide par défaut dans le dialecte //[[CompilerOptlang -lang fblite]]// sauf si ##[[KeyPgOptiongosub Option Gosub]]## est utilisé.
{{fbdoc item="diff"}}
- - FreeBASIC does not generate a run-time error if ##//expression//## is negative or greater than 255.
+ - FreeBASIC ne génère pas d'erreur de fonctionnement si ##//expression//## est négative ou supérieure à 255.
{{fbdoc item="see"}}
- ##[[KeyPgSelectcase Select Case]]##
diff --git a/fbdocs/manual/cache/KeyPgOngoto.wakka b/fbdocs/manual/cache/KeyPgOngoto.wakka
index 0ca4d0b552..83f09db5c9 100644
--- a/fbdocs/manual/cache/KeyPgOngoto.wakka
+++ b/fbdocs/manual/cache/KeyPgOngoto.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="ON...GOTO"}}----
-Jumps to a label based on an expression.
+Saut (basé sur une expression) vers une ligne avec une étiquette
{{fbdoc item="syntax"}}##
**On** //expression// **Goto** label1[, ...]
##
{{fbdoc item="desc"}}
- Branches to different labels depending on the value of //expression//. An expression value of 1 will branch to the first label, a value of 2 to the second, etc. If the value of //expression// is zero (0) or greater than the number of items in the list, execution continues on the next statement following the ##**On...Goto**##.
+ Branchement vers différents labels dépendant de la valeur de //expression//. Une valeur de l'expression de 1 effectuera un branchement vers la première étiquette, une valeur de 2 vers la seconde, etc. Si la valeur de //expression// est zéro (0) ou plus grande que le nombre d'éléments dans la liste, l'exécution se poursuit sur la déclaration qui suit immédiatement ##**On...Goto**##.
- It is recommended that the structured ##[[KeyPgSelectcase Select Case]]## conditional statement be used instead of ##**On...Goto**##.
+ Il est recommandé d'utiliser l'instruction conditionnelle et structurée ##[[KeyPgSelectcase Select Case]]## à la place de ##**On...Goto**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/control/on-goto.bas"}}%%(freebasic)
@@ -31,7 +31,7 @@ End
%%
{{fbdoc item="diff"}}
- - FreeBASIC does not generate a run-time error if ##//expression//## is negative or greater than 255.
+ - FreeBASIC ne génère pas d'erreur de fonctionnement si ##//expression//## est négative ou supérieure à 255.
{{fbdoc item="see"}}
- ##[[KeyPgSelectcase Select Case]]##
diff --git a/fbdocs/manual/cache/KeyPgOpAdd.wakka b/fbdocs/manual/cache/KeyPgOpAdd.wakka
index cb15ac9536..037df0840e 100644
--- a/fbdocs/manual/cache/KeyPgOpAdd.wakka
+++ b/fbdocs/manual/cache/KeyPgOpAdd.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator + (Addition)"}}----
-Sums two expressions
+Somme de deux expressions
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **+** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgByte byte]]
@@ -22,25 +22,25 @@ Sums two expressions
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to sum.
+ L'argument de gauche de la somme.
##//rhs//##
- The right-hand side expression to sum.
+ L'argument de droite de la somme.
##//T//##
- Any pointer type.
+ Tout type de pointeur.
-{{fbdoc item="ret"}}
- Returns the sum of two expressions.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie la somme de deux expressions.
{{fbdoc item="desc"}}
- When the left and right-hand side expressions are numeric values, **##Operator +## (Add)** returns the sum of the two values.
+ Lorsque les expressions à gauche et à droite sont des valeurs numériques, **##Operator +## (Add)** renvoie la somme des deux valeurs.
- When the left and right-hand side expressions are string values, **##Operator +## (Add)** concatenates the two strings and returns the result.
+ Lorsque les expressions à gauche et à droite sont des valeurs chaîne, **##Operator +## (Add)** réalise la concaténation des deux chaînes et renvoie le résulat.
- If either the left or right-hand side expressions is of [[KeyPgPointer Pointer]] type, **##Operator +## (Add)** performs pointer arithmetic on the address, returning the result.
+ Si les expressions de droite ou de gauche sont de type [[KeyPgPointer Pointer]], **##Operator +## (Add)** exécute une opération arithmétique pointeur sur l'adresse, et renvoie le résulat.
- Neither operand is modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié
- This operator can be overloaded to accept user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/add.bas"}}%%(freebasic)
@@ -49,20 +49,20 @@ n = 4.54 + 5.46
PRINT n
SLEEP
%%
- will produce the output:
+ produira l'affichage:
%%
10
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[KeyPgOpConcat Operator + (String concatenation)]]
- - [[CatPgMath Mathematical Functions]]
+ - [[KeyPgOpConcat Operator + (Concaténation de chaînes)]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpAnd.wakka b/fbdocs/manual/cache/KeyPgOpAnd.wakka
index 9f0fb15006..924fdce8ac 100644
--- a/fbdocs/manual/cache/KeyPgOpAnd.wakka
+++ b/fbdocs/manual/cache/KeyPgOpAnd.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator AND (Conjunction)"}}----
-Returns the bitwise-and (conjunction) of two numeric values
+Retourne la manipulation de bits AND (conjonction) de deux valeurs numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **And** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
@@ -9,31 +9,31 @@ Returns the bitwise-and (conjunction) of two numeric values
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ L'expression du côté gauche.
##//T1//##
- Any numeric type.
+ N'importe quel type numérique.
##//rhs//##
- The right-hand side expression.
+ L'expression du côté droit.
##//T2//##
- Any numeric type.
+ N'importe quel type numérique.
##//Ret//##
- A numeric type (varies with ##//T1//## and ##//T2//##).
+ Un type numérique (varie avec ##//T1//## et ##//T2//##).
-{{fbdoc item="ret"}}
- Returns the bitwise-and (conjunction) of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits AND (conjonction) des deux opérandes.
{{fbdoc item="desc"}}
- This operator returns the bitwise-and of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.
+ Cet opérateur retourne la manipulation de bits AND de ses opérandes, une opération logique dont le résultat est une valeur dont les bits dépendent de la valeur des bits des deux opérandes.
- The truth table below demonstrates all combinations of a boolean-and operation:
+ La table de vérité ci-dessous montre les différentes combinaisons d'une opération AND booléenne:
- {{table columns="3" cellpadding="2" cells="Lhs Bit;Rhs Bit;Result;0;0;0;1;0;0;0;1;0;1;1;1"}}
+ {{table columns="" cellpadding="2" cells="Bit côté gauche;Bit côté droit;Résultat;0;0;0;1;0;0;0;1;0;1;1;1;
- No short-circuiting is performed - both expressions are always evaluated.
+ Aucun court-circuit n'est exécuté - les deux expressions sont toujours évaluées.
- The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.
+ Le type de la valeur retournée dépend des types des valeurs passées. Les valeurs de types ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte UByte]]## et à virgule flottante sont en premier converties en ##[[KeyPgInteger Integer]]##. Si les types des deux côtés diffèrent seulement par le fait d'être signé ou non, alors le type de la valeur retournée sera le même que le type le l'opérande côté gauche (##//T1//##), autrement, le plus large des deux types sera utilisé.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/and-bitwise.bas"}}%%(freebasic)
@@ -64,12 +64,12 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Table de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpAndAlso.wakka b/fbdocs/manual/cache/KeyPgOpAndAlso.wakka
index d670b522f8..9a26602fbd 100644
--- a/fbdocs/manual/cache/KeyPgOpAndAlso.wakka
+++ b/fbdocs/manual/cache/KeyPgOpAndAlso.wakka
@@ -1,39 +1,39 @@
{{fbdoc item="title" value="Operator ANDALSO (Short Circuit Conjunction)"}}----
-Returns the short circuit-and (conjunction) of two numeric values
+Retourne le circuit-court (conjonction) de deux valeurs numériques
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgOperator operator]] **""AndAlso""** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
+ [[KeyPgDeclare Declare]] [[KeyPgOperator Operator]] **AndAlso** ( [[KeyPgByref ByRef]] //lhs// [[KeyPgAs As]] //T1//, [[KeyPgByref ByRef]] //rhs// [[KeyPgAs As]] //T2// ) [[KeyPgAs As]] //Ret//
##
{{fbdoc item="usage"}}##
- //result// = //lhs// **""AndAlso""** //rhs//
+ //result// = //lhs// **AndAlso** //rhs//
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Expression côté gauche.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Expression côté droit.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- An Integer.
+ Un nombre entier.
-{{fbdoc item="ret"}}
- Returns the short circuit-and (conjunction) of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le circuit-court (conjonction) des deux opérandes.
{{fbdoc item="desc"}}
- This operator evaluates the left hand side expression. If the result is zero, then zero is immediately returned. If the result is non zero then the right hand side is evaluated, and the logical result from that is returned.
+ Cet opérateur évalue l'expression à gauche. Si le résultat est nul, zéro est retourné immédiatement. Si le résultat est non nul alors l'expression de droite est évaluée et le résultat logique des deux expressions est retourné.
- The truth table below demonstrates all combinations of a short circuit-and operation, the '-' denotes that the operand is not evaluated.
+ La table de vérité ci-dessous montre toutes les combinaisons d'un circuit-court, le signe '-' indique que l'opérande n'est pas évalué.
- {{table columns="3" cellpadding="2" cells="Lhs Value;Rhs Value;Result;0;-;0;1;0;0;1;1;1"}}
+ {{table columns="" cellpadding="2" cells="Valeur côté gauche;Valeur côté droit;Résultat;0;-;0;1;0;0;1;1;1;
- Short-circuiting is performed - only expressions needed to calculate the result are evaluated.
+ Un court-circuit est exécuté - seules les expressions nécessaires pour calculer le résultat sont évaluées.
- The return type is always an Integer, of the value 0 or -1, denoting false and true respectively.
+ Le type de retour est toujours un entier, de valeur 0 ou -1, indiquant faux et vrai, respectivement.
- This operator cannot be overloaded for user-defined types.
+ Cet opérateur ne peut pas être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/andalso.bas"}}%%(freebasic)
@@ -48,10 +48,10 @@ SLEEP
%%
{{fbdoc item="diff"}}
- - This operator was not available in QB.
+ - Cet opérateur n'est pas disponible sous QB.
{{fbdoc item="see"}}
- ##[[KeyPgOpOrElse OrElse]]##
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs de manipulation de bits]]
{{fbdoc item="back" value="CatPgOpShortCircuit|Short Circuit Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpArrayIndex.wakka b/fbdocs/manual/cache/KeyPgOpArrayIndex.wakka
index b56b92a2ce..006e5a36e9 100644
--- a/fbdocs/manual/cache/KeyPgOpArrayIndex.wakka
+++ b/fbdocs/manual/cache/KeyPgOpArrayIndex.wakka
@@ -1,26 +1,26 @@
{{fbdoc item="title" value="Operator () (Array index)"}}----
-Returns a reference to an element in an array
+Retourne une référence à un élément d'un tableau
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **()** ( //lhs//() [[KeyPgAs as]] //T//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]], ... ) [[KeyPgAs as]] //T//
##
-~&//Note that **##Operator ()## (Array index)** returns a reference. See [[CompilerFAQ Compiler FAQ]].//
+//Notez que **##Opérateur ()## (Indice de tableau)** retourne une référence. Voir [[CompilerFAQ FAQ du compilateur]].//
{{fbdoc item="usage"}}##
//result// = //lhs// **(** //rhs// [, ...] **)**
##
{{fbdoc item="param"}}
##//lhs//##
- An array.
+ Un tableau.
##//rhs//##
- An index of an element in the array.
+ L'indice d'un élément du tableau.
##//T//##
- Any data type.
+ N'importe quel type de donnée.
{{fbdoc item="desc"}}
- This operator returns a reference to an element in an array. For multidimensional arrays, multiple indexes must be specified (up to the total number of dimensions of the array).
+ Cet opérateur retourne une référence à un élément d'un tableau. Pour les tableaux multi-dimensionnels, des indices multiples seront spécifiés (au maximum égal au nombre total des dimensions du tableau).
- For any one dimension //d// in array //a//, any index outside of the range (##[[KeyPgLbound Lbound]](//a//(), //d//), [[KeyPgUbound Ubound]](//a//(), //d//)##) will result in a runtime error.
+ Pour toute dimension //d// dans un tableau //a//, tout indice en dehors de la plage (##[[KeyPgLbound LBound]](//a//(), //d//), [[KeyPgUbound UBound]](//a//(), //d//)##) donnera une erreur de fonctionnement.
{{fbdoc item="ex"}}
@@ -31,14 +31,14 @@ for index as integer = 0 to 4
print array(index)
next
%%
- will produce the output:
+ produira l'affichage:
%%
0 1 2 3 4
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
diff --git a/fbdocs/manual/cache/KeyPgOpAssignment.wakka b/fbdocs/manual/cache/KeyPgOpAssignment.wakka
index b2370fc707..4ae401d1c9 100644
--- a/fbdocs/manual/cache/KeyPgOpAssignment.wakka
+++ b/fbdocs/manual/cache/KeyPgOpAssignment.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator = (Assign)"}}----
-Assigns a value to a variable
+Affecte une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Let** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -7,26 +7,26 @@ Assigns a value to a variable
{{fbdoc item="usage"}}##
//lhs// **=** //rhs//
- ##//or, in the //QB// dialect,//##
+ ##//ou, dans le dialecte //QB//,//##
[ [[KeyPgLet Let]] ] //lhs// **=** //rhs//
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable qui reçoit l'affectation.
##//T1//##
- Any numeric, string or pointer type.
+ Une chaîne ou un type pointeur.
##//rhs//##
- The value to assign to ##//lhs//##.
+ La valeur à assigner à ##//lhs//##.
##//T2//##
- Any type convertible to ##//T2//##.
+ Tout type convertible##//T2//##.
{{fbdoc item="desc"}}
- This operator assigns the value of its right-hand side operand (##//rhs//##) to its left-hand side operand (##//lhs//##). The right-hand side operand must be implicitly convertible to the left-hand side type (##//T1//##). For example, you cannot assign a numeric value to a string type; to do that, first convert the numeric value to a string using ##[[KeyPgStr Str]]## or ##[[KeyPgWstr Wstr]]##.
+ Cet opérateur affecte la valeur de son opérande de droite (##//rhs//##) à son opérande de gauche (##//lhs//##). L'opérande de droite doit être implicitement convertible dans le type de celui de gauche (##//T1//##). Par exemple, vous ne pouvez pas assigner une valeur numérique à un type de chaîne; pour le faire, vous devez d'abord convertir la valeur numérique en une chaîne à l'aide de ##[[KeyPgStr Str]]## ou ##[[KeyPgWstr WStr]]##.
- Avoid confusion with ##[[KeyPgOpEqual Operator = (Equal)]]##, which also uses the '=' symbol.
+ Evitez la confusion avec ##[[KeyPgOpEqual Opérateur = (Egal)]]##, qui utilise également le symbole '='.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/assign.bas"}}%%(freebasic)
@@ -52,15 +52,15 @@ Let i = 300 ' <-alternate syntax
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
- - In the //[[CompilerOptlang -lang qb]]// dialect, an assignment expression can be preceded by the ##[[KeyPgLet Let]]## keyword.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, une expression d'affectation peut être précédée par le mot-clé ##[[KeyPgLet Let]]##.
{{fbdoc item="diff"}}
- None
-{{fbdoc item="see"}}
- - ##[[KeyPgOpEqual Operator = (Equal)]]##
- - ##[[KeyPgOpLet Operator Let (Assignment)]]##
+{{fbdoc item="see"}}
+ - ##[[KeyPgOpEqual Opérateur = (Egal)]]##
+ - ##[[KeyPgOpLet Opérateur Let (Affectation)]]##
- ##[[KeyPgSwap Swap]]##
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpAt.wakka b/fbdocs/manual/cache/KeyPgOpAt.wakka
index 0ec42a90a7..d0dbb43519 100644
--- a/fbdocs/manual/cache/KeyPgOpAt.wakka
+++ b/fbdocs/manual/cache/KeyPgOpAt.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator @ (Address of)"}}----
-Returns the address of a string literal, variable, object or procedure
+Retourne l'addresse d'une chaîne de caractères, d'une variable, d'un objet ou d'une procédure
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **@** ( [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T// ) [[KeyPgAs as]] //T// [[KeyPgPointer pointer]]
@@ -9,21 +9,21 @@ Returns the address of a string literal, variable, object or procedure
##
{{fbdoc item="param"}}
##//rhs//##
- The string literal, variable, object or procedure to retrieve the address of.
+ La chaîne de caractères, variable, objet ou procédure dont on veut récupérer l'adresse.
##//T//##
- Any [[CatPgStdDataTypes standard]], [[CatPgUserDefTypes user-defined]] or procedure type.
+ N'importe quel type [[CatPgStdDataTypes standard]], [[CatPgUserDefTypes défini par l'utilisateur]] ou procédure.
-{{fbdoc item="ret"}}
- Returns the address of the right-hand side (##//rhs//##) operand.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne l'adresse de l'opérande côté droit (##//rhs//##).
{{fbdoc item="desc"}}
- **##Operator @## (Address of)** returns the memory address of its operand.
+ **##L'opérateur @## (Adresse de)** retourne l'adresse mémoire de son opérande.
- When the operand is of type ##[[KeyPgString String]]##, the address of the internal string descriptor is returned. Use ##[[KeyPgOpStrptr Operator Strptr]]## (String pointer) to retrieve the address of the string data.
+ Quand l'opérande est de type ##[[KeyPgString String (Chaîne)]]##, est retournée l'adresse du descripteur interne de la chaîne. Utilisez l'##[[KeyPgOpStrptr Opérateur Strptr]]## (Pointeur de chaîne) pour récupérer l'adresse de la chaîne.
- The operand cannot be an array, but may be an array element. For example, ##"@myarray(0)"## returns the address of ##"myarray(0)"##.
+ L'opérande ne peut être un tableau, mais peut être un élément d'un tableau. Par exemple, ##"@myarray(0)"## retourne l'adresse de ##"myarray(0)"##.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/address-var.bas"}}%%(freebasic)
@@ -73,13 +73,13 @@ End Sub
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpValueOf Operator * (Value of)]]##
- - [[ProPgPointers Pointers]]
+ - ##[[KeyPgOpValueOf Opérateur * (Valeur de)]]##
+ - [[ProPgPointers Pointeurs]]
{{fbdoc item="back" value="CatPgOpPoint|Pointer Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineAdd.wakka b/fbdocs/manual/cache/KeyPgOpCombineAdd.wakka
index 0a57ec868c..ea290347fe 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineAdd.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineAdd.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator += (Add and Assign)"}}----
-Adds and assigns a value to a variable
+Ajoute et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **+=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -14,26 +14,26 @@ Adds and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to add to ##//lhs//##.
+ La valeur à ajouter à ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//T//##
- Any data type.
+ Tout type de données.
{{fbdoc item="desc"}}
- This operator adds and assigns a value to a variable. It is functionally equivalent to:
+ Cet opérateur ajoute et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpAdd +]] //rhs//
##
- For numeric types, the right-hand side expression (##//rhs//##) will be converted to the left-hand side type (##//T1//##).
+ Pour les types numériques, l'expression de droite (##//rhs//##) sera convertie dans le type de gauche (##//T1//##).
- For string types, this operator is functionally equivalent to ##[[KeyPgOpCombineConcat Operator &= (Concatenate and assign)]]##.
+ Pour les types chaîne, cet opérateur est fonctionnellement équivalent à ##[[KeyPgOpCombineConcat Opérateur &= (Concaténation et Affectation)]]##.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/add-assign.bas"}}%%(freebasic)
@@ -43,19 +43,19 @@ n += 1
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
7
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpAdd Operator + (Add)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpAdd Opérateur + (Addition)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineAnd.wakka b/fbdocs/manual/cache/KeyPgOpCombineAnd.wakka
index 38aa7147f3..cb52c5cdcf 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineAnd.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineAnd.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator AND= (Conjunction and Assign)"}}----
-Performs a bitwise-and (conjunction) and assigns the result to a variable
+Effectue une manipulation de bits AND (conjonction) et attribue le résultat à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **And=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,24 +9,24 @@ Performs a bitwise-and (conjunction) and assigns the result to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to perform a bitwise-and (conjunction) with ##//lhs//##.
+ La valeur qui sert à effectuer le AND avec ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator performs a bitwise-and and assigns the result to a variable. It is functionally equivalent to:
+ Cet opérateur effectue un AND et attribue le résultat à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpAnd and]] //rhs//
##
- ##**And=**## compares each bit of its operands, ##//lhs//## and ##//rhs//##, and if both bits are 1, then the corresponding bit in the first operand, ##//lhs//##, is set to 1, otherwise it is set to 0.
+ ##**And=**## compare chaque bit de ses opérandes, ##//lhs//## et ##//rhs//##, et si les deux bits sont 1, alors le bit correspondant dans le premier opérande, ##//lhs//##, est mis à 1, sinon il est mis à 0.
- ##**And=**## cannot be used in conditional expressions.
+ ##**And=**## ne peut pas être utilisé dans des expressions conditionnelles.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/and-assign.bas"}}%%(freebasic)
@@ -43,10 +43,10 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpAnd And]]##
diff --git a/fbdocs/manual/cache/KeyPgOpCombineConcat.wakka b/fbdocs/manual/cache/KeyPgOpCombineConcat.wakka
index 223c381e16..9191929d52 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineConcat.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineConcat.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator &= (Concatenate and Assign)"}}----
-Appends and assigns a string onto another string
+Ajoute et affecte une chaîne à une autre chaîne
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **&=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgString string]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -10,20 +10,20 @@ Appends and assigns a string onto another string
##
{{fbdoc item="param"}}
##//lhs//##
- The string to assign to.
+ La chaîne à assigner.
##//rhs//##
- The value to append to ##//lhs//##.
+ La valeur à ajouter à ##//lhs//##.
##//T2//##
- Any numeric, string or user-defined type that can be converted to a string.
+ Tout nombre, chaîne ou type défini par l'utilisateur qui peut être converti en une chaîne.
{{fbdoc item="desc"}}
- This operator appends one string onto another. The right-hand side expression (##//rhs//##) is converted to a string before concatenation. It is functionally equivalent to,
+ Cet opérateur ajoute une chaîne à une autre. L'expression à droite (##//rhs//##) est convertie en une chaîne avant la concaténation. C'est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpAdd &]] //rhs//
##
- where the result is assigned back to the left-hand side string.
+ où le résultat est de nouveau assigné à la chaîne de gauche.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/concat-assign.bas"}}%%(freebasic)
@@ -31,20 +31,20 @@ dim s as string = "Hello, "
s &= " world!"
print s
%%
- will produce the output:
+ produira la sortie:
%%
Hello, world!
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpConcatConvert Operator & (String concatenation with conversion)]]##
- - ##[[KeyPgOpCombineAdd Operator += (Add and Assign)]]##
+ - ##[[KeyPgOpConcatConvert Opérateur & (Concaténation de chaînes avec conversion)]]##
+ - ##[[KeyPgOpCombineAdd Opérateur += (Addition et Affectation)]]##
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineDivide.wakka b/fbdocs/manual/cache/KeyPgOpCombineDivide.wakka
index 58af38b668..199501fdd8 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineDivide.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineDivide.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator /= (Divide and Assign)"}}----
-Divides and assigns a value to a variable
+Divise et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **/=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Divides and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to divide ##//lhs//## by.
+ La valeur pour diviser ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator divides and assigns a value to a variable. It is functionally equivalent to:
+ Cet opérateur divise et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpDivide /]] //rhs//
##
- The right-hand side expression (##//rhs//##) will be converted to the left-hand side type (##//T1//##).
+ L'expression de droite (##//rhs//##) sera convertie dans le type de gauche (##//T1//##).
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/divide-assign.bas"}}%%(freebasic)
@@ -34,19 +34,19 @@ n /= 2.2
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
2.727272727272727
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpDivide Operator / (Divide)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpDivide Opérateur / (Diviser)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineEqv.wakka b/fbdocs/manual/cache/KeyPgOpCombineEqv.wakka
index 5fbd15fcbf..8cdfe42649 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineEqv.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineEqv.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator EQV= (Equivalence and Assign)"}}----
-Performs a bitwise-eqv (equivalence) and assigns the result to a variable
+Effectue une manipulation de bits EQV (équivalence) et attribue le résultat à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **And=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Performs a bitwise-eqv (equivalence) and assigns the result to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to perform a bitwise-eqv (equivalence) with ##//lhs//##.
+ La valeur qui sert à effectuer un EQV avec ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator performs a bitwise-eqv and assigns the result to a variable. It is functionally equivalent to:
+ Cet opérateur effectue un EQV et attribue le résultat à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpEqv eqv]] //rhs//
##
- ##**Eqv=**## compares each bit of its operands, ##//lhs//## and ##//rhs//##, and if both bits are the same (either both 0 or both 1), then the corresponding bit in the first operand, ##//lhs//##, is set to 1, otherwise it is set to 0.
+ ##**Eqv=**## compare chaque bit de ses opérandes, ##//lhs//## et ##//rhs//##, et si les deux bits sont les mêmes (soit les deux à 0 ou à 1), alors le bit correspondant dans le premier opérande, ##//lhs//##, est mis à 1, sinon il est mis à 0.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/eqv-assign.bas"}}%%(freebasic)
@@ -36,10 +36,10 @@ print bin(a)
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpEqv Eqv]]##
diff --git a/fbdocs/manual/cache/KeyPgOpCombineExponentiate.wakka b/fbdocs/manual/cache/KeyPgOpCombineExponentiate.wakka
index 236a1c0168..bdb19c354e 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineExponentiate.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineExponentiate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator ^= (Exponentiate and Assign)"}}----
-Exponentiates and assigns a value to a variable
+Élève à la puissance et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **^=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgDouble double]] )
@@ -9,16 +9,16 @@ Exponentiates and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//rhs//##
- The value to exponentiate ##//lhs//## by.
+ La valeur de la puissance à laquelle on élève ##//lhs//##.
{{fbdoc item="desc"}}
- This operator exponentiates and assigns a value to a variable. It is functionally equivalent to:
+ Cet opérateur élève à la puissance et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpExponentiate ^]] //rhs//
##
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/exponent-assign.bas"}}%%(freebasic)
@@ -28,19 +28,19 @@ n ^= 2
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
36
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpExponentiate Operator ^ (Exponentiate)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpExponentiate Opérateur ^ (Puissance)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineImp.wakka b/fbdocs/manual/cache/KeyPgOpCombineImp.wakka
index 425fadad21..b4f5dddf0f 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineImp.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineImp.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator IMP= (Implication and Assign)"}}----
-Performs a bitwise-imp (implication) and assigns the result to a variable
+Effectue une manipulation de bits IMP (implication) et attribue le résultat à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Imp=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Performs a bitwise-imp (implication) and assigns the result to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to perform a bitwise-imp (implication) with ##//lhs//##.
+ La valeur qui sert à effectuer un IMP avec ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator performs a bitwise-imp and assigns the result to a variable. It is functionally equivalent to:
+ Cet opérateur effectue un IMP et attribue le résultat à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpImp imp]] //rhs//
##
- ##**Imp**## is a bitwise operator which is the same as (##[[KeyPgOpNot Not]]## ##//lhs//##) ##[[KeyPgOpOr Or]]## ##//rhs//##. ##**Imp=**## compares each bit of its operands, ##//lhs//## and ##//rhs//##, and if the bit in ##//lhs//## is 0 or the bit in ##//rhs//## is 1, then the corresponding bit in the first operand, ##//lhs//##, is set to 1, otherwise it is set to 0.
+ ##**Imp**## est un opérateur de manipulation de bits équivalent : (##[[KeyPgOpNot Not]]## ##//lhs//##) ##[[KeyPgOpOr Or]]## ##//rhs//##. ##**Imp=**## compare chaque bit de ses opérandes, ##//lhs//## et ##//rhs//##, et si le bit de ##//lhs//## est 0 ou le bit de ##//rhs//## est 1, alors le bit correspondant dans le premier opérande, ##//lhs//##, est mis à 1, sinon il est mis à 0.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/imp-assign.bas"}}%%(freebasic)
@@ -36,13 +36,13 @@ print bin(a)
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpImp Imp]]##
- - [[CatPgOpAssignment Assignment Operators]]
+ - [[CatPgOpAssignment Opérateurs d'affectation]]
{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineIntegerDivide.wakka b/fbdocs/manual/cache/KeyPgOpCombineIntegerDivide.wakka
index 2a41e4b617..469c8aa5ff 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineIntegerDivide.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineIntegerDivide.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator \= (Integer divide and Assign)"}}----
-Integer divides and assigns a value to a variable
+Division entière et attribution d'une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **\=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,20 +9,20 @@ Integer divides and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to divide ##//lhs//## by.
+ La valeur pour diviser ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator multiplies and assigns a value to a variable. It is functionally equivalent to:
-##
- //lhs// = //lhs// [[KeyPgOpIntegerDivide \]] //rhs//
-##
- This operator can be overloaded for user-defined types.
+ Cet opérateur divise et attribue une valeur à une variable. Il est fonctionnellement équivalent à:##
+//lhs// = //lhs// [[KeyPgOpIntegerDivide \]] //rhs//
+ ##
+L'expression de droite (##//rhs//##) sera convertie dans le type de gauche (##//T1//##).
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/integer-divide-assign.bas"}}%%(freebasic)
@@ -32,19 +32,19 @@ n \= 2.2
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
3
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpIntegerDivide Operator \ (Integer divide)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpIntegerDivide Opérateur \ (Division entière)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineModulus.wakka b/fbdocs/manual/cache/KeyPgOpCombineModulus.wakka
index bc96f93201..134a41fd26 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineModulus.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineModulus.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Mod= (Modulus and Assign)"}}----
-Divides a value and assigns the remainder to a variable
+Divise une valeur et assigne le reste à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Mod=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] )
@@ -9,16 +9,16 @@ Divides a value and assigns the remainder to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//rhs//##
- The value to divide ##//lhs//## by.
+ La valeur pour diviser##//lhs//##.
{{fbdoc item="desc"}}
- This operator divides two values of ##[[KeyPgInteger Integer]]## type and assigns the remainder to its left-hand side (##//lhs//##) variable. It is functionally equivalent to:
+ Cet opérateur divise deux valeurs de type ##[[KeyPgInteger Integer]]## et attribue le reste à la variable de son côté gauche (##//lhs//##). C'est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpModulus Mod]] //rhs//
##
- This operator can be overloaded for user-defined types.
+ Cet opérateur élève à la puissance et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/mod-assign.bas"}}%%(freebasic)
@@ -31,13 +31,13 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpModulus Operator + (Modulus)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpModulus Operator + (Modulo)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineMultiply.wakka b/fbdocs/manual/cache/KeyPgOpCombineMultiply.wakka
index a0df7b9cb8..86eecabc13 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineMultiply.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineMultiply.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator *= (Multiply and Assign)"}}----
-Multiplies and assigns a value to a variable
+Multiplie et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] ***=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Multiplies and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to multiply ##//lhs//## by.
+ La valeur pour multiplier ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator multiplies and assigns a value to a variable. It is functionally equivalent to:
+ Cet opérateur multiplie et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpMultiply *]] //rhs//
##
- The right-hand side expression (##//rhs//##) will be converted to the left-hand side type (##//T1//##).
+ L'expression de droite (##//rhs//##) sera convertie dans le type de gauche (##//T1//##).
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/multiply-assign.bas"}}%%(freebasic)
@@ -34,19 +34,19 @@ n *= 2
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
12
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpMultiply Operator * (Multiply)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpMultiply Opérateur * (Multiplication)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineOr.wakka b/fbdocs/manual/cache/KeyPgOpCombineOr.wakka
index c99d325c7c..a21dd1765c 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineOr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineOr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator OR= (Inclusive Disjunction and Assign)"}}----
-Performs a bitwise-or (inclusive disjunction) and assigns the result to a variable
+Effectue une manipulation de bits OR (disjonction inclusive) et attribue le résultat à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Or=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Performs a bitwise-or (inclusive disjunction) and assigns the result to a variab
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to perform a bitwise-or (inclusive disjunction) with ##//lhs//##.
+ La valeur qui sert à effectuer un OR (disjonction inclusive) avec ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator performs a bitwise-or and assigns the result to a variable. It is functionally equivalent to:
+ Cet opérateur effectue un OR et attribue le résultat à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpOr or]] //rhs//
##
- ##**Or=**## compares each bit of its operands, ##//lhs//## and ##//rhs//##, and if either bits are 1, then the corresponding bit in the first operand, ##//lhs//##, is set to 1, otherwise it is set to 0.
+ ##**Or=**## compare chaque bit de ses opérandes, ##//lhs//## et ##//rhs//##, et si l'un des bits est à 1, alors le bit correspondant dans le premier opérande, ##//lhs//##, est mis à 1, sinon il est mis à 0.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/or-assign.bas"}}%%(freebasic)
@@ -36,10 +36,10 @@ print bin(a)
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpOr Or]]##
diff --git a/fbdocs/manual/cache/KeyPgOpCombineShiftLeft.wakka b/fbdocs/manual/cache/KeyPgOpCombineShiftLeft.wakka
index f286611483..b2b9c0f421 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineShiftLeft.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineShiftLeft.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Shl= (Shift left and Assign)"}}----
-Shifts left and assigns a value to a variable
+Décalage de bits vers la gauche et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Shl=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] )
@@ -12,16 +12,16 @@ Shifts left and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//rhs//##
- The value to shift ##//lhs//## left by.
+ La valeur du décalage vers la gauche des bits de ##//lhs//##.
{{fbdoc item="desc"}}
- This operator shifts the bits in its left-hand side (##//lhs//##) parameter a number of times specified by its right-hand side (##//rhs//##) parameter, and assigns the result to ##//lhs//##. It is functionally equivalent to:
+ Cet opérateur décale vers la gauche les bits du paramètre de gauche (##//lhs//##) un nombre de fois indiqué par le paramètre de droite (##//rhs//##), et attribue le résultat à ##//lhs//##. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpShiftLeft Shl]] //rhs//
##
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/shl-assign.bas"}}%%(freebasic)
@@ -34,14 +34,14 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Shl=""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Shl=**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpShiftLeft Operator Shl (Shift left)]]##
- - ##[[KeyPgOpCombineShiftRight Operator Shr= (Shift right and Assign)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpShiftLeft Opérateur Shl (Décalage vers la gauche)]]##
+ - ##[[KeyPgOpCombineShiftRight Opérateur Shr= (Décalage vers la droite et Affectation)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineShiftRight.wakka b/fbdocs/manual/cache/KeyPgOpCombineShiftRight.wakka
index eaafdd3edb..8a44c714a3 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineShiftRight.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineShiftRight.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Shr= (Shift right and Assign)"}}----
-Shifts right and assigns a value to a variable
+Décalage de bits vers la droite et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Shr=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] )
@@ -12,16 +12,16 @@ Shifts right and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//rhs//##
- The value to shift ##//lhs//## right by.
+ La valeur du décalage vers la droite des bits de ##//lhs//##.
{{fbdoc item="desc"}}
- This operator shifts the bits in its left-hand side (##//lhs//##) parameter a number of times specified by its right-hand side (##//rhs//##) parameter, and assigns the result to ##//lhs//##. It is functionally equivalent to:
+ Cet opérateur décale vers la droite les bits du paramètre de gauche (##//lhs//##) un nombre de fois indiqué par le paramètre de droite (##//rhs//##), et attribue le résultat à ##//lhs//##. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpShiftRight Shr]] //rhs//
##
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/shr-assign.bas"}}%%(freebasic)
@@ -34,14 +34,14 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Shr=""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Shr=**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpShiftRight Operator Shr (Shift right)]]##
- - ##[[KeyPgOpCombineShiftLeft Operator Shl= (Shift Left and Assign)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpShiftRight Opérateur Shr (Décalage vers la droite)]]##
+ - ##[[KeyPgOpCombineShiftLeft Opérateur Shl= (Décalage vers la droite et Affectation)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineSub.wakka b/fbdocs/manual/cache/KeyPgOpCombineSub.wakka
index b8077e8413..25d43352d0 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineSub.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineSub.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator -= (Subtract and Assign)"}}----
-Subtracts and assigns a value to a variable
+Soustrait et attribue une valeur à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **-=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -11,24 +11,24 @@ Subtracts and assigns a value to a variable
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to subtract from ##//lhs//##.
+ La valeur à soustraire à ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//T//##
- Any data type.
+ Tout type de données.
{{fbdoc item="desc"}}
- This operator subtracts and assigns a value to a variable. It is functionally equivalent to:
+ Cet opérateur soustrait et attribue une valeur à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpSubtract -]] //rhs//
##
- For numeric types, the right-hand side expression (##//rhs//##) will be converted to the left-hand side type (##//T1//##).
+ Pour les types numériques, l'expression de droite (##//rhs//##) sera convertie dans le type de gauche (##//T1//##).
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/subtract-assign.bas"}}%%(freebasic)
@@ -38,19 +38,19 @@ n -= 2.2
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
3.8
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpSubtract Operator - (Subtract)]]##
- - [[CatPgMath Mathematical Functions]]
+ - ##[[KeyPgOpSubtract Opérateur - (Soustraction)]]##
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpCombineXor.wakka b/fbdocs/manual/cache/KeyPgOpCombineXor.wakka
index 62941de448..af9202d29e 100644
--- a/fbdocs/manual/cache/KeyPgOpCombineXor.wakka
+++ b/fbdocs/manual/cache/KeyPgOpCombineXor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator XOR= (Exclusive Disjunction and Assign)"}}----
-Performs a bitwise-xor (exclusive disjunction) and assigns the result to a variable
+Effectue une manipulation de bits XOR (disjonction exclusive) et attribue le résultat à une variable
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Xor=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// )
@@ -9,22 +9,22 @@ Performs a bitwise-xor (exclusive disjunction) and assigns the result to a varia
##
{{fbdoc item="param"}}
##//lhs//##
- The variable to assign to.
+ La variable à assigner.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The value to perform a bitwise-xor (exclusive or) with ##//lhs//##.
+ La valeur qui sert à effectuer un XOR (disjonction exclusive) avec ##//lhs//##.
##//T2//##
- Any numeric type.
+ Tout type numérique.
{{fbdoc item="desc"}}
- This operator performs a bitwise-or and assigns the result to a variable. It is functionally equivalent to:
+ Cet opérateur effectue un XOR et attribue le résultat à une variable. Il est fonctionnellement équivalent à:
##
//lhs// = //lhs// [[KeyPgOpXor xor]] //rhs//
##
- ##**Xor=**## compares each bit of its operands, ##//lhs//## and ##//rhs//##, and if both bits are the same (both 1 or both 0), then the corresponding bit in the first operand, ##//lhs//##, is set to 0, otherwise it is set to 1.
+ ##**Xor=**## compare chaque bit de ses opérandes, ##//lhs//## et ##//rhs//##, et si les deux bits sont les mêmes (les deux à 1 ou les deux à both 0), alors le bit correspondant dans le premier opérande, ##//lhs//##, est mis à 1, sinon il est mis à 0.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/xor-assign.bas"}}%%(freebasic)
@@ -36,10 +36,10 @@ print bin(a)
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpXor Xor]]##
diff --git a/fbdocs/manual/cache/KeyPgOpConcat.wakka b/fbdocs/manual/cache/KeyPgOpConcat.wakka
index 2967dd7f43..aa823af813 100644
--- a/fbdocs/manual/cache/KeyPgOpConcat.wakka
+++ b/fbdocs/manual/cache/KeyPgOpConcat.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator + (String concatenation)"}}----
-Concatenates two strings
+Concatène deux chaînes
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **+** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgString string]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgString string]]
@@ -11,12 +11,12 @@ Concatenates two strings
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side string to concatenate.
+ La chaîne de gauche à concaténer.
##//rhs//##
- The right-hand side string to concatenate.
+ La chaîne de droite à concaténer.
{{fbdoc item="desc"}}
- This operator concatenates two strings. Unlike [[KeyPgOpConcatConvert Operator & (String concatenation with conversion)]] both expressions //must// be strings, and may not be converted (in fact, any attempt to concatenate a string with a non-string or two non-strings will result in a type mismatch error, with the exception of when operator overloading is used in a UDT).
+ Cet opérateur concatène deux chaînes. Contrairement à [[KeyPgOpConcatConvert Opérateur & (Concaténation de chaînes avec conversion)]] les deux expressions //doivent// être des chaînes, et ne seront pas converties (en fait, toute tentative de concaténer une chaîne avec une non-chaîne ou deux non-chaînes se traduira par une erreur de type, sauf si la surcharge d'opérateur est utilisée dans un type défini par l'utilisateur).
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/concat_nocvt.bas"}}%%(freebasic)
@@ -25,17 +25,17 @@ Dim As String c
c = a + b
Print c
%%
-Output:
+Affiche:
%%
Hello, World!
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[KeyPgOpAdd Operator + (Add)]]
- - [[KeyPgOpConcatConvert Operator & (String concatenation with conversion)]]
+ - [[KeyPgOpAdd Opérateur + (Add)]]
+ - [[KeyPgOpConcatConvert Opérateur & (Concaténation de chaînes avec conversion)]]
- ##[[KeyPgStr Str]]##
{{fbdoc item="back" value="CatPgOpString|String Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpConcatConvert.wakka b/fbdocs/manual/cache/KeyPgOpConcatConvert.wakka
index b88210a1b9..51bba34a6b 100644
--- a/fbdocs/manual/cache/KeyPgOpConcatConvert.wakka
+++ b/fbdocs/manual/cache/KeyPgOpConcatConvert.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator & (String concatenation with conversion)"}}----
-Concatenates two strings, converting non-strings to strings as needed
+Concatène deux chaînes, en convertissant, si nécessaire, les non-chaînes en chaînes
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **&** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //U// ) [[KeyPgAs as]] //V//
@@ -9,20 +9,20 @@ Concatenates two strings, converting non-strings to strings as needed
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to concatenate.
+ La chaîne de gauche à concaténer.
##//T//##
- Any standard data type or user-defined type that can be converted to a standard data type.
+ N'importe quel type de donnée standard ou défini par l'utilisateur qui peut être converti en un type de donnée standard.
##//rhs//##
- The right-hand side expression to concatenate.
+ La chaîne de droite à concaténer.
##//U//##
- Any standard data type or user-defined type that can be converted to a standard data type.
+ N'importe quel type de donnée standard ou défini par l'utilisateur qui peut être converti en un type de donnée standard.
##//V//##
- The resultant string type (varies with operands).
+ Le type de la chaîne résultante (varie avec les opérandes).
{{fbdoc item="desc"}}
- This operator concatenates two expressions. If either of the expressions is not a string type, it is converted to ##[[KeyPgString String]]## with ##[[KeyPgStr Str]]##.
+ Cet opérateur concatène deux expressions. Si l'une des expressions n'est pas de type chaîne, elle est convertie en ##[[KeyPgString String (Chaîne)]]## avec ##[[KeyPgStr Str]]##.
- If either of the expressions is a ##[[KeyPgWstring Wstring]]##, a ##[[KeyPgWstring Wstring]]## is returned, otherwise a ##[[KeyPgString String]]## is returned.
+ Si l'une des expressions est une ##[[KeyPgWstring WString]]##, une ##[[KeyPgWstring WString]]## est retournée, sinon une ##[[KeyPgString String]]## est retournée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/concat.bas"}}%%(freebasic)
@@ -34,16 +34,16 @@ C=A & B
PRINT C
SLEEP
%%
-Output:
+Affiche:
%%
The result is: 124.3
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
-{{fbdoc item="see"}}
- - [[KeyPgOpConcat Operator + (String concatenation)]]
+{{fbdoc item="section" value="Vopir aussi
+ - [[KeyPgOpConcat Opérateur + (String Concaténation)]]
- ##[[KeyPgStr Str]]##
{{fbdoc item="back" value="CatPgOpString|String Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpDelete.wakka b/fbdocs/manual/cache/KeyPgOpDelete.wakka
index cfc771ddfc..62619e98b9 100644
--- a/fbdocs/manual/cache/KeyPgOpDelete.wakka
+++ b/fbdocs/manual/cache/KeyPgOpDelete.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Delete"}}----
-Operator to delete data allocated with the ##[[KeyPgOpNew New]]## operator
+Opérateur pour détruire des données allouées avec l'opérateur ##[[KeyPgOpNew New]]##
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **delete** ( //buf// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] )
@@ -7,26 +7,26 @@ Operator to delete data allocated with the ##[[KeyPgOpNew New]]## operator
##
{{fbdoc item="usage"}}##
**Delete** //expression//
- //or//
+ //ou//
**Delete[]** //expression//
##
{{fbdoc item="param"}}
##//buf//##
- An address of memory to free.
+ Une adresse mémoire à libérer.
##//expression//##
- An address of memory to free.
+ Une adresse mémoire à libérer.
{{fbdoc item="desc"}}
- ##**Delete**## is used to destroy and free the memory of an object created with [[KeyPgOpNew New]]. When deleting a TYPE, its destructor will be called. ##**Delete**## should only be used with addresses returned from ##[[KeyPgOpNew New]]##.
+ ##**Delete**## est utilisé pour détruire et libérer la mémoire d'un objet créé avec [[KeyPgOpNew New]]. Quand on ##**Delete**## un TYPE, son destructeur est appelé. ##**Delete**## doit être utilisé uniquement avec des adresses retournées par ##[[KeyPgOpNew New]]##.
- The array version of ##**Delete**##, ##**Delete[]**##, is used to destroy an array of objects previously created with [[KeyPgOpNew New]][]. Destructors will be called here as well.
+ La version ##**Delete**## pour les tableaux, ##**Delete[]**##, est utilisé pour détruire un tableau d'objets créés précédemment avec [[KeyPgOpNew New]][]. Les destructeurs seront là aussi appelés.
- ##**Delete**## must be used with addresses returned from [[KeyPgOpNew New]], and ##**Delete[]**## with [[KeyPgOpNew New]][]. You cannot mix and match the different versions of the operators.
+ ##**Delete**## doit être utilisé avec des adresses retournées par [[KeyPgOpNew New]], et ##**Delete[]**## par [[KeyPgOpNew New]][]. Vous ne pouvez mélanger les différentes versions de ces opérateurs.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/delete.bas"}}%%(freebasic)
type Rational
- as integer numerator, denominator
+ As Integer numerator, denominator
end type
scope
@@ -57,10 +57,10 @@ scope
end scope
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Valable seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpNew New]]##
diff --git a/fbdocs/manual/cache/KeyPgOpDivide.wakka b/fbdocs/manual/cache/KeyPgOpDivide.wakka
index 0944e9d7c3..6491f71db1 100644
--- a/fbdocs/manual/cache/KeyPgOpDivide.wakka
+++ b/fbdocs/manual/cache/KeyPgOpDivide.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator / (Divide)"}}----
-Divides two numeric expressions
+Divise deux expressions numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **/** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgByte byte]]
@@ -19,19 +19,19 @@ Divides two numeric expressions
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side dividend expression.
+ Le dividende, argument côté gauche.
##//rhs//##
- The right-hand side divisor expression.
+ Le diviseur, argument côté droit.
-{{fbdoc item="ret"}}
- Returns the quotient of a dividend and divisor.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le quotient du dividende et du diviseur.
{{fbdoc item="desc"}}
- **##Operator /## (Divide)** returns the quotient of a dividend and divisor.
+ **##Operator /## (Divide)** retourne le quotient du dividende et du diviseur.
- Neither operand is modified in any way. Unlike with integer division, float division by zero is safe to perform, the quotient will hold a special value representing infinity, converting it to a string returns something like "Inf" or "INF", exact text is platform specific.
+ Dans tous les cas, aucun opérande n'est modifié. Contrairement à la division entière, division à virgule flottante par zéro est sans danger, le quotient aura une valeur spéciale représentant l'infini, en la convertissant en une chaîne elle retournera quelque chose comme "Inf" ou "INF", le texte exact est spécifique à la plate-forme.
- This operator can be overloaded to accept user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/divide.bas"}}%%(freebasic)
@@ -48,13 +48,13 @@ Output:
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[KeyPgOpIntegerDivide Operator \ (Integer divide)]]
- - [[CatPgMath Mathematical Functions]]
+ - [[KeyPgOpIntegerDivide Operator \ (Division entière)]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
diff --git a/fbdocs/manual/cache/KeyPgOpEqual.wakka b/fbdocs/manual/cache/KeyPgOpEqual.wakka
index b7070d15c7..67bb41ae2a 100644
--- a/fbdocs/manual/cache/KeyPgOpEqual.wakka
+++ b/fbdocs/manual/cache/KeyPgOpEqual.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator = (Equal)"}}----
-Compares two expressions for equality
+Compare deux expressions pour l'égalité
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,21 +22,21 @@ Compares two expressions for equality
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if expressions are equal, or zero (0) if unequal.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si les deux expressions sont égales ou zéro (0) si inégales.
{{fbdoc item="desc"}}
- **##Operator =## (Equality)** is a binary operator that compares two expressions for equality and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur =## (Egalité)** est un opérateur binaire qui compare deux expressions pour l'égalité et retourne le résultat - une valeur booléenne sous forme d'un ##[[KeyPgInteger Entier (Integer)]]##: négatif (-1) pour vrai et zéro (0) pour faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi bien des types définis par l'utilisateur.
- **##Operator =## (Equality)** should not be confused with initializations or assignments, both of which also use the "##=##" symbol.
+ L'**##Opérateur =## (Egalité)** ne doit pas être confondu avec des initialisations ou des affectations, qui elles aussi utilisent aussi le symbole "##=##".
{{fbdoc item="ex"}}
@@ -49,7 +49,7 @@ if (i = 69) then '' equation: compare the equality of the value of i and
end -1
end if
%%
- ##[[KeyPgOpNotEqual Operator <>]]## (Inequality) is complement to **##Operator =## (Equality)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'##[[KeyPgOpNotEqual Opérateur <>]]## (Inégalité) est complémentaire à l'**##Opérateur =## (Egalité)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/equal2.bas"}}%%(freebasic)
if (420 = 420) then print "(420 = 420) is true."
@@ -57,13 +57,13 @@ end if
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpNotEqual Operator <>]]## (Inequality)
- - ##[[KeyPgOpAssignment Operator = ]]## (Assignment)
+ - ##[[KeyPgOpNotEqual Opérateur <>]]## (Inégalité)
+ - ##[[KeyPgOpAssignment Opérateur =]]## (Affectation)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpEqv.wakka b/fbdocs/manual/cache/KeyPgOpEqv.wakka
index 033185905a..0d877c5911 100644
--- a/fbdocs/manual/cache/KeyPgOpEqv.wakka
+++ b/fbdocs/manual/cache/KeyPgOpEqv.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator EQV (Equivalence)"}}----
-Returns the bitwise-and (equivalence) of two numeric values
+Retourne la manipulation de bits équivalence de deux valeurs numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Eqv** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
@@ -9,31 +9,31 @@ Returns the bitwise-and (equivalence) of two numeric values
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Côté gauche de l'expression.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Côté droit de l'expression.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- A numeric type (varies with ##//T1//## and ##//T2//##).
+ Un type numérique. (varie avec ##//T1//## et ##//T2//##).
-{{fbdoc item="ret"}}
- Returns the bitwise-equivalence of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits équivalence de deux opérandes.
{{fbdoc item="desc"}}
- This operator returns the bitwise-equivalence of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.
+ Cet opérateur retourne la manipulation de bits équivalence de ses opérandes, une opération logique dont le résultat est une valeur dont les bits à 1 dépendent des bits des deux opérandes.
- The truth table below demonstrates all combinations of a boolean-equivalence operation:
+ La table de vérité ci-dessous montre toutes les combinaisons de l'opération d'équivalence booléenne:
- {{table columns="3" cellpadding="2" cells="Lhs Bit;Rhs Bit;Result;0;0;1;1;0;0;0;1;0;1;1;1"}}
+ {{table columns="" cellpadding="2" cells="Bit côté gauche;Bit côté droit;Résultat;0;0;1;1;0;0;0;1;0;1;1;1;
- No short-circuiting is performed - both expressions are always evaluated.
+ Pas de possibilité de court-circuit - les deux expressions sont toujours évaluées.
- The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.
+ Le type de la valeur retournée dépend des types des deux valeurs passées. Les valeurs de type ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte UByte]]## et à virgule flottante sont en premier converties en ##[[KeyPgInteger Integer]]##. Si les types des côtés gauche et droit diffèrent seulement par le manque de signe, le type de retour sera celui du côté gauche (##//T1//##), autrement, le plus grand des deux est retourné.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/eqv-bitwise.bas"}}%%(freebasic)
@@ -43,12 +43,12 @@ c = a eqv b '' c = &b10011001
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpExponentiate.wakka b/fbdocs/manual/cache/KeyPgOpExponentiate.wakka
index 7dc3c9e866..3ddaf841f5 100644
--- a/fbdocs/manual/cache/KeyPgOpExponentiate.wakka
+++ b/fbdocs/manual/cache/KeyPgOpExponentiate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator ^ (Exponentiate)"}}----
-Raises a numeric expression to some power
+Élève une expression numérique à une certaine puissance
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **^** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgDouble double]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
@@ -9,22 +9,22 @@ Raises a numeric expression to some power
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side base expression.
+ Valeur de base, argument côté gauche.
##//rhs//##
- The right-hand side exponent expression.
+ L'exposant, argument côté droit.
{{fbdoc item="ret"}}
- Returns the exponentiation of a base expression raised to some exponent.
+ Retourne le résultat de l'élévation à la puissance exposant ##//rhs//## d'une valeur de base ##//lhs//##.
{{fbdoc item="desc"}}
- **##Operator ^## (Exponentiate)** returns the result of a base expression (##//lhs//##) raised to some exponent expression (##//rhs//##). ##**^**## works with double float numbers only, operands of other types will be converted into double before performing the exponentiation. Exponent of a fractional value (##1""/""//n//##) is the same as taking ##//n//##th root from the base, for example, ##2 **^** (1/3)## is the cube root of 2.
+ L'**##Opérateur ^## (Puissance)** retourne l'élévation à la puissance exposant ##//rhs//## d'une valeur de base ##//lhs//##.. ##**^**## travaille seulement avec des nombres double à virgule, les opérandes d'autres types seront convertis en double avant d'effectuer l'élévation à la puissance. Un exposant de valeur fractionaire (##1///n//##) est le même que la racine ##//n//##-ième de la base, par exemple, ##2 **^** (1/3)## est la racine cubique de 2.
- Neither of the operands are modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- Note: this operation is not guaranteed to be fully accurate, and there may be some inaccuracy in the least significant bits of the number. This is particularly noticeable when the result is expected to be an exact number: in these cases, you may find the result is out by a very small amount. For this reason, you should never assume that an exponentiation expression will be exactly equal to the value you expect.
- This also means that you should be wary of using rounding methods such as ##[[KeyPgInt Int]]## and ##[[KeyPgFix Fix]]## on the result: if you expect the result to be an integer value, then there's a chance that it might be slightly lower, and will round down to a value that is one less than you would expect.
+ Note: cette opération n'est pas garantie d'être tout à fait exacte, et il peut y avoir une certaine imprécision dans les bits les moins significatifs du nombre. Ceci est particulièrement visible lorsque le résultat devrait être un nombre exact: dans ces cas, vous pouvez trouver le résultat est erroné par une très petite quantité. Pour cette raison, il ne faut jamais présumer que le résultat de l'élévation à la puissance sera exactement égal à la valeur que vous attendez.
+ Cela signifie également que vous devez être prudent dans l'utilisation de méthodes telles que l'arrondissement ##[[KeyPgInt Int]]## et ##[[KeyPgFix Fix]]## sur le résultat: si vous espérez que le résultat soit une valeur entière, alors il y a des chances qu'il soit être légèrement inférieur, et sera arrondi à une valeur qui est un de moins que ce vous attendez.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/exponent.bas"}}%%(freebasic)
@@ -35,7 +35,7 @@ PRINT n;" squared is "; n ^ 2
PRINT "The fifth root of "; n;" is "; n ^ 0.2
SLEEP
%%
-Output:
+Affiche:
%%
Please enter a positive number: 3.4
@@ -44,12 +44,12 @@ The fifth root of 3.4 is 1.27730844458754
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpFor.wakka b/fbdocs/manual/cache/KeyPgOpFor.wakka
index 33032b9a6b..4437ddebff 100644
--- a/fbdocs/manual/cache/KeyPgOpFor.wakka
+++ b/fbdocs/manual/cache/KeyPgOpFor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator For (iteration)"}}----
-Declares or defines operators used by a ##[[KeyPgFornext For...Next]]## loop with user defined type variables
+Déclare ou définit les opérateurs utilisés par une boucle ##[[KeyPgFornext For...Next]]## avec des variables de type défini par l'utilisateur
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] } //typename//
@@ -15,32 +15,32 @@ Declares or defines operators used by a ##[[KeyPgFornext For...Next]]## loop wit
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##
+ nom du ##[[KeyPgType Type]]##, de la ##[[KeyPgClass Class]]## ou de l'##[[KeyPgUnion Union]]##
##//stp//##, ##//step_value//##
- a ##//typename//## object used as an incremental value
+ un objet ##//typename//## utilisé comme valeur pour l'incrémentation
##//iterator//##
- a ##//typename//## object used as an iterator
+ un objet ##//typename//## utilisé comme itérateur
##//end_value//##
- a ##//typename//## object used as a loop-terminating value
+ un objet ##//typename//## utilisé comme valeur déterminant la fin de la boule
##//start_value//##
- a ##//typename//## object used to copy construct or assign to the iterator initially
+ un objet ##//typename//## utilisé pour la copie de construction ou à assigner à l'itérateur initial
{{fbdoc item="desc"}}
- ##**Operator For**##, ##[[KeyPgOpNext Operator Next]]## and ##[[KeyPgOpStep Operator Step]]## can be overloaded in user-defined type definitions to allow objects of that type to be used as iterators and step values in ##[[KeyPgFornext For...Next]]## loops.
+ ##**Opérateur For**##, ##[[KeyPgOpNext Opérateur Next]]## et ##[[KeyPgOpStep Opérateur Step]]## peuvent être surchargés dans des définitions de type par l'utilisateur pour allouer des objets de ce type comme itérateur ou valeur d'incrémentation, dans les boucles ##[[KeyPgFornext For...Next]]##.
- ##**Operator For**## is called immediately after copy constructing or assigning to the iterator object, and allows the object to perform any additional initialization needed in preparation for the loop.
+ ##**Opérateur For**## est appelé immédiatement après la copie de construction ou assigné à l'objet itérateur et permet à l'objet d'effectuer toute initialisation supplémentaire nécessaire à la préparation de la boucle.
- The first version of ##**Operator For**## is used if no step value is given in the ##[[KeyPgFornext For...Next]]## statement. If a step value is given, the second version is used and is passed the step value.
+ La première version de ##**Opérateur For**## est utilisée si aucune valeur d'incrémentation n'est donné dans la déclaration ##[[KeyPgFornext For...Next]]##. Si une valeur d'incrémentation est donnée, la seconde version est utilisée et une valeur d'incrémentation est passée.
{{fbdoc item="ex"}}
- See the [[KeyPgOpStep Operator Step]] examples.
+ Voir les exemples de [[KeyPgOpStep Opérateur Step]].
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- - ##[[KeyPgOpNext Operator Next]]##
- - ##[[KeyPgOpStep Operator Step]]##
+ - ##[[KeyPgOpNext Opérateur Next]]##
+ - ##[[KeyPgOpStep Opérateur Step]]##
- ##[[KeyPgFornext For...Next]]##
{{fbdoc item="back" value="CatPgOpIterating|Iterating Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
diff --git a/fbdocs/manual/cache/KeyPgOpGreaterThan.wakka b/fbdocs/manual/cache/KeyPgOpGreaterThan.wakka
index 92a38a9371..c33e2e6926 100644
--- a/fbdocs/manual/cache/KeyPgOpGreaterThan.wakka
+++ b/fbdocs/manual/cache/KeyPgOpGreaterThan.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator > (Greater than)"}}----
-Compares an expression greater than another expression
+Compare une expression à une autre pour savoir si elle lui est supérieure
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **>** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,22 +22,22 @@ Compares an expression greater than another expression
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if the left-hand side expression is greater than the right-hand side expression, or zero (0) if less than or equal.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si l'expression côté gauche est supérieure à celle de droite ou zéro (0) si elle est inférieure ou égale.
{{fbdoc item="desc"}}
- **##Operator >## (Greater than)** is a binary operator that compares an expression greater than another expression and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur >## (Supérieur à)** est un opérateur binaire qui compare une expression à une autre pour savoir si elle est plus grande et retourne un résultat - une valeur boléenne sous la forme d'un ##[[KeyPgInteger Entier (Integer)]]##: negatif (-1) si c'est vrai et zéro (0) si c'est faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi bien des types définis par l'utilisateur.
{{fbdoc item="ex"}}
- ##[[KeyPgOpLessThanOrEqual Operator <=]]## (Less than or equal) is complement to **##Operator >## (Greater than)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'##[[KeyPgOpLessThanOrEqual Opérateur <=]]## (Inférieur ou égal) est complémentaire à l'**##Opérateur >## (Supérieur à)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/greater-than.bas"}}%%(freebasic)
if (420 > 69) then print "(420 > 69) is true."
@@ -45,12 +45,12 @@ Compares an expression greater than another expression
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpLessThanOrEqual Operator <=]]## (Less than or equal)
+ - ##[[KeyPgOpNotEqual Opérateur <=]]## (Inférieur ou égal)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpGreaterThanOrEqual.wakka b/fbdocs/manual/cache/KeyPgOpGreaterThanOrEqual.wakka
index b4d12501c0..51cf373e41 100644
--- a/fbdocs/manual/cache/KeyPgOpGreaterThanOrEqual.wakka
+++ b/fbdocs/manual/cache/KeyPgOpGreaterThanOrEqual.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator >= (Greater than or Equal)"}}----
-Compares an expression greater than or equal to another expression
+Compare une expression à une autre pour savoir si elle lui est supérieure ou égale
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **>=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,22 +22,22 @@ Compares an expression greater than or equal to another expression
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if the left-hand side expression is greater than or equal to the right-hand side expression, or zero (0) if less than.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si l'expression côté gauche est supérieure ou égale à celle de droite ou zéro (0) si elle est inférieure.
{{fbdoc item="desc"}}
- **##Operator >=## (Greater than or Equal)** is a binary operator that compares an expression greater than or equal to another expression and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur >=## (Supérieur ou égal à)** est un opérateur binaire qui compare une expression à une autre pour savoir si elle est plus grande ou égale et retourne le résultat - une valeur boléenne sous la forme d'un ##[[KeyPgInteger Entier (Integer)]]##: negatif (-1) si c'est vrai et zéro (0) si c'est faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi bien des types définis par l'utilisateur.
{{fbdoc item="ex"}}
- ##[[KeyPgOpLessThan Operator <]]## (Less than) is complement to **##Operator >=## (Greater than or Equal)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'##[[KeyPgOpLessThan Opérateur <]]## (Inférieur à) est complémentaire à l'**##Opérateur >=## (Supérieur ou égal à)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/greater-than-or-equal.bas"}}%%(freebasic)
if (420 >= 69) then print "(420 >= 69) is true."
@@ -45,12 +45,12 @@ Compares an expression greater than or equal to another expression
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpLessThan Operator <]]## (Less than)
+ - ##[[KeyPgOpNotEqual Opérateur <]]## (Inférieur à)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpImp.wakka b/fbdocs/manual/cache/KeyPgOpImp.wakka
index 6f78895a53..b202264d55 100644
--- a/fbdocs/manual/cache/KeyPgOpImp.wakka
+++ b/fbdocs/manual/cache/KeyPgOpImp.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Imp (Implication)"}}----
-Returns the bitwise-and (implication) of two numeric values
+Retourne la manipulation de bits implication de deux valeurs numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Imp** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
@@ -9,31 +9,31 @@ Returns the bitwise-and (implication) of two numeric values
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Expression côté gauche.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Expression côté droit.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- A numeric type (varies with ##//T1//## and ##//T2//##).
+ Un type numérique (varie avec ##//T1//## et ##//T2//##).
-{{fbdoc item="ret"}}
- Returns the bitwise-implication of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits implication de deux opérandes.
{{fbdoc item="desc"}}
- This operator returns the bitwise-implication of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.
+ Cet opérateur retourne la manipulation de bits implication de ses opérandes, une opération logique qui donne une valeur avec ses bits positionnés en fonction des bits des opérandes.
- The truth table below demonstrates all combinations of a boolean-implication operation:
+ La table de vérité ci-dessous donne toutes les combinaisons d'une opération d'implication booléenne:
- {{table columns="3" cellpadding="2" cells="Lhs Bit;Rhs Bit;Result;0;0;1;1;0;0;0;1;1;1;1;1"}}
+ {{table columns="" cellpadding="2" cells="Bit côté gauche;Bit côté droit;Résultat;0;0;1;1;0;0;0;1;1;1;1;1;
- No short-circuiting is performed - both expressions are always evaluated.
+ Aucun court-circuit n'est possible - les deux expressions sont toujours évaluées.
- The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.
+ Le type de la valeur retournée dépend des types des valeurs passées. Les valeurs ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte UByte]]## et à virgule flottante sont, en premier, converties en ##[[KeyPgInteger Integer]]##. Si les types des deux côtés diffèrent seulement par leur manque de signe, le type de retour sera celui du côté gauche (##//T1//##), autrement, le plus grand des deux est retourné.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/imp-bitwise.bas"}}%%(freebasic)
@@ -44,12 +44,12 @@ c = a imp b '' c = &b11110101
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpIntegerDivide.wakka b/fbdocs/manual/cache/KeyPgOpIntegerDivide.wakka
index ecea54806b..76840ee6c0 100644
--- a/fbdocs/manual/cache/KeyPgOpIntegerDivide.wakka
+++ b/fbdocs/manual/cache/KeyPgOpIntegerDivide.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator \ (Integer divide)"}}----
-Divides two ##[[KeyPgInteger Integer]]## expressions
+Divise deux expressions ##[[KeyPgInteger Integer (=entier)]]##
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **\** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,21 +9,21 @@ Divides two ##[[KeyPgInteger Integer]]## expressions
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side dividend expression.
+ Le dividende, argument côté gauche.
##//rhs//##
- The right-hand side divisor expression.
+ Le diviseur, argument côté droit.
-{{fbdoc item="ret"}}
- Returns the quotient of an ##[[KeyPgInteger Integer]]## dividend and divisor.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le quotient d'un dividende et d'un diviseur ##[[KeyPgInteger Integer (=entier)]]##.
{{fbdoc item="desc"}}
- **##Operator \## (Integer division)** divides two ##[[KeyPgInteger Integer]]## expressions and returns the result. Float numeric values are converted to ##[[KeyPgInteger Integer]]## by rounding up or down, and the fractional part of the resulting quotient is truncated.
+ **##Operator \## (Division entière)** divise deux expressions ##[[KeyPgInteger Integer (=entier)]]## et retourne le résultat. Les valeurs nuériques à virgule sont converties en ##[[KeyPgInteger Integer (=entier)]]## en arrondissant par excès ou par défaut, et la partie décimale du quotient résultant est tronquée.
- If the divisor (##//rhs//##) is zero (##0##), a division by zero error (crash) will be raised.
+ Si le diviseur (##//rhs//##) est zéro (##0##), une erreur "division par zéro" (plantage!) est affichée.
- Neither of the operands are modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/integer-divide.bas"}}%%(freebasic)
@@ -35,7 +35,7 @@ n = 7 \ 2.4 '' => 7 \ 2 => 3.5 => 3
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
0
2
@@ -43,14 +43,14 @@ Output:
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[KeyPgOpDivide Operator \ (Floating-point divide)]]
- - [[KeyPgOpModulus Operator Mod (Modulus)]]
- - [[CatPgMath Mathematical Functions]]
+ - [[KeyPgOpDivide Opérateur \ (Division à virgule)]]
+ - [[KeyPgOpModulus Opérateur Mod (Modulo)]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpLessThan.wakka b/fbdocs/manual/cache/KeyPgOpLessThan.wakka
index 1f21b9b100..b70f6e0e07 100644
--- a/fbdocs/manual/cache/KeyPgOpLessThan.wakka
+++ b/fbdocs/manual/cache/KeyPgOpLessThan.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator < (Less than)"}}----
-Compares an expression less than another expression
+Compare une expression à une autre pour savoir si elle lui est inférieure
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **<** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,19 +22,19 @@ Compares an expression less than another expression
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if the left-hand side expression is less than the right-hand side expression, or zero (0) if greater than or equal.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si l'expression côté gauche est inférieure à celle de droite ou zéro (0) si elle est supérieure ou égale.
{{fbdoc item="desc"}}
- **##Operator <## (Less than)** is a binary operator that compares two expressions for inequality and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur <##** (Inférieur à) est un opérateur binaire qui compare une expression à une autre pour savoir si elle est plus petite et retourne un résultat - une valeur boléenne sous la forme d'un ##[[KeyPgInteger Entier (Integer)]]##: negatif (-1) si c'est vrai et zéro (0) si c'est faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi bien des types définis par l'utilisateur.
{{fbdoc item="ex"}}
@@ -48,7 +48,7 @@ while (index < size)
index += 1
wend
%%
- ##[[KeyPgOpGreaterThanOrEqual Operator >=]]## (Greater than or equal) is complement to **##Operator <## (Less than)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'##[[KeyPgOpGreaterThanOrEqual Opérateur >=]]## (Supérieur ou égal à) est complémentaire à l'**##Opérateur <## (Inférieur à)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/less-than3.bas"}}%%(freebasic)
if (69 < 420) then print "(69 < 420) is true."
@@ -56,12 +56,12 @@ wend
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpGreaterThanOrEqual Operator >=]]## (Greater than or equal)
+ - ##[[KeyPgOpGreaterThanOrEqual Opérateur >=]]## (Supérieur ou égal à)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpLessThanOrEqual.wakka b/fbdocs/manual/cache/KeyPgOpLessThanOrEqual.wakka
index 97f62fb982..9a628160e4 100644
--- a/fbdocs/manual/cache/KeyPgOpLessThanOrEqual.wakka
+++ b/fbdocs/manual/cache/KeyPgOpLessThanOrEqual.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator <= (Less than or Equal)"}}----
-Compares an expression less than or equal to another expression
+Compare une expression à une autre pour savoir si elle lui est inférieure ou égale
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **<=** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,22 +22,22 @@ Compares an expression less than or equal to another expression
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if the left-hand side expression is less than or equal to the right-hand side expression, or zero (0) if greater than.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si l'expression côté gauche est inférieure ou égale à celle de droite ou zéro (0) si elle est supérieure.
{{fbdoc item="desc"}}
- **##Operator <=## (Less than or Equal)** is a binary operator that compares an expression less than or equal to another expression and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur <=## (Inférieur ou égal à)** est un opérateur binaire qui compare une expression à une autre pour savoir si elle lui est inférieure ou égale et retourne un résultat - une valeur boléenne sous la forme d'un ##[[KeyPgInteger Entier (Integer)]]##: negatif (-1) si c'est vrai et zéro (0) si c'est faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi bien des types définis par l'utilisateur.
{{fbdoc item="ex"}}
- ##[[KeyPgOpGreaterThan Operator >]]## (Greater than) is complement to **##Operator <=## (Less than or Equal)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'**##Opérateur >]]##** (Supérieur à) est complémentaire à l'**##Opérateur <=## (Inférieur ou égal)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/less-than-or-equal.bas"}}%%(freebasic)
if (69 <= 420) then print "(69 <= 420) is true."
@@ -45,12 +45,12 @@ Compares an expression less than or equal to another expression
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpGreaterThan Operator >]]## (Greater than)
+ - ##[[KeyPgOpGreaterThan Opérateur >]]## (Supérieur à)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpLet.wakka b/fbdocs/manual/cache/KeyPgOpLet.wakka
index 1c084cda14..fc548b6722 100644
--- a/fbdocs/manual/cache/KeyPgOpLet.wakka
+++ b/fbdocs/manual/cache/KeyPgOpLet.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Let (Assign)"}}----
-Indicates the assignment operator when overloading [[KeyPgOpAssignment Operator = (Assignment)]]
+Indique l'opérateur d'affectation en cas de surcharge [[KeyPgOpAssignment Operator = (Assignment)]]
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] | [[KeyPgEnum Enum]] } //typename//
@@ -13,16 +13,16 @@ Indicates the assignment operator when overloading [[KeyPgOpAssignment Operator
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgUnion Union]]##, or ##[[KeyPgEnum Enum]]##
+ Nom de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgUnion Union]]##, ou ##[[KeyPgEnum Enum]]##
##//lhs//##
- The variable to assign to.
+ La variable à affecter.
##//rhs//##
- The value to assign.
+ La valeur à affecter.
{{fbdoc item="desc"}}
- ##**Let**## is used to overload the ##[[KeyPgOpAssignment Operator = (Assignment)]]## operator and to distinguish it from the comparison operator ##[[KeyPgOpEqual Operator = (Equal)]]##.
+ ##**Let**## est utilisé pour surcharger l'opérateur ##[[KeyPgOpAssignment Operator = (Affectation)]]## et pour le distinguer de l'opérateur de comparaison ##[[KeyPgOpEqual Operator = (Egal)]]##.
- ##//lhs// **=** //rhs//## will assign the ##//rhs//## to ##//lhs//## by invoking the **Let** operator procedure defined int ##//typename//##.
+ ##//lhs// **=** //rhs//## attribuera le terme de droite ##//rhs//## au terme de gauche ##//lhs//## en invoquant la procédure d'opérateur **Let** définie dans ##//typename//##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/let.bas"}}%%(freebasic)
@@ -50,7 +50,7 @@ print
print "b.x = "; b.x
print "b.y = "; b.y
%%
-Output:
+Affiche:
%%
a.x = 5
a.y = 7
@@ -60,16 +60,17 @@ b.y = 7
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, this operator cannot be overloaded.
- - In the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects, an assignment expression can be preceded by the ##[[KeyPgLet Let]]## keyword.
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, cet opérateur ne peut être surchargé
+ - Dans les dialectes //[[CompilerOptlang -lang qb]]// et //[[CompilerOptlang -lang fblite]]//, une expression d'affectation peut être précédée par le mot-clef ##[[KeyPgLet Let]]## keyword.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgLet Let]]##
- - ##[[KeyPgOpLetlist Operator Let() (Assignment)]]##
- - ##[[KeyPgOpAssignment Operator = (Assignment)]]##
- - ##[[KeyPgOpEqual Operator = (Equal)]]##
+ - ##[[KeyPgOpLetlist Opérateur Let() (Affectation)]]##
+ - ##[[KeyPgOpAssignment Opérateur = (Affectation)]]##
+ - ##[[KeyPgOpEqual Opérateur = (Egal)]]##
-{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
+{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
+
diff --git a/fbdocs/manual/cache/KeyPgOpLetlist.wakka b/fbdocs/manual/cache/KeyPgOpLetlist.wakka
index 1726cd75cb..02e8656fbd 100644
--- a/fbdocs/manual/cache/KeyPgOpLetlist.wakka
+++ b/fbdocs/manual/cache/KeyPgOpLetlist.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="Operator LET() (Assignment)"}}----
-Assigns fields of a user defined type to a list of variables
+Assigne les champs d'un type défini par l'utilisateur à une liste de variables
{{fbdoc item="syntax"}}##
**Let**( //variable1// [, //variable2// [, ... ]] ) = //UDT_var//
##
{{fbdoc item="param"}}
##//variable1// [, //variable2// [, ... ]]##
- Comma separated list of variables to receive the values of the ##//UDT//## variable's fields.
+ Liste de variables séparées par des virgules pour recevoir les valeurs des champs de la variable de type défini par l'utilisateur.
##//UDT_var//##
- A user defined type variable.
+ une variable de type défini par l'utilisateur.
{{fbdoc item="desc"}}
- Assigns the values from the ##//UDT_var//## variable's fields to the list of variables.
+ Affecte les valeurs des champs de la variable ##//UDT_var//## à la liste des variables.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/let-list.bas"}}%%(freebasic)
@@ -31,21 +31,21 @@ Let( x, y ) = a
Print "x = "; x
Print "y = "; y
%%
-Output:
+Affiche:
%%
x = 5
y = 7
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Utilisable seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgLet Let]]##
- - ##[[KeyPgOpAssignment Operator = (Assignment)]]##
- - ##[[KeyPgOpLet Operator Let (Assignment)]]##
+ - ##[[KeyPgOpAssignment Opérateur = (Affectation)]]##
+ - ##[[KeyPgOpLet Opérateur Let (Affectation)]]##
{{fbdoc item="back" value="CatPgOpAssignment|Assignment Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpMemberAccess.wakka b/fbdocs/manual/cache/KeyPgOpMemberAccess.wakka
index 0a97c3d7f9..4405875bd9 100644
--- a/fbdocs/manual/cache/KeyPgOpMemberAccess.wakka
+++ b/fbdocs/manual/cache/KeyPgOpMemberAccess.wakka
@@ -1,31 +1,31 @@
{{fbdoc item="title" value="Operator . (Member access)"}}----
-Returns a reference to a member from a reference to an object
+Renvoie une référence à un membre d'une référence à un objet
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **.** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T// ) [[KeyPgAs as]] //U//
##
-~&//Note that **##Operator .## (Member access)** returns a reference. As of 02.27.07, ""FreeBASIC"" syntax does not support returning references. When it does, this syntax will need to be changed.//
+//Notez que **##Opérateur .## (Accès membre)** renvoie une référence. En date du 27/02/07, la syntaxe FreeBASIC ne supporte pas le retour de références.//
{{fbdoc item="usage"}}##
//result// = //lhs// **.** //rhs//
##
{{fbdoc item="param"}}
##//lhs//##
- An object.
+ Un objet.
##//T//##
- A user-defined type.
+ Un type défini par l'utilisateur.
##//rhs//##
- The name of a member to access.
+ Le nom du membre auquel on veut accéder.
##//U//##
- The type that ##//rhs//## refers to.
+ Le type auquel ##//rhs//## se réfère.
-{{fbdoc item="ret"}}
- Returns a reference to the member specified by ##//rhs//##.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie une référence au membre spécifié par ##//rhs//##.
{{fbdoc item="desc"}}
- **##Operator .## (Member access)** returns a reference to a member of an object.
+ **##Opérateur .## (Accès membre)** renvoie une référence à un membre d'un objet.
- **##Operator .## (Member access)** can also be used to access members of an implicit object inside a ##[[KeyPgWith With..End With]]## block.
+ **##Opérateur .## (Accès membre)** peut également être utilisé pour accéder aux membres d'un objet implicite dans un bloc ##[[KeyPgWith With..End With]]##.
{{fbdoc item="ex"}}
@@ -46,15 +46,15 @@ end with
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpPtrMemberAccess Operator -> (Pointer to member access)]]##
- - ##[[KeyPgOpAt Operator @ (Address of)]]##
- - ##[[KeyPgOpValueOf Operator * (Value of)]]##
+ - ##[[KeyPgOpPtrMemberAccess Opérateur -> (Pointeur vers accès membre)]]##
+ - ##[[KeyPgOpAt Opérateur @ (Adresse de)]]##
+ - ##[[KeyPgOpValueOf Opérateur * (Valeur de)]]##
- ##[[KeyPgWith With..End With]]##
{{fbdoc item="back" value="CatPgOpTypeclass|Type or Class Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
diff --git a/fbdocs/manual/cache/KeyPgOpModulus.wakka b/fbdocs/manual/cache/KeyPgOpModulus.wakka
index c97fdff431..8ef89cde0e 100644
--- a/fbdocs/manual/cache/KeyPgOpModulus.wakka
+++ b/fbdocs/manual/cache/KeyPgOpModulus.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Mod (Modulus)"}}----
-Finds the remainder from a division operation
+Trouve le reste d'une opération de division
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Mod** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,19 +9,19 @@ Finds the remainder from a division operation
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side dividend expression.
+ Argument de gauche, le dividende.
##//rhs//##
- The right-hand side divisor expression.
+ Argument de droite, le diviseur.
-{{fbdoc item="ret"}}
- Returns the remainder of a division operation.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le reste d'une opération de division.
{{fbdoc item="desc"}}
- **##Operator Mod## (Modulus)** divides two ##[[KeyPgInteger Integer]]## expressions and returns the remainder. Numeric values are converted to ##[[KeyPgInteger Integer]]## by rounding up or down.
+ L'**##Operator Mod## (Modulo)** divise deux nombres ##[[KeyPgInteger Integer (entier)]]## et retourne le reste. Les valeurs numériques sont converties en ##[[KeyPgInteger Integer (entier)]]## en arrondissant par excès ou par défaut.
- Neither of the operands are modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/mod.bas"}}%%(freebasic)
@@ -29,25 +29,25 @@ PRINT 47 MOD 7
PRINT 5.6 MOD 2.1
PRINT 5.1 MOD 2.8
%%
-Output:
+Affiche:
%%
5
0
2
%%
-This is because:
- - 47 divided by 7 gives a remainder of 5
- - 5.6 is rounded to 6 while 2.1 is rounded to 2. This makes the problem 6 MOD 2 which means 6 divided by 2 which gives a remainder of 0
- - 5.1 is rounded to 5 while 2.8 is rounded to 3. This makes the problem 5 MOD 3 which means 5 divided by 3 which gives a remainder of 2
+On obtient ces résultats parce que:
+ - 47 divisé par 7 donne le reste 5
+ - 5.6 est arrondi à 6 alors que 2.1 est arrondi à 2. Cela donne le problème 6 MOD 2 ce qui signifie que 6 divisé par 2 donne le reste 0
+ - 5.1 est arrondi à 5 alors que 2.8 est arrondi à 3. Cela donne le problème 5 MOD 3 ce qui signifie que 5 divisé par 3 donne le reste 2
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpMultiply.wakka b/fbdocs/manual/cache/KeyPgOpMultiply.wakka
index 8e4b66e14b..ca2f2d77f0 100644
--- a/fbdocs/manual/cache/KeyPgOpMultiply.wakka
+++ b/fbdocs/manual/cache/KeyPgOpMultiply.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator * (Multiply)"}}----
-Multiplies two numeric expressions
+Multiplie deux expressions numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] ***** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgByte byte]]
@@ -19,19 +19,19 @@ Multiplies two numeric expressions
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side multiplicand expression.
+ Multiplicande, argument côté gauche.
##//rhs//##
- The right-hand side multiplicand expression.
+ Multiplicande, argument côté droit.
-{{fbdoc item="ret"}}
- Returns the product of two multiplicands.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie le produit des deux multiplicandes.
{{fbdoc item="desc"}}
- **##Operator *## (Multiply)** returns the product of two multiplicands.
+ **##Operator *## (Multiplier)** renvoie le produit des deux multiplicandes.
- Neither operand is modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded to accept user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/multiply.bas"}}%%(freebasic)
@@ -40,18 +40,18 @@ n = 4 * 5
PRINT n
SLEEP
%%
-Output:
+Affichage:
%%
20
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpNegate.wakka b/fbdocs/manual/cache/KeyPgOpNegate.wakka
index 484d89bdba..9ebea3eb2a 100644
--- a/fbdocs/manual/cache/KeyPgOpNegate.wakka
+++ b/fbdocs/manual/cache/KeyPgOpNegate.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator - (Negate)"}}----
-Changes the sign of a numeric expression
+Change le signe d'une expression numérique
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **-** ( [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -11,17 +11,17 @@ Changes the sign of a numeric expression
##
{{fbdoc item="param"}}
##//rhs//##
- The right-hand side numeric expression to negate.
+ L'argument de droite de l'opération de négation.
-{{fbdoc item="ret"}}
- Returns the negative of the expression.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie la négation de l'expression.
{{fbdoc item="desc"}}
- **##Operator -## (Negate)** is a unary operator that negates the value of its operand.
+ **##Operator -## (Negation)** est un opérateur unaire qui nie la valeur de son opérande.
- The operand is not modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/negate.bas"}}%%(freebasic)
@@ -32,19 +32,19 @@ n = - n
PRINT n
SLEEP
%%
-Output:
+Affiche:
%%
-5
-65432568459
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpNew.wakka b/fbdocs/manual/cache/KeyPgOpNew.wakka
index d506da7669..1241c0a410 100644
--- a/fbdocs/manual/cache/KeyPgOpNew.wakka
+++ b/fbdocs/manual/cache/KeyPgOpNew.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator New"}}----
-Operator to dynamically allocate memory and construct data of a specified type
+Opérateur qui alloue dynamiquement de la mémoire et construit une donnée du type spécifié
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **new** ( //size// [[KeyPgAs as]] [[KeyPgUinteger uinteger]] ) [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]]
@@ -7,76 +7,78 @@ Operator to dynamically allocate memory and construct data of a specified type
##
{{fbdoc item="usage"}}##
//result// = **New** //[[DataType datatype]]//
- //or//
+ //ou//
//result// = **New** //[[DataType datatype]]// ( //initializers//, ... )
- //or//
+ //ou//
//result// = **New** //[[DataType datatype]]//**[** //count// **]**
##
{{fbdoc item="param"}}
##//size//##
- Number of bytes to allocate.
+ Nombre d'octets à allouer.
##//initializers//##
- Initial value(s) for the variable.
+ Valeur(s) pour initialiser la variable.
##//datatype//##
- Name of the data type to create.
+ Nom du type de donnée à créer.
##//count//##
- Exact number of elements to allocate.
+ Nombre exact d'éléments à allouer.
-{{fbdoc item="ret"}}
- A pointer of type [[DataType datatype]] to the newly allocated data.
+{{fbdoc item="section" value="Valeur retournée
+ Un pointeur du type [[DataType datatype]] vers la nouvelle donnée allouée.
{{fbdoc item="desc"}}
- The ##**New**## operator dynamically allocates memory and constructs a specified data type. For simple types, like integers, an initial value can be given. For types without constructors, initial values can be specified for each field. Types that have constructors can have their constructors called by ##**New**## as well. If no initializers are given, the default values for those types will be set.
+ L'opérateur ##**New**## alloue dynamiquement de la mémoire et construit une donnée du type spécifié. Pour des types simples, comme les entiers, une valeur initiale peut être attribuée. Pour des types sans constructeur(s), des valeurs initiales peuvent être spécifiées pour chaque champ. Les types qui ont des constructeurs, ceux-ci peuvent être appelés par ##**New**##. Si aucun initialiseur n'est fourni, les valeurs par défaut seront attribuées pour ces types.
- ##**New[]**## is the array-version of the ##**New**## operator and allocates enough memory for the specified number of objects. The default constructor for the type will be used to set the initial values for each item.
+ ##**New[]**## est la version pour les tableaux de l'opérateur ##**New**## et alloue suffisamment de mémoire pour le nombre d'objets spécifié. Le constructeur par défaut pour le type sera utilisé pour initialiser chacun des éléments.
- Objects created with ##**New**## must be freed with ##[[KeyPgOpDelete Delete]]##. Memory allocated with ##**New[]**## must be freed with ##**Delete[]**##, the array-version of ##[[KeyPgOpDelete Delete]]##. You cannot mix and match the different versions of the operators.
+ Les objects créés avec ##**New**## doivent être libérés avec ##[[KeyPgOpDelete Delete]]##. La mémoire allouée avec ##**New[]**## doit être libérée avec ##**Delete[]**##, la version pour les tableaux de ##[[KeyPgOpDelete Delete]]##. Vous ne pouvez pas mélanger les deux versions de l'opérateur.
- Specifying an initial value of ##[[KeyPgAny Any]]##, as in ##new datatype(any)## will allocate memory for the type, but not initialize the data. This is only valid on data types that do not have constructors.
+ Spécifier une valeur initiale ##[[KeyPgAny Any]]##, comme dans ##new datatype(any)## allouera de la mémoire pour le type, mais n'initialisera pas les données. Ceci n'est valide que pour les types qui n'ont pas de constructeur.
- Specifying an initial value of ##[[KeyPgAny Any]]##, as in ##new datatype[count]{any}## will allocate memory for the array, but not initialize the data. This is only valid on data types that do not have constructors.
+ Spécifier une valeur initiale ##[[KeyPgAny Any]]##, comme dans ##new datatype[count]{any}## allouera de la mémoire pour le tableau, mais n'initialisera pas les données. Ceci n'est valide que pour les types qui n'ont pas de constructeur.
-{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/operator/new.bas"}}%%(freebasic)
-type Rational
- as integer numerator, denominator
-end type
+ {{fbdoc item="ex"}}
-scope
+{{fbdoc item="ex"}}
+Type Rational
+As Integer numerator, denominator
+ End Type
+Scope
- ' Create and initialize a Rational, and store it's address.
- dim p as Rational ptr = new Rational(3, 4)
+' Create and initialize a Rational, and store it's address.
- print p->numerator & "/" & p->denominator
+ Dim p As Rational Ptr = New Rational(3, 4)
+ Print p->numerator & "/" & p->denominator
' Destroy the rational and give its memory back to the system.
- delete p
-end scope
+ Delete p
+ End Scope
-scope
+Scope
- ' Allocate memory for 100 integers, store the address of the first one.
- dim p as integer ptr = new integer[100]
+' Allocate memory for 100 integers, store the address of the first one.
+ Dim p As Integer Ptr = New Integer[100]
' Assign some values to the integers in the array.
- for i as integer = 0 to 99
- p[i] = i
- next
+ For i As Integer = 0 To 99
+ p[i] = i
+ Next
' Free the entire integer array.
- delete[] p
-end scope
+ Delete[] p
+ End Scope
+
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+- Utilisable seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
+ {{fbdoc item="diff"}}
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgOpDelete Delete]]##
+- ##[[KeyPgOpDelete Delete]]##
+ - ##[[KeyPgOpPlacementNew Placement New]]##
- ##[[KeyPgOpPlacementNew Placement New]]##
{{fbdoc item="back" value="CatPgOpMemory|Memory Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpNext.wakka b/fbdocs/manual/cache/KeyPgOpNext.wakka
index b368434722..9ad8712c52 100644
--- a/fbdocs/manual/cache/KeyPgOpNext.wakka
+++ b/fbdocs/manual/cache/KeyPgOpNext.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Next (Iteration)"}}----
-Determines if a ##[[KeyPgFornext For...Next]]## loop should be terminated
+Détermine si une boucle ##[[KeyPgFornext For...Next]]## est terminée
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] } //typename//
@@ -15,32 +15,32 @@ Determines if a ##[[KeyPgFornext For...Next]]## loop should be terminated
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##
+ nom du ##[[KeyPgType Type]]##, de la ##[[KeyPgClass Class]]## ou de l'##[[KeyPgUnion Union]]##
##//cond//##, ##//end_value//##
- a ##//typename//## object used as a loop-terminating value
+ un objet ##//typename//## utilisé comme valeur de fin de boucle
##//stp//##, ##//step_value//##
- a ##//typename//## object used as an incremental value
+ un objet ##//typename//## utilisé comme valeur d'incrémentation
##//iterator//##
- a ##//typename//## object used as an iterator
+ un objet ##//typename//## utilisé comme itérateur
##//start_value//##
- a ##//typename//## object used to copy construct or assign to the iterator initially
+ un objet ##//typename//## utilisé pour copie de construction ou à assigner à l'itérateur initialement
{{fbdoc item="desc"}}
- ##[[KeyPgOpFor Operator For]]##, ##**Operator Next**## and ##[[KeyPgOpStep Operator Step]]## can be overloaded in user-defined type definitions to allow objects of that type to be used as iterators and step values in ##[[KeyPgFornext For...Next]]## loops.
+ ##[[KeyPgOpFor Opérateur For]]##, ##**Opérateur Next**## et ##[[KeyPgOpStep Opérateur Step]]## peuvent être surchargés dans un type défini par l'utilisateur pour permettre à des définitions d'objets de ce type d'être utilisés comme itérateurs et valeurs d'incrémentation dans des boucles ##[[KeyPgFornext For...Next]]##.
- ##**Operator Next**## is called every time the iterator needs to be checked against the end value. This happens immediately after the call to its ##[[KeyPgOpFor Operator For]]##, and immediately after any calls to its ##[[KeyPgOpStep Operator Step]]##. ##**Operator Next**## should return zero (0) if the loop should be terminated, or non-zero if the loop should continue iterating. The first time ##**Operator Next**## is called, no statements in the ##[[KeyPgFornext For...Next]]## body, if any, have been executed yet.
+ L'##**Opérateur Next**## est appelé chaque fois que l'itérateur doit être vérifié par rapport à la valeur de fin. Ceci se passe immédiatement après l'appel à son ##[[KeyPgOpFor Opérateur For]]## et immédiatement après les appels à son ##[[KeyPgOpStep Opérateur Step]]##. ##**Opérateur Next**## retournera zéro (0) si la boucle doit se terminer ou non-zéro si la boucle doit continuer l'itération. La première fois que l'##**Opérateur Next**## est appelé, aucune déclaration du corps de ##[[KeyPgFornext For...Next]]##, si elles existent, ne sont encore exécutées.
- The first version of ##**Operator Next**## is used if no step value is given in the ##[[KeyPgFornext For...Next]]## statement. If a step value is given, the second version is used and is passed the step value.
+ La première version de ##**Opérateur Next**## est utilisée si aucune valeur d'incrémentation n'a été donnée dans la déclaration de ##[[KeyPgFornext For...Next]]##. Si une valeur d'incrémentation est donnée, la seconde version est utilisée et la valeur d'incrémentation est passée.
{{fbdoc item="ex"}}
- See the [[KeyPgOpStep Operator Step]] examples.
+ Voir les exemples de [[KeyPgOpStep Opérateur Step]].
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- - ##[[KeyPgOpFor Operator For]]##
- - ##[[KeyPgOpStep Operator Step]]##
+ - ##[[KeyPgOpFor Opérateur For]]##
+ - ##[[KeyPgOpStep Opérateur Step]]##
- ##[[KeyPgFornext For...Next]]##
{{fbdoc item="back" value="CatPgOpIterating|Iterating Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpNot.wakka b/fbdocs/manual/cache/KeyPgOpNot.wakka
index b19606403f..06566c68b1 100644
--- a/fbdocs/manual/cache/KeyPgOpNot.wakka
+++ b/fbdocs/manual/cache/KeyPgOpNot.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Not (Complement)"}}----
-Returns the bitwise-not (complement) of a numeric value
+Retourne la manipulation de bits (complément) d'une valeur numérique
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Not** ( [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -14,21 +14,21 @@ Returns the bitwise-not (complement) of a numeric value
##
{{fbdoc item="param"}}
##//rhs//##
- The right-hand side expression.
+ Le côté droit de l'expression.
##//T//##
- Any numeric type.
+ Un type numérique.
-{{fbdoc item="ret"}}
- Returns the bitwise-complement of its operand.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits-complément de son opérande.
{{fbdoc item="desc"}}
- This operator returns the bitwise-complement of its operand, a logical operation that results in a value with bits set depending on the bits of the operand.
+ Cet opérateur retourne la manipulation de bits-complément de son opérande, une opéation logique dont le résultat est une valeur dont les bits mis à dépendent des bits de son opérande.
- The truth table below demonstrates all combinations of a boolean-complement operation:
+ La table de vérité ci-dessous montre toutes les combinaisons d'une opération booléenne de complément:
- {{table columns="2" cellpadding="2" cells="Rhs Bit;Result;0;1;1;0"}}
+ {{table columns="" cellpadding="2" cells="Bit côté droit;Résultat;0;1;1;0;
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/not-bitwise.bas"}}%%(freebasic)
@@ -57,12 +57,12 @@ IF NOT numeric_value2 = 25 THEN PRINT "Numeric_Value2 is not equal to 25"
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Table de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpNotEqual.wakka b/fbdocs/manual/cache/KeyPgOpNotEqual.wakka
index 5161c443ad..ebaf58d72a 100644
--- a/fbdocs/manual/cache/KeyPgOpNotEqual.wakka
+++ b/fbdocs/manual/cache/KeyPgOpNotEqual.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator <> (Not equal)"}}----
-Compares two expressions for inequality
+Compare deux expressions et vérifie leur inégalité
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **<>** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -22,19 +22,19 @@ Compares two expressions for inequality
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to compare to.
+ L'expression du côté gauche à comparer.
##//rhs//##
- The right-hand side expression to compare to.
+ L'expression du côté droit à comparer.
##//T//##
- Any pointer type.
+ N'importe quel type de pointeur.
-{{fbdoc item="ret"}}
- Returns negative one (-1) if expressions are not equal, or zero (0) if equal.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une valeur négative (-1) si les expressions ne sont pas égales ou zéro (0) si égales.
{{fbdoc item="desc"}}
- **##Operator <>## (Not equal)** is a binary operator that compares two expressions for inequality and returns the result - a boolean value in the form of an ##[[KeyPgInteger Integer]]##: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
+ L'**##Opérateur <>## (Not equal)** est un Opérateur binaire qui compare deux expressions pour vérifier leur inégalité et retourne le résultat - une valeur booléenne sous forme d'un ##[[KeyPgInteger Entier (Integer)]]##: négative (-1) pour vrai et zéro (0) pour faux. Les arguments ne sont en aucun cas modifiés.
- This operator can be overloaded to accept user-defined types as well.
+ Cet opérateur peut être surchargé pour accepter aussi des types définis par l'utilisateur.
{{fbdoc item="ex"}}
@@ -50,7 +50,7 @@ If (i <> j) Then
Print "error: " & i & " does not equal " & j
End If
%%
- ##[[KeyPgOpEqual Operator =]]## (Equal) is complement to **##Operator <>## (Not equal)**, and is functionally identical when combined with ##[[KeyPgOpNot Operator Not]]## (Bit-wise Complement).
+ L'##[[KeyPgOpEqual Opérateur =]]## (Egal) est complémentaire de l'**##Opérateur <>## (Non égal)** et est fonctionnellement identique si combiné avec l'##[[KeyPgOpNot Opérateur Not]]## (Bit-wise Complement).
{{fbdoc item="filename" value="examples/manual/operator/not-equal2.bas"}}%%(freebasic)
if (69 <> 420) then print "(420 <> 420) is true."
@@ -58,12 +58,12 @@ End If
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - none
+ - Aucune
{{fbdoc item="see"}}
- - ##[[KeyPgOpEqual Operator =]]## (Equal)
+ - ##[[KeyPgOpEqual Opérateur =]]## (Egal)
{{fbdoc item="back" value="CatPgOpConditional|Relational Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpOr.wakka b/fbdocs/manual/cache/KeyPgOpOr.wakka
index b82e2c9d33..964dfd65dd 100644
--- a/fbdocs/manual/cache/KeyPgOpOr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpOr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator OR (Inclusive Disjunction)"}}----
-Returns the bitwise-or (inclusive disjunction) of two numeric values
+Retourne la manipulation de bits (disjonction inclusive) de deux valeurs numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Or** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
@@ -9,31 +9,31 @@ Returns the bitwise-or (inclusive disjunction) of two numeric values
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Le côté gauche de l'expression.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Le côté droit de l'expression.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- A numeric type (varies with ##//T1//## and ##//T2//##).
+ Un type numérique (varie avec ##//T1//## et ##//T2//##).
-{{fbdoc item="ret"}}
- Returns the bitwise-disjunction of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits (disjonction inclusive) des deux opérandes.
{{fbdoc item="desc"}}
- This operator returns the bitwise-disjunction of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.
+ Cet opérateur retourne la manipulation de bits disjonction-inclusive de ses opérandes, une opération logique dont le résultat est une valeur avec ses bits positionnés en fonction des bits de ses opérandes.
- The truth table below demonstrates all combinations of a boolean-disjunction operation:
+ La table de vérité ci-dessous montre toutes les combinaisons de l'opération booléenne de disjonction inclusive:
- {{table columns="3" cellpadding="2" cells="Lhs Bit;Rhs Bit;Result;0;0;0;1;0;1;0;1;1;1;1;1"}}
+ {{table columns="" cellpadding="2" cells="Bit côté gauche;Bit côté droit;Résultat;0;0;0;1;0;1;0;1;1;1;1;1;
- No short-circuiting is performed - both expressions are always evaluated.
+ Aucun court-circuit n'est possible - les deux expressions sont toujours évaluées.
- The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.
+ Le type de retour dépend des types des valeurs passées. Les valeurs de type ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte UByte]]## et à virgule flottante sont en premier converties en ##[[KeyPgInteger Integer]]##. Si les types des deux côtés diffèrent seulement par leur signe, alors le type de retour est le même que celui du côté gauche (##//T1//##), autrement, le plus large des deux types est retourné.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/or-bitwise.bas"}}%%(freebasic)
@@ -60,12 +60,12 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpOrElse.wakka b/fbdocs/manual/cache/KeyPgOpOrElse.wakka
index 61542d78c5..d33fa2aff6 100644
--- a/fbdocs/manual/cache/KeyPgOpOrElse.wakka
+++ b/fbdocs/manual/cache/KeyPgOpOrElse.wakka
@@ -1,39 +1,39 @@
{{fbdoc item="title" value="Operator ORELSE (Short Circuit Inclusive Disjunction)"}}----
-Returns the short circuit-or (Inclusive Disjunction) of two numeric values
+Retourne le circuit-court (Disjonction Inclusive) de deux valeurs numériques
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare declare]] [[KeyPgOperator operator]] **""OrElse""** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
+ [[KeyPgDeclare Declare]] [[KeyPgOperator Operator]] **OrElse** ( [[KeyPgByref ByRef]] //lhs// [[KeyPgAs As]] //T1//, [[KeyPgByref ByRef]] //rhs// [[KeyPgAs As]] //T2// ) [[KeyPgAs As]] //Ret//
##
{{fbdoc item="usage"}}##
- //result// = //lhs// **""OrElse""** //rhs//
+ //result// = //lhs// **OrElse** //rhs//
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Expression côté gauche.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Expression côté droit.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- An Integer.
+ Un nombre entier.
{{fbdoc item="ret"}}
- Returns the short circuit-or (inclusive disjunction) of the two operands.
+ Retourne le circuit-court (disjonction inclusive) des deux opérandes.
{{fbdoc item="desc"}}
- This operator evaluates the left hand side expression. If the result is non-zero, then -1 (true) is immediately returned. If the result is zero then the right hand side is evaluated, and the logical result from that is returned.
+ Cet opérateur évalue l'expression à gauche. Si le résultat non-zéro, alors -1 (vrai) est retourné immédiatement. Si le résultat est zéro alors l'expression de droite est évaluée et le résultat logique des deux expressions est retourné.
- The truth table below demonstrates all combinations of a short circuit-or operation, the '-' denotes that the operand is not evaluated.
+ La table de vérité ci-dessous montre toutes les combinaisons d'un circuit-court, le signe '-' indique que l'opérande n'est pas évalué.
- {{table columns="3" cellpadding="2" cells="Lhs Value;Rhs Value;Result;0;0;0;0;1;1;1;-;1"}}
+ {{table columns="" cellpadding="2" cells="Valeur de Lhs;Valeur de Rhs;Résultat;0;0;0;0;1;1;1;-;1;
- Short-circuiting is performed - only expressions needed to calculate the result are evaluated.
+ Un circuit-court est exécuté - seules les expressions nécessaires pour calculer le résultat sont évaluées.
- The return type is always an Integer, of the value 0 or -1, denoting false and true respectively.
+ Le type de retour est toujours un entier, de valeur 0 ou -1, indiquant faux et vrai, respectivement.
- This operator cannot be overloaded for user-defined types.
+ Cet opérateur ne peut pas être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/orelse.bas"}}%%(freebasic)
@@ -48,10 +48,10 @@ SLEEP
%%
{{fbdoc item="diff"}}
- - This operator was not available in QB.
+ - Cet opérateur n'est pas disponible sous QB.
{{fbdoc item="see"}}
- ##[[KeyPgOpAndAlso AndAlso]]##
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs de manipulation de bits]]
{{fbdoc item="back" value="CatPgOpShortCircuit|Short Circuit Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPlacementNew.wakka b/fbdocs/manual/cache/KeyPgOpPlacementNew.wakka
index e9e29dbfac..30f588cdc7 100644
--- a/fbdocs/manual/cache/KeyPgOpPlacementNew.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPlacementNew.wakka
@@ -1,78 +1,80 @@
{{fbdoc item="title" value="Operator Placement New"}}----
-Operator to construct an object at a specified memory address.
+Opérateur pour construire un object à l'adresse mémoire spécifiée.
{{fbdoc item="syntax"}}##
//result// = **New(//address//)** //[[DataType datatype]]//
- //or//
+ //ou//
//result// = **New(//address//)** //[[DataType datatype]]// ( //initializers//, ... )
- //or//
+ //ou//
//result// = **New(//address//)** //[[DataType datatype]]//**[** //count// **]**
##
{{fbdoc item="param"}}
##//address//##
- the location in memory to construct. the parenthesis are **not** optional.
+ La position mémoire où construire. Les parenthèses **ne sont pas** facultatives.
##//size//##
- number of bytes to allocate.
+ Le nombre d'octets à allouer.
##//initializers//##
- Initial value(s) for the variable.
+ La valeur initiale de la variable.
##//datatype//##
- name of the data type to create.
+ Le nom du type de donnée à créer.
##//count//##
- Number of elements to allocate.
+ Le nombre d'éléments à allouer.
-{{fbdoc item="ret"}}
- A pointer of type [[DataType datatype]] to the newly allocated data.
+{{fbdoc item="section" value="Valeur retournée
+ Un pointeur du type [[DataType datatype]] vers la nouvelle donnée allouée.
{{fbdoc item="desc"}}
- The ##**Placement New**## operator constructs a specified data type at the specified memory location.
+ L'opérateur ##**New (Emplacement mémoire)**## construit un type de donnée spécifique à l'emplacement mémoire spécifié.
- For simple types, like integers, an initial value can be given. For types without constructors, initial values can be specified for each field. Types that have constructors can have their constructors called by ##**Placement New**## as well. If no initializers are given, the default values for those types will be set.
+ Pour des types simples, comme les entiers, une valeur initiale peut être donnée. Pour des types sans constructeur, des valeurs initiales peuvent être spécifiées pour chacun des champs. Pour les types ayant des constructeurs ceux-ci peuvent être appelés par ##**New (Emplacement mémoire)**##. Si aucun initialiseur n'est fourni, les valeurs par défaut seront utilisées.
- Memory is **not** allocated when using the ##**Placement New**## operator. Instead, the memory at the specified ##//address//## is used. It is incorrect to call ##[[KeyPgOpDelete Delete]]## on the address. See examples below for proper //placement new// usage.
+ La mémoire **n'est pas** allouée quand on utilise l'opérateur ##**Placement New**##. Au lieu de cela, la mémoire à l'##//address//##e spécifiée est utilisée. Il est incorrect d'appeler ##[[KeyPgOpDelete Delete]]## pour cette adresse. Voir les exemples ci-dssous pour utiliser correctement //new (emplacement mémoire)//.
- Specifying an initial value of ##[[KeyPgAny Any]]##, as in ##new(address) datatype(any)## will not initialize the data. This is only valid on data types that do not have constructors.
+ Spécifier une valeur initiale ##[[KeyPgAny Any]]##, comme dans ##new(address) datatype(any)## n'initialisera pas les données. Ceci n'est valide que pour des types de donnée n'ayant pas de constructeur.
- Specifying an initial value of ##[[KeyPgAny Any]]##, as in ##new(address) datatype[count]{any}## will not initialize the data. This is only valid on data types that do not have constructors.
+ Spécifier une valeur initiale ##[[KeyPgAny Any]]##, comme dans ##new(address) datatype[count]{any}## n'initialisera pas les données. Ceci n'est valide que pour des types de donnée n'ayant pas de constructeur.
+
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/operator/placement_new.bas"}}%%(freebasic)
'' "placement new" example
+Type Rational
-type Rational
- as integer numerator, denominator
-end type
+As Integer numerator, denominator
+ End Type
+Scope
-scope
-
- '' allocate some memory to construct as a Rational
- dim as any ptr ap = callocate(len(Rational))
+'' allocate some memory to construct as a Rational
+ Dim As Any Ptr ap = CAllocate(Len(Rational))
'' make the placement new call
- dim as Rational ptr r = new (ap) Rational( 3, 4 )
+ Dim As Rational Ptr r = New (ap) Rational( 3, 4 )
'' you can see, the addresses are the same, just having different types in the compiler
- print ap, r
+ Print ap, r
'' confirm all is okay
- print r->numerator & "/" & r->denominator
-
+
+ Print r->numerator & "/" & r->denominator
'' destroying must be done explicitly, because delete will automatically free the memory
+
'' and that isn't always okay when using placement new. ALWAYS explicitly call the destructor.
- r->destructor( )
-
+ r->Destructor( )
'' we explicitly allocated, so we explicitly deallocate
- deallocate( ap )
+
+ Deallocate( ap )
+ End Scope
-end scope
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+- Utilisable seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
+ {{fbdoc item="diff"}}
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgOpDelete Delete]]##
+- ##[[KeyPgOpDelete Delete]]##
+ - ##[[KeyPgOpNew New]]##
- ##[[KeyPgOpNew New]]##
{{fbdoc item="back" value="CatPgOpMemory|Memory Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPpConcat.wakka b/fbdocs/manual/cache/KeyPgOpPpConcat.wakka
index a9150ef100..e558bebb5c 100644
--- a/fbdocs/manual/cache/KeyPgOpPpConcat.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPpConcat.wakka
@@ -1,14 +1,14 @@
{{fbdoc item="title" value="Operator ## (Preprocessor Concatenate)"}}----
-Preprocessor operator to concatenate strings
+Opérateur Préprocesseur pour concatener chaînes
{{fbdoc item="syntax"}}##
- text**""##""**text
+ text**##**text
##
{{fbdoc item="desc"}}
- This operator creates a new token by concatenating the texts at both sides of it. This text can be recognized by other macros and further expanded. One use, is to create a macro that expands to different macro names, variable names, and function names depending on the arguments received.
+ Cet opérateur crée un nouveau "symbole" par la concaténation des textes de ses deux côtés. Ce texte peut être reconnu par d'autres macros et étendu. Une utilisation, est de créer une macro qui s'étend à des noms de macro différents, des noms de variables et des noms de fonctions selon les arguments reçus.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/prepro/concat.bas"}}%%(freebasic)
+ %%(freebasic)
#define Concat(t,n) t##n
Print concat (12,34)
@@ -17,16 +17,16 @@ Dim Concat (hello,world) as integer
Concat (hello,world)=99
print helloworld
%%
- Output:
+ Affichage:
%%
1234
99
%%
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+{{fbdoc item="lang"}}
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CatPgPreProcess Preprocessor]]
+ - [[CatPgPreProcess Préprocesseur]]
{{fbdoc item="back" value="CatPgOpPrepro|Preprocessor Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPpEscape.wakka b/fbdocs/manual/cache/KeyPgOpPpEscape.wakka
index 3cda512896..782ce5561d 100644
--- a/fbdocs/manual/cache/KeyPgOpPpEscape.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPpEscape.wakka
@@ -1,24 +1,24 @@
{{fbdoc item="title" value="Operator ! (Escaped String Literal)"}}----
-Explicitly indicates that a string literal should be processed for escape sequences.
+Indique explicitement qu'une chaîne littérale supporte les séquences d'échappement.
{{fbdoc item="syntax"}}##
**!**"//text//"
##
{{fbdoc item="param"}}
##**!**##
- The preprocessor escaped string operator
+ L'opérateur préprocesseur de support des séquences d'échappement
##"//text//"##
- The string literal containing escape characters
+ La chaîne littérale contenant des caractères d'échappement
{{fbdoc item="desc"}}
- This operator explicitly indicates that the string literal following it (wrapped in double quotes) should be processed for escape sequences. This a preprocessor operator and can only be used with string literals at compile time.
+ Cet opérateur indique explicitement que la chaîne littérale qui le suit (entre guillemets doubles) peut être traîtée pour le support des séquences d'échappement. C'est un opérateur du préprocesseur et il ne peut être utilisé qu'avec des chaînes littérales lors de la compilation.
- The default behavior for string literals is that they not be processed for escape sequences. ##[[KeyPgOptionescape Option Escape]]## can be used in the //[[CompilerOptlang -lang fblite]]// dialect to override this default behaviour causing all strings to be processed for escape sequences.
+ Le comportement par défaut pour les chaînes littérales c'est qu'elles ne seront pas traitées comme supportant les séquences d'échappement. ##[[KeyPgOptionescape Option Escape]]## peut être utilisée dans le dialecte //[[CompilerOptlang -lang fblite]]// pour annuler ce comportement par défaut, entraînant alors le support des séquences d'échappement pour toutes les chaînes.
- Use the [[KeyPgOpPpNoescape $ operator (Non-Escaped String Literal)]] operator to explicitly indicate that a string should not be processed for escape sequences.
+ Utilisez l'opérateur [[KeyPgOpPpNoescape $ Operator (Non Echappement chaîne littérale)]] pour indiquer explicitement qu'une chaîne ne supporte pas le traîtement des séquences d'échappement.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/prepro/escape.bas"}}%%(freebasic)
+ %%(freebasic)
print "Some escape sequence examples:"
print !"1.\tsingle quote (\\\') : \'"
print !"2.\tdouble quote (\\\") : \""
@@ -28,20 +28,20 @@ print !"4.\tascii char (\\65): \65"
'' OUTPUT:
''
'' Some escape sequence examples:
-'' 1. single quote (\') : '
-'' 2. double quote (\") : "
-'' 3. backslash (\\) : \
-'' 4. ascii char (\65): A
+'' 1. single quote (\') : '
+'' 2. double quote (\") : "
+'' 3. backslash (\\) : \
+'' 4. ascii char (\65): A
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[KeyPgOpPpNoescape Operator $ (Non-Escaped String Literal)]]
+ - [[KeyPgOpPpNoescape Opérateur $ (Non Echappement chaîne littérale)]]
- ##[[KeyPgOptionescape Option Escape]]##
- - [[CatPgPreProcess Preprocessor]]
- - [[ProPgLiterals Literals]]
- - [[TblEscapeSequences Escape Sequences]]
+ - [[CatPgPreProcess Préprocesseur]]
+ - [[ProPgLiterals Les littéraux]]
+ - [[TblEscapeSequences Séquences d'échappement]]
{{fbdoc item="back" value="CatPgOpPrepro|Preprocessor Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPpNoescape.wakka b/fbdocs/manual/cache/KeyPgOpPpNoescape.wakka
index 27f5967f3e..937d5c4976 100644
--- a/fbdocs/manual/cache/KeyPgOpPpNoescape.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPpNoescape.wakka
@@ -1,24 +1,24 @@
{{fbdoc item="title" value="Operator $ (Non-Escaped String Literal)"}}----
-Explicitly indicates that a string literal should not be processed for escape sequences.
+Indique explicitement qu'une chaîne littérale ne supporte pas les séquences d'échappement.
{{fbdoc item="syntax"}}##
**$**"//text//"
##
{{fbdoc item="param"}}
##**$**##
- The preprocessor non-escaped operator
+ L'opérateur préprocesseur de non-support des séquences d'échappement
##"//text//"##
- The string literal
+ La chaîne littérale
{{fbdoc item="desc"}}
- This operator explicitly indicates that the string literal following it (wrapped in double quotes) should not be processed for escape sequences. This a preprocessor operator and can only be used with string literals at compile time.
+ Cet opérateur indique explicitement que la chaîne littérale qui le suit (entre guillemets doubles) ne peut pas être traîtée pour le support des séquences d'échappement. C'est un opérateur du préprocesseur et il ne peut être utilisé qu'avec des chaînes littérales lors de la compilation.
- The default behavior for string literals is that they not be processed for escape sequences. However, ##[[KeyPgOptionescape Option Escape]]## in the //[[CompilerOptlang -lang fblite]]// dialect can be used to override this default behaviour causing all strings to be processed for escape sequences.
+ Le comportement par défaut pour les chaînes littérales c'est qu'elles ne seront pas traitées comme supportant les séquences d'échappement. Cependant, ##[[KeyPgOptionescape Option Escape]]## peut être utilisée dans le dialecte //[[CompilerOptlang -lang fblite]]// pour annuler ce comportement par défaut, entraînant alors le support des séquences d'échappement pour toutes les chaînes.
- Use the [[KeyPgOpPpEscape ! operator (Escaped String Literal)]] to explicitly indicate that a string should be processed for escape sequences.
+ Utilisez l'opérateur [[KeyPgOpPpEscape ! Operator (Escaped String Literal)]] pour indiquer explicitement qu'une chaîne supporte le traîtement des séquences d'échappement.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/prepro/noescape.bas"}}%%(freebasic)
+ %%(freebasic)
'' Compile with -lang fblite or qb
#lang "fblite"
@@ -51,13 +51,13 @@ Print
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[KeyPgOpPpEscape Operator ! (Escaped String Literal)]]
+ - [[KeyPgOpPpEscape Opérateur ! (Echappement chaîne littérale)]]
- ##[[KeyPgOptionescape Option Escape]]##
- - [[CatPgPreProcess Preprocessor]]
- - [[ProPgLiterals Literals]]
- - [[TblEscapeSequences Escape Sequences]]
+ - [[CatPgPreProcess Préprocesseur]]
+ - [[ProPgLiterals Les littéraux]]
+ - [[TblEscapeSequences Séquences d'échappement]]
{{fbdoc item="back" value="CatPgOpPrepro|Preprocessor Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPpStringize.wakka b/fbdocs/manual/cache/KeyPgOpPpStringize.wakka
index b50d7adc2e..7e2f3a56d0 100644
--- a/fbdocs/manual/cache/KeyPgOpPpStringize.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPpStringize.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="Operator # (Preprocessor Stringize)"}}----
-Preprocessor operator to convert macro arguments to strings
+Opérateur pour convertir des arguments macro en chaînes
{{fbdoc item="syntax"}}##
- **""#""**//macro_argument//
+ **#**//macro_argument//
##
{{fbdoc item="desc"}}
- This operator converts the ##//macro_argument//## into a string whose value is the name of the argument. This substitution is made during the macro expansion, previous to compilation.
+ Cet Opérateur convertit ##//macro_argument//## en une chaîne dont la valeur est le nom de l'argument. Cette substitution est faite lors de l'expansion macro, avant la compilation.
-~&//Note: because of this feature, care should be taken when using file-handling statements in a macro. Because of potential ambiguity with file-handling statements that take a "##**#**//filenum//##" parameter, if ##//filenum//## is one of the macro parameters, it may be necessary to wrap the ##//filenum//## expression in parenthesis (e.g. "##**#**(//filenum//)##"), to separate it from the ##**#**## sign. Otherwise, ##//filenum//## will be stringized in the macro.//
+//Note: à cause de cette caractéristique, il faut prendre soin lors de l'utilisation de fichiers de traitement des déclarations dans une macro. En raison de l'ambiguïté potentielle avec un fichier de traitement des déclarations qui prennent un paramètre "##**#**//filenum//##", si ##//filenum//## est l'un des paramètres macro, il peut être nécessaire d'encadrer l'expression ##//filenum//## par des parenthèses (par ex: "##**#**(//filenum//)##"), pour le séparer du signe ##**#**##. Sinon, ##//filenum//## sera transformé en chaîne dans la macro.//
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/stringize.bas"}}%%(freebasic)
@@ -19,16 +19,16 @@ SEE(variable)
SEE(another_one)
%%
-Output:
+Affiche:
%%
variable = 1
another_one = 2
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CatPgPreProcess Preprocessor]]
+ - [[CatPgPreProcess Préprocesseur]]
{{fbdoc item="back" value="CatPgOpPrepro|Preprocessor Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpProcptr.wakka b/fbdocs/manual/cache/KeyPgOpProcptr.wakka
index 83860747dc..44da734b26 100644
--- a/fbdocs/manual/cache/KeyPgOpProcptr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpProcptr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator PROCPTR (Procedure pointer)"}}----
-Returns the address of a procedure
+Renvoie l'adresse d'une procédure
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Procptr** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T// ) [[KeyPgAs as]] //T// [[KeyPgPtr ptr]]
@@ -9,17 +9,17 @@ Returns the address of a procedure
##
{{fbdoc item="param"}}
##//lhs//##
- A procedure.
+ Une procédure.
##//T//##
- The type of procedure.
+ Le type de procédure.
-{{fbdoc item="ret"}}
- Returns the address of the procedure.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie l'adresse de la procédure.
{{fbdoc item="desc"}}
- This operator returns the address of a ##[[KeyPgSub Sub]]## or ##[[KeyPgFunction Function]]## procedure.
+ Cet opérateur renvoie l'adresse d'une procédure ##[[KeyPgSub Sub]]## ou ##[[KeyPgFunction Function]]##.
- ##[[KeyPgOpAt Operator @ (Address of)]]##, when used with procedures, has identical behavior.
+ L'##[[KeyPgOpAt Opérateur @ (Adresse de)]]##, utilisé avec des procédures, a un comportement identique.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/procptr.bas"}}%%(freebasic)
@@ -46,15 +46,15 @@ end function
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Procptr""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Procptr**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgSub Sub]]##
- ##[[KeyPgOpVarptr Varptr]]##
- ##[[KeyPgOpStrptr Strptr]]##
- - [[ProPgPointers Pointers]]
+ - [[ProPgPointers Pointeurs]]
{{fbdoc item="back" value="CatPgOpPoint|Pointer Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpPtrIndex.wakka b/fbdocs/manual/cache/KeyPgOpPtrIndex.wakka
index 82d15ea497..c93e451a8d 100644
--- a/fbdocs/manual/cache/KeyPgOpPtrIndex.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPtrIndex.wakka
@@ -1,49 +1,52 @@
{{fbdoc item="title" value="Operator [] (Pointer index)"}}----
-Returns a reference to memory offset from an address
+Renvoie une référence au décalage mémoire par rapport à une adresse
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **[]** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T// [[KeyPgPointer pointer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] //T//
##
-~&//Note that **##Operator []## (Pointer index)** returns a reference. See [[CompilerFAQ CompilerFAQ]].//
+//Notez que **##Opérateur [ ]## (Pointeur d'indice)** retourne une référence. Voir [[CompilerFAQ FAQ du Compilateur]].//
{{fbdoc item="usage"}}##
//result// = //lhs// **[** //rhs// **]**
##
{{fbdoc item="param"}}
##//lhs//##
- The base address.
+ L'adresse de base.
##//rhs//##
- A signed offset from ##//lhs//##.
+ Un décalage (offset) à partir de ##//lhs//##.
##//T//##
- Any data type.
+ Tout type de donnée.
{{fbdoc item="desc"}}
- This operator returns a reference to a value some distance in memory from a base address. It is essentially shorthand for "##[[KeyPgOpValueOf *]](//lhs// [[KeyPgOpAdd +]] //rhs//)##"; both do exactly the same thing. Like pointer arithmetic, any type of ##[[KeyPgPointer POINTER]]## can be indexed except for an ##[[KeyPgAny ANY]]## ##[[KeyPgPointer POINTER]]##. Also, like pointer arithmetic, it is up to the user to make sure meaningful data is being accessed.
+ Cet opérateur renvoie une référence à une valeur à une certaine distance dans la mémoire par rapport à une adresse de base. Il s'agit essentiellement d'un raccourci pour "##[[KeyPgOpValueOf *]](//lhs// [[KeyPgOpAdd +]] //rhs//)##"; les deux font exactement la même chose. Comme un pointeur arithmétique, tout type de ##[[KeyPgPointer Pointeur]]## peut être indexé sauf pour un ##[[KeyPgPointer Pointeur]]## ##[[KeyPgAny Any]]##. Aussi, comme un pointeur arithmétique, c'est à l'utilisateur de s'assurer les données significatives sont accessibles.
-{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/operator/pointer-index.bas"}}%%(freebasic)
-'' initialize a 5-element array
-dim array(4) as integer = { 0, 1, 2, 3, 4 }
+ {{fbdoc item="ex"}}
+ %%(freebasic)
+'' initialize a 5-element array
+Dim array(4) As Integer = { 0, 1, 2, 3, 4 }
'' point to the first element
-dim p as integer ptr = @array(0)
+Dim p As Integer Ptr = @array(0)
'' use pointer indexing to output array elements
-for index as integer = 0 to 4
- print p[index]
-next
-%%
-
- Will give the output,
+For index As Integer = 0 To 4
+Print p[index]
+Next
+ %%
+Affichera,
%%0 1 2 3 4
-%%
+
+ %%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpAdd Operator + (Add)]]##
+ - ##[[KeyPgOpAdd Opérateur + (Addition)]]##
+
+- ##[[KeyPgOpSubtract Opérateur - (Soustraction)]]##
+ - [[CatPgOpPoint Pointeur Opérateurs]]
- ##[[KeyPgOpSubtract Operator - (Subtract)]]##
- [[CatPgOpPoint Pointer Operators]]
diff --git a/fbdocs/manual/cache/KeyPgOpPtrMemberAccess.wakka b/fbdocs/manual/cache/KeyPgOpPtrMemberAccess.wakka
index 46f1ac3d85..7f403ebc49 100644
--- a/fbdocs/manual/cache/KeyPgOpPtrMemberAccess.wakka
+++ b/fbdocs/manual/cache/KeyPgOpPtrMemberAccess.wakka
@@ -1,31 +1,31 @@
{{fbdoc item="title" value="Operator -> (Pointer to member access)"}}----
-Returns a reference to a member from a pointer to an object
+Renvoie une référence à un membre d'un pointeur vers un objet
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **->** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T// [[KeyPgPointer pointer]] ) [[KeyPgAs as]] //U//
##
-~&//Note that **##Operator ->## (Pointer to member access)** returns a reference. As of 02.27.07, ""FreeBASIC"" syntax does not support returning references. When it does, this syntax will need to be changed.//
+//Notez que **##Opérateur ->## (Accès membre par pointeur)** renvoie une référence. En date du 27/02/07, la syntaxe FreeBASIC ne supporte pas le retour de références. Lorsque c'est le cas, cette syntaxe devra être changée.//
{{fbdoc item="usage"}}##
//result// = //lhs// **->** //rhs//
##
{{fbdoc item="param"}}
##//lhs//##
- The address of an object.
+ L'adresse d'un objet.
##//T//##
- A pointer to a user-defined type.
+ Un pointeur vers un type défini par l'utilisateur.
##//rhs//##
- The name of a member to access.
+ Le nom du membre auquel on accède.
##//U//##
- The type that ##//rhs//## refers to.
+ Le type auquel se réfère ##//rhs//##.
-{{fbdoc item="ret"}}
- Returns a reference to the member specified by ##//rhs//##.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie une référence au membre spécifié par ##//rhs//##.
{{fbdoc item="desc"}}
- **##Operator ->## (Pointer to member access)** returns a reference to a member of an object through a pointer to that object. It has the effect of dereferencing a pointer to an object, then using ##[[KeyPgOpMemberAccess Operator . (Member access)]]##. For example, ##"//p//**->**//member//"## is equivalent to ##"//x//.//member//"##, if //x// is an object of user-defined type and //p// is a pointer to an object of the same type.
+ L'**##Opérateur ->## (Accès membre par pointeur)** renvoie une référence à un membre d'un objet grâce à un pointeur vers cet objet. Elle a pour effet de déréférencer un pointeur vers un objet, alors utilisez ##[[KeyPgOpMemberAccess Opérateur . (Accès membre)]]##. Par exemple, ##"//p//**->**//member//"## est équivalent à ##"//x//.//member//"##, si //x// est un objet de type défini par l'utilisateur et //p// est un pointeur vers un objet du même type.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour les types définis par l'utilisateur.
{{fbdoc item="ex"}}
@@ -46,14 +46,14 @@ Sleep
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpMemberAccess Operator . (Member access)]]##
- - ##[[KeyPgOpAt Operator @ (Address of)]]##
- - ##[[KeyPgOpValueOf Operator * (Value of)]]##
+ - ##[[KeyPgOpMemberAccess Opérateur . (Accès membre)]]##
+ - ##[[KeyPgOpAt Opérateur @ (Adresse de)]]##
+ - ##[[KeyPgOpValueOf Opérateur * (Valeur de)]]##
{{fbdoc item="back" value="CatPgOpTypeclass|Type or Class Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpShiftLeft.wakka b/fbdocs/manual/cache/KeyPgOpShiftLeft.wakka
index 6eb9b72e72..1ab91adc94 100644
--- a/fbdocs/manual/cache/KeyPgOpShiftLeft.wakka
+++ b/fbdocs/manual/cache/KeyPgOpShiftLeft.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Shl (Shift left)"}}----
-Shifts the bits of a numeric expression to the left
+Décale vers la gauche les bits d'une expression numérique
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Shl** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -12,19 +12,19 @@ Shifts the bits of a numeric expression to the left
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ La valeur de l'opération de décalage.
##//rhs//##
- The right-hand side shift expression.
+ Le nombre de bits de décalage.
-{{fbdoc item="ret"}}
- Returns the result of ##//lhs//## being shifted left ##//rhs//## number of times.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le résultat du décalage de ##//rhs//## bits vers la gauche de la valeur ##//lhs//##.
{{fbdoc item="desc"}}
- **##Operator Shl## (Shift left)** shifts all of the bits in the left-hand side expression (##//lhs//##) left a number of times specified by the right-hand side expression (##//rhs//##). This has the effect of multiplying ##//lhs//## by two for each shift. For example, "##&b0101 **Shl** 1##" returns the binary number ##&b01010##, and "##5 **Shl** 1##" returns ##10##.
+ L'**##Opérateur Shl## (Décalage vers la gauche)** décale vers la gauche tous les bits de l'expression de gauche (##//lhs//##) un nombre de fois spécifié dans l'expression de droite (##//rhs//##). Cela a pour effet de multiplier ##//lhs//## par deux pour chaque décalage. Par exemple, "##&b0101 **Shl** 1##" retourne le nombre binaire ##&b01010##, et "##5 **Shl** 1##" retourne ##10##.
- Neither of the operands are modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/shift-left.bas"}}%%(freebasic)
@@ -35,7 +35,7 @@ For i As Integer = 0 To 10
Next i
%%
-Output:
+Affiche:
%%
5 0000000000000101
10 0000000000001010
@@ -52,15 +52,15 @@ Output:
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Shl""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Shl**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpCombineShiftLeft Operator Shl= (Shift Left and Assign)]]##
- - ##[[KeyPgOpShiftRight Operator Shr (Shift right)]]##
+ - ##[[KeyPgOpCombineShiftLeft Opérateur Shl= (Décalage à gauche et Affectation)]]##
+ - ##[[KeyPgOpShiftRight Opérateur Shr (Décalage à droite)]]##
- ##[[KeyPgBin Bin]]##
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpShiftRight.wakka b/fbdocs/manual/cache/KeyPgOpShiftRight.wakka
index 22624673c2..264364a10f 100644
--- a/fbdocs/manual/cache/KeyPgOpShiftRight.wakka
+++ b/fbdocs/manual/cache/KeyPgOpShiftRight.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Shr (Shift right)"}}----
-Shifts the bits of a numeric expression to the right
+Décale vers la droite les bits d'une expression numérique
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Shr** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgInteger integer]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -12,21 +12,21 @@ Shifts the bits of a numeric expression to the right
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ La valeur de l'opération de décalage.
##//rhs//##
- The right-hand side shift expression.
+ Le nombre de bits de décalage.
-{{fbdoc item="ret"}}
- Returns the result of ##//lhs//## being shifted right ##//rhs//## number of times.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne le résultat du décalage de ##//rhs//## bits vers la droite de la valeur ##//lhs//##.
{{fbdoc item="desc"}}
- **##Operator Shr## (Shift right)** shifts all of the bits in the left-hand side expression (##//lhs//##) right a number of times specified by the right-hand side expression (##//rhs//##). This has the effect of dividing ##//lhs//## by two for each shift. For example, "##&b0101 **Shr** 1##" returns the binary number ##&b010##, and "##5 **Shr** 1##" returns ##2##.
+ L'**##Opérateur Shr## (Décalage vers la droite)** décale vers la droite tous les bits de l'expression de gauche (##//lhs//##) un nombre de fois spécifié dans l'expression de droite (##//rhs//##). Cela a pour effet de diviser ##//lhs//## par deux pour chaque décalage. Par exemple, "##&b0101 **Shr** 1##" retourne le nombre binaire ##&b010##, et "##5 **Shr** 1##" retourne ##2##.
- If the left-hand side expression is signed, the sign bit is copied in the newly created bits on the left after the shift.
+ Si l'expression de gauche est signée, le bit de signe est copié sur la gauche des bits nouvellement créés après le décalage.
- Neither of the operands are modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/shift-right.bas"}}%%(freebasic)
@@ -37,7 +37,7 @@ For i As Integer = 0 To 10
Next i
%%
-Output:
+Affiche:
%%
1000 0000001111101000
500 0000000111110100
@@ -53,15 +53,15 @@ Output:
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Shr""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Shr**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - ##[[KeyPgOpCombineShiftRight Operator Shr= (Shift Right and Assign)]]##
- - ##[[KeyPgOpShiftLeft Operator Shl (Shift left)]]##
+ - ##[[KeyPgOpCombineShiftRight Opérateur Shr= (Décalage à droite et Affectation)]]##
+ - ##[[KeyPgOpShiftLeft Opérateur Shl (Décalage à gauche)]]##
- ##[[KeyPgBin Bin]]##
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpStep.wakka b/fbdocs/manual/cache/KeyPgOpStep.wakka
index 49c33c4b86..0ad42988f0 100644
--- a/fbdocs/manual/cache/KeyPgOpStep.wakka
+++ b/fbdocs/manual/cache/KeyPgOpStep.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator Step (Iteration)"}}----
-Increments the iterator of a ##[[KeyPgFornext For...Next]]## loop
+Incrémente l'itérateur d'une boucle ##[[KeyPgFornext For...Next]]##
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] } //typename//
@@ -15,22 +15,22 @@ Increments the iterator of a ##[[KeyPgFornext For...Next]]## loop
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgUnion Union]]##
+ nom du ##[[KeyPgType Type]]##, de la ##[[KeyPgClass Class]]## ou de l'##[[KeyPgUnion Union]]##
##//stp//##, ##//step_value//##
- a ##//typename//## object used as an incremental value
+ un objet ##//typename//## utilisé comme valeur d'incrémentation
##//iterator//##
- a ##//typename//## object used as an iterator
+ un objet ##//typename//## utilisé comme itérateur
##//end_value//##
- a ##//typename//## object used as a loop-terminating value
+ un objet ##//typename//## utilisé comme valeur de fin de boucle
##//start_value//##
- a ##//typename//## object used to copy construct or assign to the iterator initially
+ un objet ##//typename//## utilisé pour la construction de copie ou pour initialiser l'itérateur
{{fbdoc item="desc"}}
- ##[[KeyPgOpFor Operator For]]##, ##[[KeyPgOpNext Operator Next]]## and ##**Operator Step**## can be overloaded in user-defined type definitions to allow objects of that type to be used as iterators and step values in ##[[KeyPgFornext For...Next]]## loops.
+ ##[[KeyPgOpFor Opérateur For]]##, ##[[KeyPgOpNext Opérateur Next]]## et ##**Opérateur Step**## peut être surchargé dans des définitions de type utilisateur pour permettre à des objets de ce type d'être utilisés comme itérateurs et valeurs d'incrémentation dans des boucles ##[[KeyPgFornext For...Next]]##.
- ##**Operator Step**## is called to increment the iterator immediately after all statements in the ##[[KeyPgFornext For...Next]]## body are executed, if any.
+ L'##**Opérateur Step**## est appelé pour incrémenter l'itérateur immédiatement après l'exécution de toutes les déclarations, s'il y en a, de la boucle ##[[KeyPgFornext For...Next]]##.
- The first version of ##**Operator Step**## is used if no step value is given in the ##[[KeyPgFornext For...Next]]## statement. If a step value is given, the second version is used and is passed the step value.
+ La première version d'##**Opérateur Step**## est utilisée si aucune valeur d'incrémentation n'est donnée dans la déclaration ##[[KeyPgFornext For...Next]]##. Si la valeur d'incrémentation est donnée, la seconde version est utilisée et passée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/step.bas"}}%%(freebasic)
@@ -74,7 +74,7 @@ For i As T = 10 To 1 Step -1
Print i.value;
Next i
%%
-A more practical example demonstrating file iteration based on [[http://www.freebasic.net/forum/viewtopic.php?p=83564 cha0s' file iteration class]].
+Un exemple plus pratique démontrant l'itération de fichier basé sur [[http://www.freebasic.net/forum/viewtopic.php?p=83564">cha0s' file iteration class]].
{{fbdoc item="filename" value="examples/manual/udt/stepFileIteration.bas"}}%%(freebasic)
'' a class which iterates through files
type FileIter
@@ -109,6 +109,241 @@ For i As FileIter = "./" To ""
print i.fileName
Next
%%
+{{fbdoc item="lang"}}
+- Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
+{{fbdoc item="see"}}
+ - ##[[KeyPgOpFor Opérateur For]]##
+ - ##[[KeyPgOpNext Opérateur Next]]##
+
+ - ##[[KeyPgFornext For...Next]]##
+ declare operator for ( )
+ declare operator step( )
+ declare operator next( byref end_cond as CharIterator ) as integer
+
+ '' explicit step versions
+ declare operator for ( byref step_var as CharIterator )
+ declare operator step( byref step_var as CharIterator )
+ declare operator next( byref end_cond as CharIterator, byref step_var as CharIterator ) as integer
+
+ '' give the current "value"
+ declare operator cast( ) as string
+
+ private:
+ '' data
+ value as string
+
+ '' This member isn't necessary - we could use
+ '' the step variable on each iteration -
+ '' but we choose this method, since we have
+ '' to compare strings otherwise. See below.
+ is_up as integer
+end type
+
+constructor CharIterator( byval r as zstring ptr )
+ value = *r
+end constructor
+
+operator CharIterator.cast( ) as string
+ operator = value
+end operator
+
+'' implicit step versions
+''
+'' In this example, we interpret implicit step
+'' to always mean 'up'
+operator CharIterator.for( )
+ print "implicit step"
+end operator
+
+operator CharIterator.step( )
+ value[0] += 1
+end operator
+
+operator CharIterator.next( byref end_cond as CharIterator ) as integer
+ return this.value <= end_cond.value
+end operator
+
+'' explicit step versions
+''
+'' In this example, we calculate the direction
+'' at FOR, but since the step var is passed to
+'' each operator, we have the choice to also calculate
+'' it "on-the-fly". For strings such as this, repeated comparison
+'' may penalize, but if you're working with simpler types,
+'' then you may prefer to avoid the overhead of
+'' an 'is_up' variable.
+operator CharIterator.for( byref step_var as CharIterator )
+ print "explicit step"
+ is_up = (step_var.value = "up")
+end operator
+
+operator CharIterator.step( byref step_var as CharIterator )
+ if( is_up ) then
+ value[0] += 1
+ else
+ value[0] -= 1
+ end if
+end operator
+
+operator CharIterator.next( byref end_cond as CharIterator, byref step_var as CharIterator ) as integer
+ if( this.is_up ) then
+ return this.value <= end_cond.value
+ else
+ return this.value >= end_cond.value
+ end if
+end operator
+
+for i as CharIterator = "a" to "z"
+ print i; " ";
+next
+print "done"
+
+for i as CharIterator = "a" to "z" step "up"
+ print i; " ";
+next
+print "done"
+
+for i as CharIterator = "z" to "a" step "down"
+ print i; " ";
+next
+print "done"
+
+for i as CharIterator = "z" to "a" step "up"
+ print i; " ";
+next
+print "done"
+%%
+Iterating with fractions:
+{{fbdoc item="filename" value="examples/manual/udt/step-fraction-iterator.bas"}}%%(freebasic)
+type fraction
+ '' Used to build a step var
+ declare constructor( byval n as integer, byval d as integer )
+
+ '' Implicit step versions
+ declare operator for ( )
+ declare operator step( )
+ declare operator next( byref end_cond as fraction ) as integer
+
+ '' Explicit step versions
+ declare operator for ( byref step_var as fraction )
+ declare operator step( byref step_var as fraction )
+ declare operator next( byref end_cond as fraction, byref step_var as fraction ) as integer
+
+ '' Give the current "value"
+ declare operator cast( ) as double
+ declare operator cast( ) as string
+
+ private:
+ as integer num, den
+end type
+
+constructor fraction( byval n as integer, byval d as integer )
+ this.num = n : this.den = d
+end constructor
+
+operator fraction.cast( ) as double
+ operator = num / den
+end operator
+
+operator fraction.cast( ) as string
+ operator = num & "/" & den
+end operator
+
+'' Some fraction functions
+Function gcd( Byval n As Integer, Byval m As Integer ) As Integer
+ Dim As Integer t
+ While m <> 0
+ t = m
+ m = n Mod m
+ n = t
+ Wend
+ Return n
+End Function
+
+Function lcd( Byval n As Integer, Byval m As Integer ) As Integer
+ Return (n * m) / gcd( n, m )
+End Function
+
+''
+'' Implicit step versions
+''
+'' In this example, we interpret implicit step
+'' to mean 1
+''
+operator fraction.for( )
+ print "implicit step"
+end operator
+
+operator fraction.step( )
+ var lowest = lcd( this.den, 1 )
+
+ var mult_factor = this.den / lowest
+ dim as fraction step_temp = fraction( 1, 1 )
+
+ this.num *= mult_factor
+ this.den *= mult_factor
+
+ step_temp.num *= lowest
+ step_temp.den *= lowest
+
+ this.num += step_temp.num
+end operator
+
+operator fraction.next( byref end_cond as fraction ) as integer
+ return this <= end_cond
+end operator
+
+''
+'' Explicit step versions
+''
+operator fraction.for( byref step_var as fraction )
+ print "explicit step"
+end operator
+
+operator fraction.step( byref step_var as fraction )
+ var lowest = lcd( this.den, step_var.den )
+ var mult_factor = this.den / lowest
+ dim as fraction step_temp = step_var
+
+ this.num *= mult_factor
+ this.den *= mult_factor
+
+ mult_factor = step_temp.den / lowest
+
+ step_temp.num *= mult_factor
+ step_temp.den *= mult_factor
+
+ this.num += step_temp.num
+end operator
+
+operator fraction.next( byref end_cond as fraction, byref step_var as fraction ) as integer
+ if(( step_var.num < 0 ) or ( step_var.den < 0 ) ) then
+ return this >= end_cond
+ else
+ return this <= end_cond
+ end if
+end operator
+
+for i as fraction = fraction(1,1) to fraction(4,1)
+ print i; " ";
+next
+print "done"
+
+for i as fraction = fraction(1,4) to fraction(1,1) step fraction(1,4)
+ print i; " ";
+next
+print "done"
+
+for i as fraction = fraction(4,4) to fraction(1,4) step fraction(-1,4)
+ print i; " ";
+next
+print "done"
+
+for i as fraction = fraction(4,4) to fraction(1,4)
+ print i; " ";
+next
+print "done"
+%%
{{fbdoc item="lang"}}
- Only available in the //[[CompilerOptlang -lang fb]]// dialect.
diff --git a/fbdocs/manual/cache/KeyPgOpStringIndex.wakka b/fbdocs/manual/cache/KeyPgOpStringIndex.wakka
index 8b2e85789d..8c705d2f0b 100644
--- a/fbdocs/manual/cache/KeyPgOpStringIndex.wakka
+++ b/fbdocs/manual/cache/KeyPgOpStringIndex.wakka
@@ -1,28 +1,28 @@
{{fbdoc item="title" value="Operator [] (String index)"}}----
-Returns a reference to a character in a string
+Renvoie une référence à un caractère dans une chaîne
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **[]** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgString string]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgUbyte ubyte]]
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **[]** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgZstring zstring]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgUbyte ubyte]]
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **[]** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgWstring wstring]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] //T//
##
-~&//Note that **##Operator {}## (String index)** returns a reference. See [CompilerFAQ Compiler FAQ]].//
+//Notez que **##Opérateur [ ]## (Indice de chaîne)** renvoie une référence. Voir [[CompilerFAQ CompilerFAQ]].//
{{fbdoc item="usage"}}##
//result// = //lhs// **[** //rhs// **]**
##
{{fbdoc item="param"}}
##//lhs//##
- The string.
+ La chaîne.
##//rhs//##
- A zero-based offset from the first character.
+ Décalage, basé sur zéro, par rapport au premier caractère.
##//T//##
- The wide-character type (varies per platform).
+ Le type de caractères "larges" (varie selon la plateforme).
{{fbdoc item="desc"}}
- This operator returns a reference to a specific character in a string:
- - This operator must not be used in case of empty string because reference is undefined (inducing runtime error).
- - Otherwise, the user must ensure that the index does not exceed the range "[0, ##[[KeyPgLen Len]](//lhs//) - 1##]". Outside this range, results are undefined.
+ Cet opérateur renvoie une référence à un caractère spécifique dans une chaîne:
+ - Cet opérateur ne doit pas être utilisé en cas de chaîne vide parce que la référence n'est pas définie (induisant une erreur d'exécution).
+ - Sinon, l'utilisateur doit s'assurer que l'indice ne dépasse pas la fourchette "[0, ##[[KeyPgLen Len]](//lhs//) - 1##]". En dehors de cette plage, les résultats sont indéfinis.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/stringindex.bas"}}%%(freebasic)
@@ -35,15 +35,15 @@ next i
print
%%
-Will print
+Affichera
%%
Hello, world!
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CatPgOpString String Operators]]
+ - [[CatPgOpString Opérateurs de chaînes]]
{{fbdoc item="back" value="CatPgOpIndexing|Indexing Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpStrptr.wakka b/fbdocs/manual/cache/KeyPgOpStrptr.wakka
index af7e3e1533..daf02a7f36 100644
--- a/fbdocs/manual/cache/KeyPgOpStrptr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpStrptr.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator STRPTR (String pointer)"}}----
-Returns the address of a string's character data.
+Renvoie l'adresse de données caractère d'une chaîne.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Strptr** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgZstring zstring]] [[KeyPgPtr ptr]]
@@ -10,17 +10,17 @@ Returns the address of a string's character data.
##
{{fbdoc item="param"}}
##//lhs//##
- A string.
+ Une chaîne.
-{{fbdoc item="ret"}}
- Returns a ##[[KeyPgZstring Zstring]] [[KeyPgPtr Ptr]]## to a string's character data.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne un ##[[KeyPgZstring ZString]] [[KeyPgPtr Ptr]]## aux données caractères d'une chaîne.
{{fbdoc item="desc"}}
- This operator returns a ##[[KeyPgZstring Zstring]] [[KeyPgPtr Ptr]]## that points to the beginning of a string's character data. ##**Operator Strptr**## is the proper method for acquiring the address of a string's character data.
+ Cet retourne une ##[[KeyPgZstring ZString]] [[KeyPgPtr Ptr]]## qui pointe vers le début des données caractères d'une chaîne. ##**Operator Strptr**## est la méthode appropriée pour l'acquisition de l'adresse de données caractères d'une chaîne.
- Note that when passed a ##[[KeyPgWstring Wstring]]##, ##**Operator Strptr**## still returns a ##[[KeyPgZstring Zstring]] [[KeyPgPtr Ptr]]##, which may not be the desired result.
+ Notez que lorsqu'on a passé une ##[[KeyPgWstring WString]]##, ##**Operator Strptr**## renvoie toujours une ##[[KeyPgZstring ZString]] [[KeyPgPtr Ptr]]##, qui peut ne pas être le résultat désiré.
- The related ##[[KeyPgOpVarptr Operator Varptr (Variable pointer)]]## and ##[[KeyPgOpAt Operator @ (Address of)]]##, when used with a ##[[KeyPgString String]]##, return the address of the internal string descriptor.
+ Les opérateurs liés ##[[KeyPgOpVarptr Operator Varptr (Variable pointeur)]]## et ##[[KeyPgOpAt Operator @ (Address Of)]]##, lorsqu'il est utilisé avec une ##[[KeyPgString String]]##, renvoie l'adresse du descripteur de chaîne interne.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/strptr.bas"}}%%(freebasic)
@@ -52,7 +52,7 @@ Print
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC"", but does exactly the same thing as ##[[KeyPgSadd Sadd]]##
+ - Nouveau pour FreeBASIC, mais fait exactement la même chose que ##[[KeyPgSadd SAdd]]##
{{fbdoc item="see"}}
- ##[[KeyPgSadd Sadd]]##
diff --git a/fbdocs/manual/cache/KeyPgOpSubtract.wakka b/fbdocs/manual/cache/KeyPgOpSubtract.wakka
index 73a8b4eb92..ef87bb07a4 100644
--- a/fbdocs/manual/cache/KeyPgOpSubtract.wakka
+++ b/fbdocs/manual/cache/KeyPgOpSubtract.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator - (Subtract)"}}----
-Subtracts two expressions
+Soustrait deux expressions
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **-** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] [[KeyPgByte byte]], [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] [[KeyPgByte byte]] ) [[KeyPgAs as]] [[KeyPgByte byte]]
@@ -23,23 +23,23 @@ Subtracts two expressions
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression to subtract from.
+ L'argument de gauche auquel on soustrait ##//rhs//##.
##//rhs//##
- The right-hand side expression to subtract.
+ L'argument de droite à soustraire à ##//lhs//##.
##//T//##
Any pointer type.
{{fbdoc item="ret"}}
- Returns the subtraction of two expressions.
+ Renvoie le résultat de la soustraction de deux expressions.
{{fbdoc item="desc"}}
- When the left and right-hand side expressions are numeric values, **##Operator -## (Subtract)** returns the subtraction of the two values.
+ Lorsque les expressions à gauche et à droite sont des valeurs numériques, **##Operator -## (Soustraction)** retourne le résultat de la soustraction des deux valeurs.
- If either the left or right-hand side expressions is of [[KeyPgPointer Pointer]] type, **##Operator -## (Subtract)** performs pointer arithmetic on the address, returning the result.
+ Si les expressions de droite ou de gauche sont de type [[KeyPgPointer Pointer]], **##Operator -## (Soustraction)** exécute une opération arithmétique pointeur sur l'adresse, et renvoie le résulat.
- Neither operand is modified in any way.
+ Dans tous les cas, aucun opérande n'est modifié
- This operator can be overloaded to accept user-defined types.
+ Cet opérateur peut être surchargé pour accepter les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/subtract.bas"}}%%(freebasic)
@@ -48,19 +48,19 @@ n = 4 - 5
PRINT n
SLEEP
%%
- will produce the output:
+ produira l'affichage:
%%
-1
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[CatPgMath Mathematical Functions]]
+ - [[CatPgMath Fonctions mathématiques]]
{{fbdoc item="back" value="CatPgOpArithmetic|Arithmetic Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpValueOf.wakka b/fbdocs/manual/cache/KeyPgOpValueOf.wakka
index ee5a8e1186..e5b92f0a67 100644
--- a/fbdocs/manual/cache/KeyPgOpValueOf.wakka
+++ b/fbdocs/manual/cache/KeyPgOpValueOf.wakka
@@ -1,29 +1,29 @@
{{fbdoc item="title" value="Operator * (Value of)"}}----
-Dereferences a pointer
+Déréférence un pointeur
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] ***** ( [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T// [[KeyPgPointer pointer]] ) [[KeyPgAs as]] //T//
##
-~&//Note that **##Operator *## (Value of)** returns a reference. As of 02.27.07, ""FreeBASIC"" syntax does not support returning references. When it does, this syntax will need to be changed.//
+//Notez que **##Opérateur *## (Valeur de)** retourne une référence. En date du 27/02/07, la syntaxe FreeBASIC ne supporte pas le retour de références. Lorsque c'est le cas, cette syntaxe devra être changée.//
{{fbdoc item="usage"}}##
//result// = * //rhs//
##
{{fbdoc item="param"}}
##//rhs//##
- The address to dereference.
+ L'adresse à déréférencer.
##//T//##
- Any [[CatPgStdDataTypes standard]], [[CatPgUserDefTypes user-defined]] or procedure type.
+ Tout type [[CatPgStdDataTypes standard]], [[CatPgUserDefTypes défini par l'utilisateur]] ou procédure.
-{{fbdoc item="ret"}}
- Returns a reference to the value stored at the address ##//rhs//##.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne une référence à une valeur stockée à l'adresse ##//rhs//##.
{{fbdoc item="desc"}}
- **##Operator *## (Value of)** returns a reference to the value stored at an address, and is often called the dereference operator. The operand is not modified in any way.
+ **##Opérateur *## (Valeur de)** retourne une référence à une valeur stockée une certaine adresse et est souvent appelé opérateur de déréférencement. L'opérande n'est en aucune manière modifié.
- As a reference, the result of this operator can be used on the left-hand side of assignments.
+ Comme référence, le résultat de cet opérateur peut être utilisé sur le côté gauche d'affectations.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour des types utilisateurs.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/valueof.bas"}}%%(freebasic)
@@ -31,30 +31,30 @@ Dereferences a pointer
Dim a As Integer
Dim pa As Integer Ptr
+See also
pa=@a 'Here, we use the @ operator to point our integer ptr at 'a'.
+
' 'a' is, in this case, a standard integer variable.
a=9 'Here we give 'a' a value of 9.
Print "The value of 'a' is";*pa 'Here, we display the value of 'a' using a pointer.
-
*pa = 1 'Here we use our pointer to change the value of 'a'
Print "The new value of 'a' is";a 'Here we display the new value of 'a'.
%%
-Output:
+Affiche:
%%
The value of 'a' is 9
The new value of 'a' is 1
-%%
-{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+%%
+ {{fbdoc item="lang"}}
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+- Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
+ {{fbdoc item="diff"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgOpAt Operator @ (Address of)]]##
- - [[ProPgPointers Pointers]]
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
+ - ##[[KeyPgOpAt Opérateur @ (Adresse de)]]##
-{{fbdoc item="back" value="CatPgOpPoint|Pointer Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
+- [[ProPgPointers Pointeurs]]
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpVarptr.wakka b/fbdocs/manual/cache/KeyPgOpVarptr.wakka
index cfaece3c18..6ce102d4eb 100644
--- a/fbdocs/manual/cache/KeyPgOpVarptr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpVarptr.wakka
@@ -1,27 +1,27 @@
{{fbdoc item="title" value="Operator VARPTR (Variable pointer)"}}----
-Returns the address of a variable or object
+Renvoie l'adresse d'une variable ou un objet
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Varptr** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T// ) [[KeyPgAs as]] //T// [[KeyPgPtr ptr]]
##
-{{fbdoc item="syntax"}}##
+{{fbdoc item="usage"}}##
//result// = **Varptr** ( //lhs// )
##
{{fbdoc item="param"}}
##//lhs//##
- A variable or object.
+ Une variable ou un object.
##//T//##
- Any data type.
+ Un type de données.
-{{fbdoc item="ret"}}
- Returns the address of a variable or object.
+{{fbdoc item="section" value="Valeur retournée
+ Renvoie l'adresse d'une variable ou un objet.
{{fbdoc item="desc"}}
- This operator returns the address of its operand.
+ Cet opérateur renvoie l'adresse de son opérande.
- When the operand is of type ##[[KeyPgString String]]##, the address of the internal string descriptor is returned. Use ##[[KeyPgOpStrptr Operator Strptr (String pointer)]]## to retrieve the address of the string data.
+ Quand l'opérande est de type ##[[KeyPgString String]]##, c'est l'adresse de la chaîne du descripteur interne qui est retournée. Utilisez ##[[KeyPgOpStrptr Opérateur Strptr (Pointeur de chaîne)]]## pour retrouver l'adresse des données chaîne.
- The operand cannot be an array, but may be an array element. For example, ##"**Varptr**(myarray(0))"## returns the address of ##"myarray(0)"##.
+ L'opérande ne peut pas être un tableau, mais peut être un élément d'un tableau. Par example, ##"**VarPtr**(myarray(0))"## retourne l'adresse de ##"myarray(0)"##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/varptr.bas"}}%%(freebasic)
@@ -43,7 +43,7 @@ Print Peek( addr )
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- [[ProPgPointers Pointers]]
diff --git a/fbdocs/manual/cache/KeyPgOpXor.wakka b/fbdocs/manual/cache/KeyPgOpXor.wakka
index d266ad0095..2a220669c6 100644
--- a/fbdocs/manual/cache/KeyPgOpXor.wakka
+++ b/fbdocs/manual/cache/KeyPgOpXor.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="Operator XOR (Exclusive Disjunction)"}}----
-Returns the bitwise-xor (exclusive disjunction) of two numeric values
+Retourne la manipulation de bits Xor (disjonction exclusive) de deux valeurs numériques
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Xor** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
@@ -9,31 +9,31 @@ Returns the bitwise-xor (exclusive disjunction) of two numeric values
##
{{fbdoc item="param"}}
##//lhs//##
- The left-hand side expression.
+ Le côté gauche de l'expression.
##//T1//##
- Any numeric type.
+ Tout type numérique.
##//rhs//##
- The right-hand side expression.
+ Le côté droit de l'expression.
##//T2//##
- Any numeric type.
+ Tout type numérique.
##//Ret//##
- A numeric type (varies with ##//T1//## and ##//T2//##).
+ Un type numérique (varie avec ##//T1//## et ##//T2//##).
-{{fbdoc item="ret"}}
- Returns the bitwise-xor of the two operands.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la manipulation de bits Xor des deux opérandes.
{{fbdoc item="desc"}}
- This operator returns the bitwise-exclusion of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.
+ Cet opérateur retourne la manipulation de bits disjonction-exclusive de ses opérandes, une opération logique dont le résultat est une valeur avec ses bits positionnés en fonction des bits de ses opérandes.
- The truth table below demonstrates all combinations of a boolean-exclusion operation:
+ La table de vérité ci-dessous montre toutes les combinaisons de l'opération booléenne de disjonction exclusive:
- {{table columns="3" cellpadding="2" cells="Lhs Bit;Rhs Bit;Result;0;0;0;1;0;1;0;1;1;1;1;0"}}
+ {{table columns="" cellpadding="2" cells="Bit côté gauche;Bit côté droit;Résultat;0;0;0;1;0;1;0;1;1;1;1;0;
- No short-circuiting is performed - both expressions are always evaluated.
+ Aucun circuit-court n'est possible - les deux expressions sont toujours évaluées.
- The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.
+ Le type de retour dépend des types des valeurs passées. Les valeurs de type ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte UByte]]## et à virgule flottante sont en premier converties en ##[[KeyPgInteger Integer]]##. Si les types des deux côtés diffèrent seulement par leur signe, alors le type de retour est le même que celui du côté gauche (##//T1//##), autrement, le plus large des deux types est retourné.
- This operator can be overloaded for user-defined types.
+ Cet opérateur peut être surchargé pour les types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/operator/xor-bitwise.bas"}}%%(freebasic)
@@ -61,12 +61,12 @@ SLEEP
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, cet opérateur ne peut pas être surchargé.
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- - [[TblTruth Operator Truth Tables]]
+ - [[TblTruth Tables de vérité des opérateurs]]
{{fbdoc item="back" value="CatPgOpLogical|Logical Operators"}}{{fbdoc item="back" value="CatPgOperators|Operators"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOpen.wakka b/fbdocs/manual/cache/KeyPgOpen.wakka
index dfff4599fc..6d93fc8540 100644
--- a/fbdocs/manual/cache/KeyPgOpen.wakka
+++ b/fbdocs/manual/cache/KeyPgOpen.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OPEN"}}----
-Opens a disk file for reading or writing using file operations
+Ouvre un fichier sur le disque pour des opérations de lecture/écriture
{{fbdoc item="syntax"}}##
**Open** //filename// **For** **[[KeyPgInputfilemode Input]]** [//encoding_type//] [//lock_type//] **As** [**#**]//filenumber//
@@ -11,56 +11,56 @@ Opens a disk file for reading or writing using file operations
##
{{fbdoc item="usage"}}##
//result// = **Open** (//filename//, **For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**|**[[KeyPgAppend Append]]**}, **As** //filenumber// )
- ##//or//##
+ ##//ou//##
//result// = **Open** (//filename//, **For** **[[KeyPgBinary Binary]]**, **[[KeyPgAccess Access]]** {**Read**|**Write**}, **As** //filenumber// )
- ##//or//##
+ ##//ou//##
//result// = **Open** (//filename//, **For** **[[KeyPgRandom Random]]**, **[[KeyPgAccess Access]]** {**Read**|**Write**}, **As** //filenumber// [, **Len = ** //record_length//] )
- ##//or//##
+ ##//ou//##
**Open** //filename// **For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**|**[[KeyPgAppend Append]]**} **As** //filenumber//
- ##//or//##
+ ##//ou//##
**Open** //filename// **For** **[[KeyPgBinary Binary]]** **[[KeyPgAccess Access]]** {**Read**|**Write**} **As** //filenumber//
- ##//or//##
+ ##//ou//##
**Open** //filename// **For** **[[KeyPgRandom Random]]** **[[KeyPgAccess Access]]** {**Read**|**Write**} **As** //filenumber// [**Len = ** //record_length//]
##
{{fbdoc item="param"}}
##//filename//##
- A string value of the name of the disk file to open. Relative file paths are relative to the current directory (see ##[[KeyPgCurdir Curdir]]##).
+ Une chaîne de caractères correspondant au nom du fichier à ouvrir sur le disque. les chemins de fichiers relatifs le sont par rapport au répertoire courant (voir ##[[KeyPgCurdir CurDir]]##).
##//encoding_type//##
- The encoding to be used when reading or writing text, can be one of:
- - ##Encoding "ascii"## //(ASCII encoding is used, default)//
- - ##Encoding "utf8"## //(8-bit Unicode encoding is used)//
- - ##Encoding "utf16"## //(16-bit Unicode encoding is used)//
- - ##Encoding "utf32"## //(32-bit Unicode encoding is used)//
+ Le codage à utiliser lors de la lecture ou l'écriture du texte:
+ - ##Encodage "ascii"## //(l'encodage ASCII est utilisé, c'est celui par défaut)//
+ - ##Encoding "utf8"## //(l'encodage 8-bit Unicode est utilisé)//
+ - ##Encoding "utf16"## //(l'encodage 16-bit Unicode est utilisé)//
+ - ##Encoding "utf32"## //(l'encodage 32-bit Unicode est utilisé)//
##//access_type//##
- The type of access requested by the calling process.
- - ##Access## [##Read##] [##Write##] //(both read and write access can be used, which is the default)//
+ Le type d'accès demandé par le processus appelant.
+ - ##Accès ## [##Read##] [##Write##] // (lire et écrire peuvent être utilisés ensemble, c'est la valeur par défaut)//
##//lock_type//##
- Imposes restrictions on disk file access from other processes (threads or programs), can be either:
- - ##Shared## //(the file can be freely accessed by other processes)//
- - ##Lock## [##Read##] [##Write##] //(both read and write access can be denied to other processes)//
- ##//filenum//##
- An available file number to bind to the disk file, which can be found with ##[[KeyPgFreefile Freefile]]##.
+ Impose des restrictions sur l'accès aux fichiers disque à partir d'autres processus ("threads" ou programmes):
+ - ##Shared## //(le fichier peut être librement consulté par d'autres processus)//
+ - ##Lock## [##Read##] [##Write##] //(l'accès en lecture et écriture peut être refusé à d'autres processus)//
+ ##//filenumber//##
+ Un numéro de fichier disponible, qui peut être trouvé avec ##[[KeyPgFreefile FreeFile]]##, pour se lier au fichier sur le disque.
##//record_length//##
- The size, in bytes, of each record read from or written to the disk file. The default is 128.
+ La taille, en octets, de chaque enregistrement lu ou écrit dans le fichier disque. La valeur par défaut est 128.
-{{fbdoc item="ret"}}
- In the first usage, ##**Open**## returns zero (##0##) on success and a non-zero error code otherwise.
+{{fbdoc item="section" value="Valeur retournée
+ Dans la première utilisation, ##**Open**## retourne zéro (##0##) si succès et une valeur différente de zéro dans les autres cas.
{{fbdoc item="desc"}}
- Opens a disk file for reading and/or writing. The file number ##//file_num//## is bound to the file on disk, for use in subsequent file operations, such as ##[[KeyPgInputPp Input #]]## and ##[[KeyPgLock Lock]]##. The next available file number can be retrieved with ##[[KeyPgFreefile Freefile]]##.
+ Ouvre un fichier sur le disque en lecture et/ou en écriture. Le numéro de fichier ##//file_number//## est lié au fichier sur le disque, pour une utilisation dans les opérations ultérieures sur les fichiers, comme ##[[KeyPgInputPp Input #]]## et ##[[KeyPgLock Lock]]##. Le premier numéro de fichier disponible peut être récupéré avec ##[[KeyPgFreefile FreeFile]]##.
- The ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]## and ##[[KeyPgAppend Append]]## file modes open disk files for sequential text I/O, useful for reading or writing plain text files. When the ##[[KeyPgInputfilemode Input]]## mode is specified, only reading file operations can be used, like ##[[KeyPgLineinput Line Input #]]## and ##[[KeyPgGetfileio Get #]]##. If the disk file does not exist a runtime error will be thrown. The ##[[KeyPgOutput Output]]## mode specifies that only writing operations can be used, like ##[[KeyPgPrintPp Print #]]## and ##[[KeyPgPutfileio Put #]]##. If the disk file does not exist it is created empty. The ##[[KeyPgAppend Append]]## mode is like the ##[[KeyPgOutput Output]]## mode, except that writing operations will begin at the end of the disk file, if it exists.
+ Les modes d'ouverture de fichiers ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]## et ##[[KeyPgAppend Append]]## en entrée/sortie séquencielle de texte, sont utiles pour la lecture ou l'écriture de fichiers texte brut. Quand le mode ##[[KeyPgInputfilemode Input]]## est spécifié, seules les opérations de lecture de fichiers sont utilisables, comme ##[[KeyPgLineinput Line Input #]]## et ##[[KeyPgGetfileio Get #]]##. Si le fichier disque n'existe pas une erreur d'exécution sera produite. Quand le mode ##[[KeyPgOutput Output]]## est spécifié, seules les opérations d'écriture de fichiers sont utilisables, comme ##[[KeyPgPrintPp Print #]]## et ##[[KeyPgPutfileio Put #]]##. Si le fichier n'existe pas sur le disque, il est créé vide. Le mode ##[[KeyPgAppend Append]]## est comme le mode ##[[KeyPgOutput Output]]##, sauf que les opérations d'écriture commenceront à la fin du fichier disque, s'il existe.
- The ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]## and ##[[KeyPgAppend Append]]## file modes also allow selection of a character encoding to be used when reading from or writing text to the disk file. ASCII or a Unicode encoding may be specified (see the description of the ##//encoding_type//## parameter above).
+ Les modes d'ouverture de fichiers ##[[KeyPgInputfilemode Input]]##, ##[[KeyPgOutput Output]]## et ##[[KeyPgAppend Append]]## permettent également la sélection d'un codage de caractères à utiliser lors de la lecture ou l'écriture de texte dans le fichier disque. Un codage ASCII ou Unicode peut être spécifié (voir ci-dessus la description du paramètre ##//encoding_type//##).
- The ##[[KeyPgBinary Binary]]## and ##[[KeyPgRandom Random]]## file modes open disk files for random-access reading or writing of arbitrary sized binary data. The ##[[KeyPgBinary Binary]]## file mode allows reading and writing of simple data type values, like ##[[KeyPgByte Byte]]## or ##[[KeyPgLongint Longint]]##, using binary read or write operations, like ##[[KeyPgGetfileio Get #]]##. ##[[KeyPgLoc Loc]]## and ##[[KeyPgSeekreturn Seek]]## are among the procedures used for reading and writing to arbitrary locations in the disk file. The ##[[KeyPgRandom Random]]## file mode is similar to ##[[KeyPgBinary Binary]]##, except that file I/O operations always use a constant data size when reading or writing.
+ Les modes d'ouverture de fichiers ##[[KeyPgBinary Binary]]## et ##[[KeyPgRandom Random]]## permettent un accès aléatoire (random-access) en lecture ou écriture de données binaires de taille arbitraire. Le mode ##[[KeyPgBinary Binary]]## permet la lecture ou l'écriture de valeurs de données de type simple, comme ##[[KeyPgByte Byte (=octet)]]## ou ##[[KeyPgLongint LongInt (=entier long)]]##, en utilisant des opérations de lecture ou d'écriture binaire, comme ##[[KeyPgGetfileio Get #]]##. ##[[KeyPgLoc LOC]]## et ##[[KeyPgSeekreturn Seek]]## sont des méthodes utilisées pour lire et écrire à des emplacements arbitraires dans un fichier disque. Le mode ##[[KeyPgRandom Random]]## est similaire à ##[[KeyPgBinary Binary]]##, sauf que les opérations d'entrée/sortie utilisent toujours une taille constante de données lors d'une lecture ou d'une écriture.
- By default, the ##[[KeyPgBinary Binary]]## and ##[[KeyPgRandom Random]]## file modes allow both reading and writing operations on the opened disk file, but this can be changed by specifying an access type (see the description for the ##//access_type//## parameter above).
+ Par défaut, les modes ##[[KeyPgBinary Binary]]## et ##[[KeyPgRandom Random]]## permettent les deux opérations de lecture et d'écriture sur le fichier ouvert sur le disque, mais cela peut être changé en spécifiant un type d'accès (voir ci-dessus la description pour le paramètre ##//access_type//##).
- For any file mode, access to the opened disk file can be restricted or granted to other threads or programs by specifying a lock type (see the description for the ##//lock_type//## parameter above). If no lock type is specified, other threads of the current program can freely open the disk file (##Shared##), while other programs cannot (##Lock Read Write##). ##[[KeyPgLock Lock]]## and ##[[KeyPgUnlock Unlock]]## can be used to temporarily restrict access to parts of a file.
+ Pour tout mode, l'accès au fichier ouvert sur le disque peut être restreint ou accordé à d'autres "threads" ou des programmes en spécifiant un type de verrou (voir ci-dessus la description pour le paramètre ##//lock_type//##). Si aucun type de verrou n'est spécifié, les autres "threads" du programme actuel peuvent librement ouvrir le fichier sur le disque (##Shared##), tandis que d'autres programmes ne peuvent pas (##Lock Read Write##). ##[[KeyPgLock Lock]]## et ##[[KeyPgUnlock Unlock]]## peut être utilisés pour restreindre provisoirement l'accès à des parties d'un fichier.
- The error code returned by ##**Open**## can be checked using ##[[KeyPgErr Err]]## in the next line. The function version of ##**Open**## returns directly the error code as an integer.
+ Le code d'erreur renvoyé par ##**Open**## peut être vérifié à l'aide de ##[[KeyPgErr Err]]## dans la ligne suivante. La version fonction de ##**Open**## retourne directement le code d'erreur sous forme d'un entier.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/open.bas"}}%%(freebasic)
@@ -110,21 +110,22 @@ End If
%%
{{fbdoc item="target"}}
- - Linux requires the ##//filename//## case matches the real name of the file. Windows and DOS are case insensitive.
- - Path separators in Linux are forward slashes ##/##. Windows uses backward slashes ##\## but it allows for forward slashes . DOS uses backward slashes ##\##.
- - On Windows, a file number used in a dynamic link library is not the same as an identical file number used in the main program. File numbers can not be passed or returned and then used between a DLL and an executable.
+ - Linux nécessite que la casse de la police de ##//filename//## corresponde au nom réel du fichier. Windows et DOS ne sont pas sensibles à la casse.
+ - Les séparateurs de chemin de Linux sont des barres obliques ##/##. Windows utilise les barres obliques vers l'arrière ##\## mais il permet les barres obliques . DOS utilise les barres obliques inverses ##\##.
+ - Sous Windows, un numéro de fichier utilisé dans une bibliothèque de liens dynamiques n'est pas le même qu'un numéro de fichier identique utilisé dans le programme principal. Les numéros de dossier ne peut être passés ou renvoyés, puis utilisés entre une DLL et un fichier exécutable.
{{fbdoc item="diff"}}
- - Using MS-DOS device names to open streams or hardware devices (##"LPT:"##, ##"SCR:"##, etc.) is supported only in the //[[CompilerOptlang -lang qb]]// dialect; for other modes ""FreeBASIC's"" new composite keywords must be used: see ##[[KeyPgOpenCom Open Com]]##, ##[[KeyPgOpenCons Open Cons]]##, ##[[KeyPgOpenErr Open Err]]##, ##[[KeyPgOpenPipe Open Pipe]]##, ##[[KeyPgOpenLpt Open Lpt]]##, ##[[KeyPgOpenScrn Open Scrn]]##.
- - ##**Open**## can be called as a procedure that returns an error code.
+ L'utilisation des noms de périphériques MS-DOS pour ouvrir des flots ou des périphériques (##"LPT:"##, ##"SCR:"##, etc.) est permise seulement dans le dialecte //[[CompilerOptlang -lang qb]]//; pour les autres modes FreeBasic de nouveaux mots-clés composites doivent être utilisés: voir ##[[KeyPgOpenCom Open Com]]##, ##[[KeyPgOpenCons Open Cons]]##, ##[[KeyPgOpenErr Open Err]]##, ##[[KeyPgOpenPipe Open Pipe]]##, ##[[KeyPgOpenLpt Open Lpt]]##, ##[[KeyPgOpenScrn Open Scrn]]##.
+ - ##**Open**## peut être appelé comme une procédure qui retourne un code d'erreur.
{{fbdoc item="lang"}}
- - The //[[CompilerOptlang -lang qb]]// dialect supports the old GW-BASIC-style syntax ##OPEN mode_string, #filenum, filename [length]## with mode_string being ##"I"## for input, ##"O"## for output, ##"A"## for append, ##"R"## for random, ##"B"## for binary.
+ - Le dialecte //[[CompilerOptlang -lang qb]]// permet la syntaxe du style GW-BASIC ##OPEN mode_string, #filenum, filename [length]## avec mode_string qui peut être ##"I"## pour entrée, ##"O"## pour sortie, ##"A"## pour ajout, ##"R"## pour aléatoire (random), ##"B"## pour binaire.
{{fbdoc item="see"}}
- - ##[[KeyPgErr Err with a list of error codes]]##
+ - ##[[KeyPgErr Err]]## et [[TblRuntimeErrors Codes des erreurs de fonctionnement]]
- ##[[KeyPgClose Close]]##
- ##[[KeyPgFreefile Freefile]]##
- ##[[KeyPgOpenCons Open Cons]]##, ##[[KeyPgOpenErr Open Err]]##, ##[[KeyPgOpenPipe Open Pipe]]##, ##[[KeyPgOpenLpt Open Lpt]]##, ##[[KeyPgOpenCom Open Com]]##, ##[[KeyPgOpenScrn Open Scrn]]##
-{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
+{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
+
diff --git a/fbdocs/manual/cache/KeyPgOpenCom.wakka b/fbdocs/manual/cache/KeyPgOpenCom.wakka
index 85724dc978..61a93a8760 100644
--- a/fbdocs/manual/cache/KeyPgOpenCom.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenCom.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OPEN COM"}}----
-Opens a serial port for input and output
+Ouvre un port série en entrée et sortie
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Open Com** ( byref //options// [[KeyPgAs as]] [[KeyPgString string]], **AS** //filenum// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,73 +9,73 @@ Opens a serial port for input and output
##
{{fbdoc item="param"}}
##//options//##
- A [[KeyPgString string]] containing options used in controlling the port.
+ A [[KeyPgString String]] contenant les options de contrôle du port.
##//filenum//##
- The file number to bind to the port.
+ Le numéro de fichier à associer au port.
-{{fbdoc item="ret"}}
- Returns zero (0) on success and a non-zero error code otherwise.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne zéro (0) si succès et autrement un code d'erreur différent de zéro.
{{fbdoc item="desc"}}
- This command opens a serial port of the PC, allowing to send and receive data by using the normal file commands as PRINT #, INPUT#, GET #,...
+ Cette commande ouvre un port série du PC, ce qui permet d'envoyer et de recevoir des données en utilisant les commandes de fichiers normales comme PRINT #, INPUT #, GET #,...
- The main parameter is a [[KeyPgString string]] that describes, at the very least, which communications port to open. It has the format:
+ Le paramètre principal est une [[KeyPgString String]] qui décrit, à tout le moins, le port de communication à ouvrir. Elle a le format:
##"**COM**//n//**:** [ //baudrate// ][ , [ //parity// ][ , [ //data_bits// ][ , [ //stop_bits// ][ , [ //extended_options// ]]]]]"##
- where,
+ où,
##//n//##
- Com port to open. "1", "2", "3", "4", etc. Some platforms will support more serial ports depending on how the operating system is configured. Where ##//n//## is not given, "COM:" will map to "COM1:", except on Linux where "COM:" maps to "/dev/modem"
+ Port Com à ouvrir. "1", "2", "3", "4", etc. Certaines plates-formes ont plus de ports série selon la façon dont le système d'exploitation est configuré. Si ##//n//## est absent, "COM:" sera "COM1:", sauf sous Linux où "COM:" sera "/dev/modem"
##//baudrate//##
- "300" (default), "1200", ..., etc.
+ "300" (par défaut), "1200", ..., etc.
##//parity//##
- "N" (none), "E" (even, default), "O" (odd), "S" (space), "M" (mark), "PE" (QB-quirk: checked, even parity)
+ "N" (none=aucune), "E" (even=paire, par défaut), "O" (odd=impaire), "S" (space=espace), "M" (mark=marque), "PE" (QB-quirk: checked, even parity)
##//data_bits//##
- "5", "6", "7" (default) or "8".
+ "5", "6", "7" (par défaut) or "8".
##//stop_bits//##
- "1", "1.5" or "2". //(default value depends on baud rate and data bits, see table below)//
+ "1", "1.5" or "2". //(la valeur par défaut dépend de "baud rate" et "data bits", voir table ci-dessous)//
- {{table columns="2" cellpadding="2" cells="Condition;Default number of stop bits;baud rate <= 110 and data bits = 5;1.5;baud rate <= 110 and data bits >= 6;2;baud rate > 110;1"}}
+ {{table columns="" cellpadding="2" cells="Condition;Nombre de bits d'arrêt par défaut;baud rate <= 110 et data bits = 5;1.5;baud rate <= 110 et data bits >= 6;2;baud rate > 110;1;
##//extended_options//##
- Miscellaneous options. //(See table below)//
+ Options diverses. //(Voir table ci-dessous)//
- {{table columns="2" cellpadding="2" cells="Option;Action;'CSn';Set the CTS duration (in ms) (n>=0), 0 = turn off, default = 1000;'DSn';Set the DSR duration (in ms) (n>=0), 0 = turn off, default = 1000;'CDn';Set the Carrier Detect duration (in ms) (n>=0), 0 = turn off;'OPn';Set the 'Open Timeout' (in ms) (n>=0), 0 = turn off;'TBn';Set the 'Transmit Buffer' size (n>=0), 0 = default, depends on platform;'RBn';Set the 'Receive Buffer' size (n>=0), 0 = default, depends on platform;'RS';Suppress RTS detection;'LF';Communicate in ASCII mode (add LF to every CR) - Win32 doesn't support this one;'ASC';same as 'LF';'BIN';The opposite of LF and it'll always work;'PE';Enable 'Parity' check;'DT';Keep DTR enabled after CLOSE;'FE';Discard invalid character on error;'ME';Ignore all errors;'IRn';IRQ number for COM (only supported (?) on DOS)"}}
+ {{table columns="" cellpadding="2" cells="Option;Action;'CSn';Établit la durée de CTS (en ms) (n>=0), 0 = arrêter, par défaut = 1000;'DSn';Établit la durée de DSR (en ms) (n>=0), 0 = arrêter, par défaut = 1000;'CDn';Établit la durée de Carrier Detect (en ms) (n>=0), 0 = arrêter;'OPn';Établit 'Open Timeout' (en ms) (n>=0), 0 = arrêter;'TBn';Établit la taille de 'Transmit Buffer' (n>=0), 0 = par défaut, dépend de la plate-forme ;'RBn';Établit la taille de 'Receive Buffer' (n>=0), 0 = par défaut, dépend de la plate-forme;'RS';Supprime la détection de RTS;'LF';Communique en mode ASCII (ajoute LF à chaque CR) - Win32 ne permet pas;'ASC';comme 'LF';'BIN';L'opposé de LF et fonctionnera toujours;'PE';Valide recherche de 'Parity';'DT';Conserve DTR valide après CLOSE;'FE';Rejeter caractère non valide en cas d'erreur;'ME';Ignorer toutes les erreurs;'IRn';numéro d'IRQ pour COM (supporté seulement (?) sous DOS);
- All items except for the COM port are optional. The order of ##//baudrate//##, ##//parity//##, ##//data_bits//##, ##//stop_bits//## is fixed. Any skipped fixed item ( ##//baudrate//##, etc...) must be empty.
+ Tous les items sont facultatifs, sauf pour le port COM. L'ordre de ##//baudrate//##, ##//parity//##, ##//data_bits//##, ##//stop_bits//## est fixé. Tout élément fixe sauté ( ##//baudrate//##, etc...) doit être vide.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/opencom1.bas"}}%%(freebasic)
OPEN COM "COM1:9600,N,,2" as 1
%%
- Opens COM1 with 9600 baud, no parity, 7 data bits and 2 stop bits.
+ Ouvre COM1 avec 9600 baud, no parity, 7 data bits et 2 stop bits.
{{fbdoc item="filename" value="examples/manual/fileio/opencom2.bas"}}%%(freebasic)
OPEN COM "COM1:115200" as 1
%%
- Opens COM1 with 115200 baud, "even" parity, 7 data bits and 1 stop bits.
+ Ouvre COM1 avec 115200 baud, "even" parity, 7 data bits et 1 stop bits.
-{{fbdoc item="target"}}
- - On the Windows platform ##"COM:"## maps to ##"COM1:"##
- - On the Linux platform
- ##"COM:"## maps to ##"/dev/modem"##
- ##"COM1:"## maps to ##"/dev/ttyS0"##
- ##"COM2:"## maps to ##"/dev/ttyS1"##, etc
- ##"/dev/xyz:"## maps to ##"/dev/xyz"##, etc
- - The DOS serial driver is experimental and can access COM ports 1 to 4
- It uses the following base io and IRQ's as default:
+{{fbdoc item="section" value="Différences de plates-formes
+ - Sur les plates-formes Windows ##"COM:"## est ##"COM1:"##
+ - Sur les plates-formes Linux
+ ##"COM:"## est ##"/dev/modem"##
+ ##"COM1:"## est ##"/dev/ttyS0"##
+ ##"COM2:"## est ##"/dev/ttyS1"##, etc
+ ##"/dev/xyz:"## est ##"/dev/xyz"##, etc
+ Le pilote série DOS est expérimental et peut accéder aux ports COM 1 à 4
+ Il utilise la base suivante I/O et IRQ par défaut:
COM1 - &h3f8 - IRQ4
COM2 - &h2f8 - IRQ3
COM3 - &h3e8 - IRQ4
COM4 - &h2e8 - IRQ3
- Since fbc-0.18.4, an alternate IRQ can be specified using the the "IRn" protocol option where "n" is 3 through 7.
- Currently not supported: IRQ's on the slave PIC, alternate base I/O addresses, Timeouts and most errors as detected in QB, hardware flow control, FIFO's.
- ##"COM:"## maps to ##"COM1:"##
+ Depuis fbc-0.18.4, une alternative IRQ peut être spécifiée en utilisant l'option du "IRn" protocole où "n" va de 3 à 7.
+ Á l'heure actuelle pas pris en charge: IRQ sur le PIC esclave, base alternative adresses I / O, Délais d'attente et la plupart des erreurs détectées dans QB, contrôle de flux matériel, FIFO.
+ ##"COM:"## est ##"COM1:"##
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect the old syntax ##OPEN "COMx:...## is supported.
+ - dans le dialecte //[[CompilerOptlang -lang qb]]// l'ancienne syntaxe ##OPEN "COMx:...## est admise.
{{fbdoc item="diff"}}
- - In QB the syntax was ##OPEN "COMx:[baudrate] [,parity, [data_bits, [stop_bits, [extended_options]]]]" FOR INPUT|OUTPUT|RANDOM AS [#] n##
- - In QB, only ##"COM1:"## and ##"COM2:"## are supported. In FreeBASIC, any correctly configured serial port may be used.
+ Dans la syntaxe QB il y avait ##OPEN "COMx:[baudrate] [,parity, [data_bits, [stop_bits, [extended_options]]]]" FOR INPUT|OUTPUT|RANDOM AS [#] n##
+ - Dans QB, seulement ##"COM1:"## et ##"COM2:"## sont supportés. Dans FreeBASIC, tout port série correctement configuré peut être utilisé.
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgOpenCons.wakka b/fbdocs/manual/cache/KeyPgOpenCons.wakka
index 0111f90e47..6e6e69b3b4 100644
--- a/fbdocs/manual/cache/KeyPgOpenCons.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenCons.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OPEN CONS"}}----
-Opens the console's standard input (//stdin//) or output (//stdout//) streams for use in file operations.
+Ouvre le flux d'entrée (//stdin//) ou de sortie (//stdout//) standard de la console pour une utilisation dans des opérations sur les fichiers.
{{fbdoc item="syntax"}}##
**Open Cons** **As** [**#**]//filenumber//
@@ -13,26 +13,26 @@ Opens the console's standard input (//stdin//) or output (//stdout//) streams fo
##
{{fbdoc item="param"}}
##//filenumber//##
- An available //file number// to bind to the //stdin// or //stdout// stream, which can be found with ##[[KeyPgFreefile Freefile]]##.
+ Un //numéro de fichier// disponible pour communiquer avec les flux //stdin// ou //stdout//, qui peut être trouvé avec ##[[KeyPgFreefile FreeFile]]##.
-{{fbdoc item="ret"}}
- In the first usage, ##**Open Cons**## returns zero (0) on success and a non-zero error code otherwise.
+{{fbdoc item="section" value="Valeur retournée
+ Dans le premier usage, ##**Open Cons**## retourne zéro (0) en cas de succès et sinon un code erreur différent de zéro.
{{fbdoc item="desc"}}
- ##**Open Cons**## opens the console's //stdin// or //stdout// streams for reading or writing. A //file number// is bound to the stream, which is used in subsequent file operations, such as ##[[KeyPgInputPp Input #]]##. An available //file number// can be retrieved with ##[[KeyPgFreefile Freefile]]##.
+ ##**Open Cons**## ouvre les flux console //stdin// ou //stdout// pour une opération de lecture ou d'écriture. Un //numéro de fichier// est lié au flux, qui est utilisé dans des opérations de fichier ultérieures, telles que ##[[KeyPgInputPp Input #]]##. Un //numéro de fichier// disponible peut être récupéré avec ##[[KeyPgFreefile FreeFile]]##.
- The ##[[KeyPgInputfilemode Input]]## //file mode// opens the //stdin// stream for reading file operations, such as ##[[KeyPgInputPp Line Input #]]##, while the ##[[KeyPgOutput Output]]## //file mode// opens the //stdout// stream for writing file operations, such as ##[[KeyPgPrintPp Print #]]##. The ##[[KeyPgOutput Output]]## //file mode// is the default if not specified.
+ ##[[KeyPgInputfilemode Input]]## //file mode// ouvre le flux //stdin// pour des opérations de lecture de fichier, comme ##[[KeyPgInputPp Line Input #]]##, alors que ##[[KeyPgOutput Output]]## //file mode// ouvre le flux //stdout// pour des opérations d'écriture de fichier, comme ##[[KeyPgPrintPp Print #]]##. Le //file mode// est ##[[KeyPgOutput Output]]## par défaut s'il n'a pas été spécifié.
- The //stdin// and //stdout// streams are the ones used when the calling process' input or output is redirected (piped) by OS commands, or when it is opened with ##[[KeyPgOpenPipe Open Pipe]]##.
+ Les flux //stdin// et //stdout// sont ceux utilisés lorsque le processus d'appel d'entrée/sortie est redirigé par les commandes du système d'exploitation, ou quand il est ouvert avec ##[[KeyPgOpenPipe Open Pipe]]##.
- To open both the //stdin// and //stdout// streams for file operations, a process must use multiple //file numbers//.
+ Pour ouvrir à la fois //stdin// et //stdout// pour des opérations sur les fichiers, un processus doit utiliser plusieurs //numéros de fichier//s.
-**Runtime errors:**
- ##**Open Cons**## throws one of the following [[ProPgErrorHandling runtime errors]]:
+**Erreurs de fonctionnement:**
+ ##**Open Cons**## produit l'une des [[ProPgErrorHandling erreurs de fonctionnement]] suivantes:
- //(##1##) Illegal function call//
- - Filenumber was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that filenumber is free.
+ //(##1##) Illegal function call : Appel illégal de fonction//
+ //filenumber// n'est pas libre actuellement. Utilisez ##[[KeyPgFreefile FreeFile]]## pour vous assurer que //filenumber// est libre.
{{fbdoc item="ex"}}
@@ -51,7 +51,7 @@ Sleep
%%
{{fbdoc item="diff"}}
- - In QB the syntax was ##OPEN "CON:" FOR INPUT|OUTPUT AS [#] //filenum//##
+ - Dans QB la syntaxe est ##OPEN "CON:" FOR INPUT|OUTPUT AS [#] //filenum//##
{{fbdoc item="see"}}
- ##[[KeyPgOpenScrn Open Scrn]]##
diff --git a/fbdocs/manual/cache/KeyPgOpenErr.wakka b/fbdocs/manual/cache/KeyPgOpenErr.wakka
index 3195e100be..3d7cf65fa3 100644
--- a/fbdocs/manual/cache/KeyPgOpenErr.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenErr.wakka
@@ -1,37 +1,37 @@
{{fbdoc item="title" value="OPEN ERR"}}----
-Opens both the standard input (//stdin//) and standard error (//stderr//) streams for file operations.
+Ouvre le flux d'entrée standard (//stdin//) et le flux d'erreur standard (//stderr//) pour des opérations sur les fichiers.
{{fbdoc item="syntax"}}##
**[[KeyPgOpen Open]] Err** [for //mode//] [[KeyPgAs as]] [#]//filenum// [[KeyPgAs as]] [[KeyPgInteger integer]]
##
{{fbdoc item="usage"}}##
**Open Err** [for //mode//] as [#]//filenum//
- //or//
+ //ou//
//result// = **Open Err**( [for //mode//] as [#]//filenum// )
##
{{fbdoc item="param"}}
##//mode//##
- Ignored.
+ Ignoré.
##//filenum//##
- An unused file number.
+ Un numéro de fichier inutilisé.
-{{fbdoc item="ret"}}
- Zero is returned if ##**Open Err**## completed successfully, otherwise a non-zero value is returned to indicate failure.
+{{fbdoc item="section" value="Valeur retournée
+ Zéro est retourné si ##**Open Err**## a fonctionné avec succès, sinon une valeur non nulle est renvoyée pour indiquer un échec.
{{fbdoc item="desc"}}
- This command opens ##stdin## to read from and ##stderr## to write to the console allowing read and write operations with normal file commands.
+ Cette commande ouvre ##//stdin//## pour une opération de lecture et ##stderr## pour une opération d'écriture sur la console permettant des opérations de lecture et d'écriture avec des commandes de fichiers normales.
- ##stderr## is an output stream different from ##stdout## allowing error messages to be redirected separately from the main console output.
+ ##//stderr//## est un flux de sortie différent de ##//stdout//## permettant la redirection séparée des messages d'erreur à partir de la sortie principale de la console.
- The normal console commands, such as ##[[KeyPgColor Color]]## and ##[[KeyPgLocate Locate]]##, do not work in this mode, because they do not accept a file number.
+ Les commandes de la console normales, comme ##[[KeyPgColor Color]]## et ##[[KeyPgLocate Locate]]##, ne fonctionnent pas dans ce mode, parce qu'ells n'acceptent pas un numéro de fichier.
- The ##[For Input|Output]## ##//mode//## is allowed for compatibility, but is ignored.
+ Le ##//mode//## ##[For Input|Output]## n'existe que pour la compatibilité, mais il est ignoré.
-**Runtime errors:**
- ##**Open Err**## throws one of the following [[ProPgErrorHandling runtime errors]]:
+**Erreurs de fonctionnement:**
+ ##**Open Err**## produit l'une des [[ProPgErrorHandling erreurs de fonctionnement]] suivantes:
- //(##1##) Illegal function call//
- - Filenumber was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that filenumber is free.
+ //(##1##) Illegal function call : Appel illégal de fonction//
+ //filenumber// n'est pas libre actuellement. Utilisez ##[[KeyPgFreefile FreeFile]]## pour vous assurer que //filenumber// est libre.
{{fbdoc item="ex"}}
@@ -46,7 +46,7 @@ sleep
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgOpen Open]]##
diff --git a/fbdocs/manual/cache/KeyPgOpenLpt.wakka b/fbdocs/manual/cache/KeyPgOpenLpt.wakka
index fad28ee0a5..87e4fad751 100644
--- a/fbdocs/manual/cache/KeyPgOpenLpt.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenLpt.wakka
@@ -1,54 +1,54 @@
{{fbdoc item="title" value="OPEN LPT"}}----
-Open a printer device
+Ouvre un périphérique imprimante
{{fbdoc item="syntax"}}##
**Open Lpt** ["[LPT[x]:][//Printer_Name//][,//TITLE=Doc_Title//][,//EMU=TTY//]"] [For Input|Output] [[KeyPgAs as]] #//filenum//
##
{{fbdoc item="usage"}}##
**Open Lpt** "LPT..." [[KeyPgAs as]] [#]//filenum//
- //or//
+ //ou//
//result// = **Open Lpt**( "LPT..." [[KeyPgAs as]] [#]//filenum// )
##
{{fbdoc item="param"}}
##//x//##
- Specifies a port number. If omitted, output is sent to the system print spooler.
+ Spécifie un numéro de port. S'il est omis, la sortie est envoyée de spooleur d'impression du système.
##//Printer_Name//##
- Name of printer to open. This parameter is ignored on DOS.
+ Nom de l'imprimante à ouvrir. Ce paramètre est ignoré sous DOS.
##//TITLE=Doc_Title//##
- Title of the print job as seen by the printer spooler. This parameter is ignored on DOS.
+ Titre de l'impression comme on le voit sur le spooler d'imprimante. Ce paramètre est ignoré sous DOS.
##//EMU=TTY//##
- Emulation of TTY output on a windows GDI printer, using driver text imaging. This parameter is ignored on DOS and Linux.
+ Emulation de sortie TTY sur une imprimante GDI pour Windows, en utilisant un pilote d'imagerie de texte. Ce paramètre est ignoré sous DOS et Linux.
##For Input|Output##
- clause is allowed for compatibility, but it is ignored.
+ clause pour la compatibilité, mais ignorée.
##//filenum//##
- An unused file number to assign to the device.
+ Un numéro de fichier utilisé pour l'attribuer à l'appareil.
-{{fbdoc item="ret"}}
- Zero is returned if **Open Lpt** completed successfully, otherwise a non-zero value is returned to indicate failure.
+{{fbdoc item="section" value="Valeur retournée
+ Zéro si succès complet de **Open Lpt**, autrement une valeur différente de zéro pour indiquer un échec.
{{fbdoc item="desc"}}
- **Open Lpt** opens a connection to a printer device. The connection is treated like a file, so data may be written to the printer using ##[[KeyPgPrint Print]]## and ##[[KeyPgPutfileio Put #]]## commands.
+ **Open Lpt** ouvre une connexion avec un périphérique d'impression. La connexion est traitée comme un fichier, afin que les données puissent être écrites à l'imprimante à l'aide des commandes ##[[KeyPgPrint Print]]## et ##[[KeyPgPutfileio Put #]]##.
- Any printer attached to the system may be opened with **Open Lpt**
+ Toute imprimante reliée au système peut être ouverte avec **Open Lpt**
- ##**Open Lpt** "LPT:" ...## will try to open the default printer on Windows and Linux, and "LPT1:" on DOS.
+ ##**Open Lpt** "LPT:" ...## va essayer d'ouvrir l'imprimante par défaut sur Windows et Linux, et "LPT1:" sous DOS.
- ##[[KeyPgLprint Lprint]]## will automatically try to open the default printer on Windows and Linux, and ##"LPT1:"## on DOS.
+ ##[[KeyPgLprint LPrint]]## va automatiquement essayez d'ouvrir l'imprimante par défaut sur Windows et Linux, et "LPT1:" sous DOS.
-Platform specific notes:
+Notes spécifiques aux plates-formes:
- ==Windows==
- The argument EMU=TTY assumes printable ASCII or Unicode text, and applies printer driver text imaging to the input. EMU=TTY also allows the usage of CR, LF, BS, TAB, FF, etc., for virtual print-head movement...even when the printer is a GDI printer and therefore doesn't itself understand these special characters. If ",EMU=TTY" is omitted, the data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Other useful emulation modes aren't supported yet.
+ **Windows**
+ L'argument EMU=TTY suppose imprimables les textes ASCII ou Unicode, et applique un pilote d'imagerie de texte à l'imprimante pour la sortie. EMU=TTY permet aussi l'usage de CR, LF, BS, TAB, FF, etc., pour le mouvement de tête d'impression virtuelle...même si l'imprimante est une imprimante GDI et par conséquent ne comprend pas ces caractères spéciaux. Si ",EMU=TTY" est omis, les données doivent être envoyées dans le langage de l'imprimante (ESC/P, HPGL, PostScript, etc...). Les autres modes d'émulation utiles ne sont pas encore pris en charge.
- ==Linux==
- A printer spooler available through ##lp## must be installed to access printers by name or a default printer. Spooler access was tested only with CUPS, but other spoolers may work that are invoked through ##lp##. Port are zero based on linux. ##"LPT1:"## corresponds with ##"/dev/lp0"##.
+ **Linux**
+ Un spooleur d'imprimante disponible par le biais de ##lp## doit être installé pour accéder aux imprimantes par leur nom ou à une imprimante par défaut. L'accès au spooleur a été testé uniquement avec CUPS, mais d'autres spoolers peuvent travailler s'ils sont invoqués par ##lp##. Les ports sont basés sur zéro sous Linux. ##"LPT1:"## correspond à ##"/dev/lp0"##.
- The data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Emulation modes aren't supported yet.
+ Les données doivent être envoyées dans le langage de l'imprimante (ESC/P, HPGL, PostScript, etc...). Les modes d'émulation ne sont pas encore pris en charge.
- ==DOS==
- FreeBASIC does not support print spoolers on DOS. Printers must be accessible through ##"LPTx:"##.
+ **DOS**
+ FreeBASIC ne supporte pas les spooleurs d'impression sous DOS. Les imprimantes sont accessible par le biais de ##"LPTx:"##.
- The data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Emulation modes aren't supported yet.
+ Les données doivent être envoyées dans le langage de l'imprimante (ESC/P, HPGL, PostScript, etc...). Les modes d'émulation ne sont pas encore pris en charge.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/openlpt1.bas"}}%%(freebasic)
@@ -105,7 +105,7 @@ Print "Printing Completed!"
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect the old syntax is supported OPEN "LPT:..." . This syntax used in the other dialects will open a regular file.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]// l'ancienne syntaxe est supportée OPEN "LPT:..." . Cette syntaxe utilisée dans les autres dialectes ouvrira un fichier régulier.
{{fbdoc item="see"}}
- ##[[KeyPgLprint Lprint]]##
diff --git a/fbdocs/manual/cache/KeyPgOpenPipe.wakka b/fbdocs/manual/cache/KeyPgOpenPipe.wakka
index b7b5af0d2b..caffb18314 100644
--- a/fbdocs/manual/cache/KeyPgOpenPipe.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenPipe.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OPEN PIPE"}}----
-Opens an external process' standard input (//stdin//) or output (//stdout//) stream for file operations.
+Ouvre un processus externe de flux d'entrée (//stdin//) ou de sortie (//stdout//) pour des opérations sur les fichier.
{{fbdoc item="syntax"}}##
**Open Pipe** //shell_command// **For** **[[KeyPgInputfilemode Input]]** **As** [**#**]//filenumber//
@@ -8,57 +8,63 @@ Opens an external process' standard input (//stdin//) or output (//stdout//) str
##
{{fbdoc item="usage"}}##
//result// = **Open Pipe**( //command//, **For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**}, **As** //filenumber// )
- ##//or,//##
+ ##//ou,//##
//result// = **Open Pipe**( //command//, **For** **[[KeyPgBinary Binary]]**, //access_type//, **As** //filenumber// )
- ##//(or in the QB-like syntax,)//##
+ ##//(ou dans la syntaxe QB-like,)//##
**Open Pipe** //filename// **For** {**[[KeyPgInputfilemode Input]]**|**[[KeyPgOutput Output]]**} **As** //filenumber//
- ##//(or,)//##
+ ##//(ou,)//##
**Open Pipe** //filename// **For** **[[KeyPgBinary Binary]]** //access_type// **As** //filenumber//
##
{{fbdoc item="param"}}
##//shell_command//##
- The external process to execute in the operating system command shell. Relative file paths are relative to the current directory (see ##[[KeyPgCurdir Curdir]]##). When opening a pipe for a process that requires double quotes in either its executable path, or its arguments, the entire pipe string should be nested inside of double quotes.
+ Le processus externe à exécuter dans le //shell// de commande du système d'exploitation. Les chemins relatifs de fichiers sont relatifs au répertoire courant (voir ##[[KeyPgCurdir CurDir]]##). Lors de l'ouverture d'un //pipe// pour un processus qui exige des guillemets doubles dans le chemin de son exécutable ou de ses arguments, la chaîne complète du //pipe// doit être imbriquée à l'intérieur de guillemets doubles.
##//access_type//##
- The type of read or write access requested by the calling process.
- - ##[[KeyPgAccess Access]]## {##Read##|##Write##} //(either the //stdin// or //stdout// stream of the external process can be opened)//
+ Le type d'accès en lecture ou écriture demandé par le processus appelant.
+ - ##[[KeyPgAccess Access]]## {##Read##|##Write##} (le flux //stdin// ou //stdout// du processus externe sera ouvert)
##//filenumber//##
- An available file number to bind to the external process' //stdin// or //stdout// stream.
+ Un numéro de fichier disponible pour se lier au flux //stdin// ou //stdout// du processus externe.
{{fbdoc item="ret"}}
- In the first usage, ##**Open Pipe**## returns zero (0) on success and a non-zero error code otherwise.
+ Dans la première utilisation, ##**Open Pipe**## retourne zéro (0) si succès et sinon un code d'erreur différent de zéro.
{{fbdoc item="desc"}}
- ##**Open Pipe**## executes another process in the command shell and opens either its //stdin// or //stdout// streams for reading or writing. A //file number// is bound to the stream, which is used in subsequent file operations, such as ##[[KeyPgInputPp Input #]]##. An available ##//filenumber//## can be retrieved with ##[[KeyPgFreefile Freefile]]##. If the external process does not exist, a runtime error is thrown.
+ ##**Open Pipe**## exécute un autre processus dans le //shell// de commande et ouvre l'un des deux flux //stdin// ou //stdout// pour une lecture ou une écriture. Un //filenumber (= numéro de fichier)// est lié au flux et est utilisé dans les opérations de fichier ultérieures, telles que ##[[KeyPgInputPp Input #]]##. Un ##//filenumber (= numéro de fichier)//## utilisable peut être déterminé avec ##[[KeyPgFreefile FreeFile]]##. Si le processus externe n'existe pas, une erreur d'exécution est émise.
- The ##[[KeyPgInputfilemode Input]]## and ##[[KeyPgOutput Output]]## //file modes// open the external process' //stdin// and //stdout// streams, respectively, for sequential text I/O, useful for reading or writing plain text. Characters, words or whole lines can then be read or written using text-mode file operations, such as ##[[KeyPgLineinput Line Input #]]## and ##[[KeyPgPrintPp Print #]]##.
+ Les ## //file modes// ##[[KeyPgInputfilemode Input]]## et ##[[KeyPgOutput Output]]## ouvrent, respectivement, les flux //stdin// et //stdout// du processus externe, pour une entrée/sortie texte, très utile pour la lecture ou l'écriture du texte brut. Les caractères, les mots ou lignes de caractères peuvent ensuite être lus ou écrits à l'aide des opérations en mode texte sur les fichiers, commme ##[[KeyPgLineinput Line Input #]]## et ##[[KeyPgPrintPp Print #]]##.
- The ##[[KeyPgBinary Binary]]## //file mode// opens the external process' //stdin// or //stdout// streams - depending on the //access type// specified (see description of the ##//access_type//## parameter above) - for random-access reading or writing of arbitrarily sized and interpreted raw data. Simple data type values, like ##[[KeyPgByte Byte]]## and ##[[KeyPgLongint Longint]]##, and whole chunks of memory can be read from or written to the streams with binary-mode file operations like ##[[KeyPgGetfileio Get #]]## and ##[[KeyPgPutfileio Put #]]##.
- Bidirectional pipes are not supported by FB and must be implemented using the OS' API functions.
-{{fbdoc item="target"}}
- - The ##[[KeyPgBinary Binary]]## //file mode// is not supported on all platforms; ##**Open Pipe**## will throw an error if it is unable to open the external process' //stdin// or //stdout// streams in binary mode.
-
-
-
-**Runtime errors:**
- ##**Open Pipe**## throws one of the following [[ProPgErrorHandling runtime errors]]:
+ Le //file mode// ##[[KeyPgBinary Binary]]## ouvre les flux //stdin// ou //stdout// du processus externe - en fonction de l'//access type (= type d'accès)// spécifié (voir plus loin la description du paramètre ##//access_type//##) - pour des accès-aléatoires (random-access) en lecture ou écriture de données brutes de taille arbitraire. Des valeurs de données de types simples, comme ##[[KeyPgByte Byte]]## et ##[[KeyPgLongint LongInt]]##, et des pans entiers de la mémoire peuvent être lus ou écrits sur les flux avec des opérations de fichier en mode binaire comme ##[[KeyPgGetfileio Get #]]## et ##[[KeyPgPutfileio Put #]]##.
+ Les //pipes// bidirectionnels ne sont pas supportés par FB et doivent être implémentés en utilisant les fonctions API de l'OS.
- //(##1##) Illegal function call//
- - Filenumber was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that filenumber is free.
+{{fbdoc item="target"}}
+ - Le //file mode// ##[[KeyPgBinary Binary]]## n'est pas supporté par toutes les plates-formes; ##**Open Pipe**## produira une erreur s'il ne peut pas ouvrir les flux //stdin// ou //stdout// du processus externe en mode binaire.
+ **Erreurs de fonctionnement:**
+ ##**Open Pipe**## produit l'une des [[ProPgErrorHandling erreurs de fonctionnement]] suivantes:
+//(##1##) Illegal function call : Appel illégal de fonction//
+//filenumber// n'est pas libre actuellement. Utilisez ##[[KeyPgFreefile FreeFile]]## pour vous assurer que //filenumber// est libre.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/fileio/openpipe.bas"}}%%(freebasic)
-dim text as string
-open pipe "fbc.exe" for input as #1
-print "Output of fbc:"
-do while not eof(1)
- line input #1, text
- print text
-loop
-close #1
-%%
+#ifdef __FB_UNIX__
+Dim text As String
+Open Pipe "fbc.exe" For Input As #1
+Print "Output of fbc:"
+Do While Not EOF(1)
+Line Input #1, text
+
+Print text
+Loop
+ Close #1
+ %%
{{fbdoc item="diff"}}
+
+- Nouveau pour FreeBASIC
+{{fbdoc item="see"}}
+
+- ##[[KeyPgOpenCons Open Cons]]##
+ - ##[[KeyPgOpenErr Open Err]]##
+
+- ##[[KeyPgFreefile FreeFile]]##
- New to ""FreeBASIC""
{{fbdoc item="see"}}
diff --git a/fbdocs/manual/cache/KeyPgOpenScrn.wakka b/fbdocs/manual/cache/KeyPgOpenScrn.wakka
index 6bb91a1702..c0b31c273a 100644
--- a/fbdocs/manual/cache/KeyPgOpenScrn.wakka
+++ b/fbdocs/manual/cache/KeyPgOpenScrn.wakka
@@ -1,42 +1,42 @@
{{fbdoc item="title" value="OPEN SCRN"}}----
-Opens the console directly for input and output as a file
+Ouvre la console directement pour des opérations d'entrée ou de sortie comme pour un fichier
{{fbdoc item="syntax"}}##
**[[KeyPgOpen Open]] Scrn** [for //mode//] [[KeyPgAs as]] [#]//filenum// [[KeyPgAs as]] [[KeyPgInteger integer]]
##
{{fbdoc item="usage"}}##
**Open Scrn** [for //mode//] as [#]//filenum//
- //or//
+ //ou//
//result// = **Open Scrn**( [for //mode//] as [#]//filenum// )
##
{{fbdoc item="param"}}
##//mode//##
- Either ##[[KeyPgInputfilemode Input]]## or ##[[KeyPgOutput Output]]##. If omitted, ##[[KeyPgOutput Output]]## is assumed.
+ Soit ##[[KeyPgInputfilemode Input]]## ou ##[[KeyPgOutput Output]]##. Si omis, ##[[KeyPgOutput Output]]## est utilisé.
##//filenum//##
- An unused file number.
+ Un numéro de fichier inutilisé.
-{{fbdoc item="ret"}}
- Zero is returned if ##**Open Err**## completed successfully, otherwise a non-zero value is returned to indicate failure.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne zéro si ##**Open Err**## s'acheve avec succès, sinon une valeur non nulle est renvoyée pour indiquer un échec.
{{fbdoc item="desc"}}
- This command opens the console for both input and output as a file, allowing to read/write from/to it with normal file commands.
+ Cette commande ouvre la console en entrée ou sortie comme pour un fichier, permettant de lire/écrire à partir de/vers celle-ci à l'aide des commandes normales d'accès fichier.
- This command may use direct access to the console for speed in some implementations, so it should not be used when the input / output is required to be redirected or piped with OS commands.
+ Cette commande peut utiliser l'accès direct à la console pour plus de vitesse dans certaines implémentations, elle ne doit pas être utilisée lorsque l'entrée/sortie doit être redirigée ou //pipe// par des commandes OS.
- The normal console commands, such as ##[[KeyPgColor Color]]## and ##[[KeyPgLocate Locate]]##, do not work in this mode, because they do not accept a file number.
+ Les commandes normales de la console, comme ##[[KeyPgColor Color]]## et ##[[KeyPgLocate Locate]]##, ne fonctionnent pas dans ce mode, parce qu'elles n'acceptent pas un numéro de fichier.
- The ##[For Input|Output]## clause is allowed for compatibility, but is ignored.
+ La clause ##[For Input|Output]## existe pour la compatibilité, mais elle est ignorée.
- ##//filenum//## is an unused file number.
+ ##//filenum//## est un numéro de fichier inutilisé.
- An unused file number can be found using ##[[KeyPgFreefile FreeFile]]##.
+ Un numéro de fichier inutilisé peut être trouvé en utilisant ##[[KeyPgFreefile FreeFile]]##.
-**Runtime errors:**
- ##**Open Cons**## throws one of the following [[ProPgErrorHandling runtime errors]]:
+**Erreurs de fonctionnement:**
+ ##**Open Cons**## produit l'une des [[ProPgErrorHandling erreurs de fonctionnement]] suivantes:
- //(##1##) Illegal function call//
- - Filenumber was not free at the time. use ##[[KeyPgFreefile Freefile]]## to ensure that filenumber is free.
+ //(##1##) Illegal function call : Appel illégal de fonction//
+ //filenumber// n'est pas libre actuellement. Utilisez ##[[KeyPgFreefile FreeFile]]## pour vous assurer que //filenumber// est libre.
@@ -52,7 +52,7 @@ sleep
%%
{{fbdoc item="diff"}}
- - QB used OPEN "SCRN:" ...
+ - QB utilise OPEN "SCRN:" ...
{{fbdoc item="see"}}
- ##[[KeyPgOpenCons Open Cons]]##
diff --git a/fbdocs/manual/cache/KeyPgOperator.wakka b/fbdocs/manual/cache/KeyPgOperator.wakka
index d9a2fdb05f..b6d57550e2 100644
--- a/fbdocs/manual/cache/KeyPgOperator.wakka
+++ b/fbdocs/manual/cache/KeyPgOperator.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OPERATOR"}}----
-Declares or defines an overloaded operator.
+Déclare ou définit un opérateur surchargé.
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] | [[KeyPgUnion Union]] | [[KeyPgEnum Enum]] } //typename//
@@ -34,30 +34,30 @@ Declares or defines an overloaded operator.
##
{{fbdoc item="param"}}
##//typename//##
- Name of the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgUnion Union]]##, or ##[[KeyPgEnum Enum]]##.
+ Nom de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgUnion Union]]## ou ##[[KeyPgEnum Enum]]##.
##//assignment_op//##
##let += -= *= /= \= mod= shl= shr= and= or= xor= imp= eqv= ^=##
##//unary_op//##
- ##""-"" not @ * -> abs sgn fix frac int exp log sin asin cos acos tan atn##
+ ##- not @ * -> abs sgn fix frac int exp log sin asin cos acos tan atn##
##//binary_op//##
##+ - * / \ mod shl shr and or xor imp eqv ^ = <> < > <= >= andalso orelse##
{{fbdoc item="desc"}}
- The built in operators like ##=##, ##+##, and ##cast## have predefined behaviors when used in expressions. These operators can be overloaded to do something other than predefined operations when at least one of the arguments to the operator is a ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgEnum Enum]]##, or ##[[KeyPgUnion Union]]## data type.
+ Les opérateurs intégrés comme ##=##, ##+## et ##cast## ont des comportements prédéfinis lorsqu'ils sont utilisés dans des expressions. Ces opérateurs peuvent être surchargés pour faire autre chose que ces opérations prédéfinies lorsqu'au moins l'un des arguments de l'opérateur est un type de données ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, ##[[KeyPgEnum Enum]]## ou ##[[KeyPgUnion Union]]##.
- Operators are just functions. The operator '+' has functionality like ##Function Plus( A as DataType, B as DataType ) as DataType##. See //[[ProPgOperatorOverloading Operator Overloading]]// for more information. Operators can be overloaded to accept different data types as parameters. Only the ##[[KeyPgCast Cast]]## Operator can be overloaded to return different types.
+ Les opérateurs sont juste des fonctions. L'opérateur '+' a les fonctionnalités de la fonction ##Function Plus( A as DataType, B as DataType ) as DataType##. Voir //[[ProPgOperatorOverloading Surcharge d'opérateur]]// pour plus d'informations. Les opérateurs peuvent être surchargés pour accepter différents types de données en tant que paramètres. Seul l'opérateur ##[[KeyPgCast Cast]]## peut être surchargé pour retourner différents types.
- Non-static operator members are declared inside the ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]##. Global operators are declared outside. All operator definitions (procedure bodies) must appear outside.
+ Les membres opérateur non-statiques sont déclarés à l'intérieur de ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##. Les opérateurs globaux sont déclarés en dehors. Toutes les définitions de l'opérateur (corps de procédure) doivent apparaître en dehors.
- ##**Let**##, ##**Cast**##, and other assignment operators must be declared inside the ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]##. They are passed a hidden ##[[KeyPgThis this]]## parameter and have a return data type same as the ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]## they are declared in.
+ ##**Let**##, ##**Cast**## et autres opérateurs d'affectation doivent être déclarés à l'intérieur de ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##. Ils transmettent un paramètre caché ##[[KeyPgThis This]]## et ont une valeur de retour du même type de données que le ##[[KeyPgType Type]]## ou la ##[[KeyPgClass Class]]## où ils ont été déclarés.
- Unary operators must be declared outside the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgEnum Enum]]## and have a return data type explicitly declared. Unary operators can be overloaded to return any valid data type, except for ##[[KeyPgOpPtrMemberAccess Operator -> (Pointer to member access)]]## which must return a ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]## data type.
+ Les opérateurs unaires doit être déclarés en dehors de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]## ou ##[[KeyPgEnum Enum]]## et ont un type de données de retour déclaré explicitement. Les opérateurs unaires peuvent être surchargés pour retourner tout type valide de données, sauf pour ##[[KeyPgOpPtrMemberAccess Operator -> (Pointeur vers Accès membre)]]## qui doit retourner un type de données ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##.
- Binary operators must be declared outside the ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]##, or ##[[KeyPgEnum Enum]]## and have a return data type explicitly declared. Binary operators can be overloaded with valid data types, except for relational operators, which must return ##[[KeyPgInteger Integer]]##.
+ Les opérateurs binaires doivent être déclarés en dehors de ##[[KeyPgType Type]]##, ##[[KeyPgClass Class]]## ou ##[[KeyPgEnum Enum]]## et ont un type de données de retour explicitement déclaré. Les opérateurs binaires peuvent être surchargés avec des types valides de données, sauf pour les opérateurs relationnels, qui doivent retourner ##[[KeyPgInteger Integer]]##.
- ##[[KeyPgLet Let]]## refers to the assignment operator, as in ##LET a=b##. The ##[[KeyPgLet Let]]## keyword is omitted in common practice, and is not allowed in the //[[CompilerOptlang -lang fb]]// dialect. However, ##[[KeyPgOpLetlist Let()]]## can be used to assign the fields of a UDT to multiple variables.
+ ##[[KeyPgLet Let]]## se réfère à l'opérateur d'affectation, comme dans ##LET a=b##. Le mot-clé ##[[KeyPgLet Let]]## est omis dans la pratique courante et n'est pas autorisé en dialecte //[[CompilerOptlang -lang fb]]//. Toutefois, ##[[KeyPgOpLetlist Let()]]## peut être utilisé pour affecter des champs d'un type de données utilisateur à des variables multiples.
- See ##[[KeyPgOpFor For]]##, ##[[KeyPgOpStep Step]]##, and ##[[KeyPgOpNext Next]]## for more information on overloading the ##[[KeyPgFornext For..Next]]## statement for use with user defined types.
+ Voir ##[[KeyPgOpFor For]]##, ##[[KeyPgOpStep Step]]## et ##[[KeyPgOpNext Next]]## pour plus d'informations sur la surcharge de la déclaration ##[[KeyPgFornext For..Next]]## pour une utilisation avec des types définis par l'utilisateur.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/operator.bas"}}%%(freebasic)
@@ -87,7 +87,7 @@ Print "b = "; b
Print "a + b = "; a + b
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fb]]// dialect.
+ - Disponible seulement dans le dialecte //[[CompilerOptlang -lang fb]]//.
{{fbdoc item="see"}}
- ##[[KeyPgClass Class]]##
diff --git a/fbdocs/manual/cache/KeyPgOption.wakka b/fbdocs/manual/cache/KeyPgOption.wakka
index 163e968a5e..b4dc388f07 100644
--- a/fbdocs/manual/cache/KeyPgOption.wakka
+++ b/fbdocs/manual/cache/KeyPgOption.wakka
@@ -1,39 +1,39 @@
{{fbdoc item="title" value="OPTION()"}}----
-Specifies additional attributes and/or characteristics of symbols.
+Spécifie des attributs et/ou des caractéristiques additionnels de symboles.
{{fbdoc item="syntax"}}##
**Option**( "//literal-text//" )
##
{{fbdoc item="param"}}
##//literal-text//##
- The literal text specifying the option. See description.
+ Le texte littéral spécifiant l'option. Voir description.
{{fbdoc item="desc"}}
- ##**Option()**## allows the programmer to specify additional attributes or characteristics. Enclosing the string into quotes and parentheses is required in the syntax. Unrecognized options are ignored.
+ ##**Option()**## permet au programmeur de préciser des attributs ou caractéristiques supplémentaires. Dans cette syntaxe la chaîne doit être encadrée par des guillemets ("). Les options inconnues seront ignorées.
- ##**Option**## can also be used as a statement to specify other compile time options. See [[CatPgCompilerSwitches Compiler Switches]].
+ ##**Option**## peut également être utilisé comme instruction pour préciser d'autres options de compilation. Voir [[CatPgCompilerSwitches Commutateurs du compilateur]].
- Individual options are explained below.
+ Les options individuelles sont expliquées ci-dessous.
-{{fbdoc item="subsect" value="SSE"}}
- ##**Option("SSE")**## indicates that a floating point value (##[[KeyPgSingle Single]]## or ##[[KeyPgDouble Double]]##) returned from a function is stored in the ##xmm0## register. ##[[KeyPgOption Option("SSE")]]## is ignored unless the source is compiled with the [[CompilerOptfpu -fpu SSE]] command line option. This option may be used immediately after the return type in a function declaration or function definition. This option is an optimization only and not required to compile programs using the [[CompilerOptfpu -fpu SSE]] command line option.
+{{fbdoc item="section" value="SSE
+ ##**Option("SSE")**## indique qu'une valeur à virgule flottante (##[[KeyPgSingle Single]]## ou ##[[KeyPgDouble Double]]##) retournée par une fonction est chargée dans le registre ##xmm0##. ##[[KeyPgOption Option("Sse")]]## est ignorée tant que le code source n'est pas compilé avec l'option de ligne de commande [[CompilerOptfpu -fpu SSE]]. Cette option peut être utilisée immédiatement après le retour dans une déclaration de fonction ou une définition de fonction. Cette option est une optimisation et n'est pas requise pour compiler des programmes utilisant l'option de ligne de commande [[CompilerOptfpu -fpu SSE]].
%%(freebasic)
declare function ValueInXmm0 () as double option("sse")
%%
-{{fbdoc item="subsect" value="FPU"}}
- ##**Option("FPU")**## indicates that a floating point value (##[[KeyPgSingle Single]]## or ##[[KeyPgDouble Double]]##) returned from a function is stored in the ##st(0)## register. This option may be used immediately after the return type in a function declaration or function definition.
+{{fbdoc item="section" value="FPU
+ ##**Option("FPU")**## indique qu'une valeur à virgule flottante (##[[KeyPgSingle Single]]## ou ##[[KeyPgDouble Double]]##) retournée par une fonction est chargée dans le registre ##st(0)##. Cette option peut être utilisée immédiatement après le retour dans une déclaration de fonction ou une définition de fonction.
%%(freebasic)
declare function ValueInStZero () as double option("fpu")
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- - [[CompilerOptfpu Compiler Option: -fpu]]
- - [[CatPgCompilerSwitches Compiler Switches]]
+ - [[CompilerOptfpu Option du compilateur : -fpu]]
+ - [[CatPgCompilerSwitches Commutateurs du compilateur]]
{{fbdoc item="back" value="CatPgMisc|Miscellaneous"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOptionbase.wakka b/fbdocs/manual/cache/KeyPgOptionbase.wakka
index 7108e89eb4..04628d6174 100644
--- a/fbdocs/manual/cache/KeyPgOptionbase.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionbase.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="OPTION BASE"}}----
-Specifies a default lower bound for array declarations
+Spécifie une limite inférieure par défaut pour les déclarations de tableau
{{fbdoc item="syntax"}}##
**Option Base** //base_subscript//
##
{{fbdoc item="param"}}
##//base_subscript//##
- an numeric literal value
+ une valeur numérique littérale
{{fbdoc item="desc"}}
- ##**Option Base**## is a statement that sets the default lower bound for any following array declarations. This default remains in effect for the rest of the module in which ##**Option Base**## is used, and can be overridden by declaring arrays with an explicit lower bound, or with another ##**Option Base**## statement.
+ ##**Option Base**## est une déclaration qui positionne la limite inférieure par défaut de toutes déclarations de tableau qui suivront. Cette valeur par défaut reste en vigueur pour le reste du module dans lequel ##**Option Base**## est utilisé, et peut être annulé en déclarant des tableaux avec une limite inférieure explicite, ou avec une autre déclaration ##**Option Base**##.
- Note: initially, the default base is ##0##.
+ Note: initialement, la base par défaut est ##0##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/check/KeyPgOptionbase_1.bas"}}%%(freebasic)
@@ -28,13 +28,13 @@ Dim baz(0 To 4) As Integer ' declares an array with indices 0-4
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
- - In //[[CompilerOptlang -lang fb]]//, ##**Option Base**## is not allowed, and the default lower bound is always ##0##.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
+ - Dans //[[CompilerOptlang -lang fb]]//, ##**Option Base**## n'est pas permis et la limite inférieure par défaut est toujours ##0##.
{{fbdoc item="diff"}}
- - QBASIC only supported values of ##0## or ##1## for ##//base_subscript//##.
- - In QBASIC the word ##**Base**## was a reserved keyword, and couldn't be used as a variable name.
- - Arrays must always be explicitly created in ""FreeBASIC"". QBASIC would implicitly create an array from ##//base_subscript//## to ##10## if one was used in code without being predefined.
+ - QBASIC ne supporte que les valeurs ##0## ou ##1## pour ##//base_subscript//##.
+ - En QBASIC ##**Base**## est un mot-clef réservé et ne peut être utilisé comme nom de variable.
+ - En FreeBASIC les tableaux doivent être créés explicitement. QBASIC créera implicitement un tableau à partir de ##//base_subscript//## à ##10## si un a été utilisé dans le code sans être prédéfini.
{{fbdoc item="see"}}
- ##[[KeyPgDim Dim]]##
diff --git a/fbdocs/manual/cache/KeyPgOptionbyval.wakka b/fbdocs/manual/cache/KeyPgOptionbyval.wakka
index d996cc8345..3b518351c9 100644
--- a/fbdocs/manual/cache/KeyPgOptionbyval.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionbyval.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="OPTION BYVAL"}}----
-Specifies parameters are to be passed by value by default in procedure declarations
+Spécifie les paramètres qui doivent être passés par valeur par défaut dans les déclarations de procédure
{{fbdoc item="syntax"}}##
**Option Byval**
##
{{fbdoc item="desc"}}
- ##**Option Byval**## is a statement that sets the default passing convention for procedure parameters to //by value//, as if declared with ##[[KeyPgByval Byval]]##. This default remains in effect for the rest of the module in which ##**Option Byval**## is used, and can be overridden by specifying ##[[KeyPgByref Byref]]## in parameter lists.
+ ##**Option ByVal**## est une instruction qui fixe la valeur par défaut de la convention de passage pour les paramètres des procédures à //by value (par valeur)//, comme s'ils avaient été déclarés avec ##[[KeyPgByval ByVal]]##. Ceci reste en vigueur pour tout le reste du module dans lequel ##**Option ByVal**## est utilisé, et peut être annulé en spécifiant ##[[KeyPgByref ByRef]]## dans les liste de paramètres.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/switches/option-byval.bas"}}%%(freebasic)
@@ -38,10 +38,10 @@ Print
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptionbyval __FB_OPTION_BYVAL__]]##
diff --git a/fbdocs/manual/cache/KeyPgOptiondynamic.wakka b/fbdocs/manual/cache/KeyPgOptiondynamic.wakka
index 5114cb0c10..e0aa435680 100644
--- a/fbdocs/manual/cache/KeyPgOptiondynamic.wakka
+++ b/fbdocs/manual/cache/KeyPgOptiondynamic.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="OPTION DYNAMIC"}}----
-Specifies variable-length array declarations
+Spécifie un tableau de longueur-variable
{{fbdoc item="syntax"}}##
**Option Dynamic**
##
{{fbdoc item="desc"}}
- ##**Option Dynamic**## is a statement that specifies that any following array declarations are variable-length, whether they are declared with constant subscript ranges or not. This remains in effect for the rest of the module in which ##**Option Dynamic**## is used, and can be overridden with ##[[KeyPgOptionstatic Option Static]]##.
+ ##**Option Dynamic**## est une déclaration qui précise que toutes les déclarations tableau suivantes sont de longueur variable, qu'elles aient été déclarées avec un intervalle d'indices constant ou non. Ceci demeure en vigueur pour le reste du module dans lequel ##**Option Dynamic**## est utilisé, et peut être modifié avec l'##[[KeyPgOptionstatic Option Static]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/switches/option-dynamic.bas"}}%%(freebasic)
@@ -22,16 +22,17 @@ Dim bar(99) As Integer ' declares a variable-length array
ReDim bar(199) As Integer ' resize the array
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptiondynamic __FB_OPTION_DYNAMIC__]]##
- [[KeyPgMetaDynamic $Dynamic]]
- ##[[KeyPgOptionstatic Option Static]]##
- ##[[KeyPgDim Dim]]##
+ - ##[[KeyPgRedim ReDim]]##
- ##[[KeyPgRedim Redim]]##
{{fbdoc item="back" value="CatPgArray|Array Functions"}}{{fbdoc item="back" value="CatPgCompilerSwitches|Compiler Switches"}}{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOptionescape.wakka b/fbdocs/manual/cache/KeyPgOptionescape.wakka
index e693830242..23773075cd 100644
--- a/fbdocs/manual/cache/KeyPgOptionescape.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionescape.wakka
@@ -1,16 +1,16 @@
{{fbdoc item="title" value="OPTION ESCAPE"}}----
-Specifies that string literals should be processed for C-like escape sequences by default
+Indique que les chaînes littérales doivent être compilées avec des séquences d'échappement de type C par défaut
{{fbdoc item="syntax"}}##
**Option Escape**
##
{{fbdoc item="desc"}}
- ##**Option Escape**## is a statement that causes string literals to be processed for C-like escape sequences by default. Normally, escape sequences have no effect in string literals unless the string is prefixed with the [[KeyPgOpPpEscape ! operator (Escaped String Literal)]]. This default remains in effect for the rest of the module in which ##**Option Escape**## is used, and can be overridden by prefixing string literals with the [[KeyPgOpPpNoescape $ operator (Non-Escaped String Literal)]].
+ ##**Option Escape**## est une déclaration qui oblige le traitement des chaînes littérales à être compilées avec des séquences d'échappement de type C par défaut. Normalement, les séquences d'échappementsont sont sans effet sur les chaînes littérales sauf si la chaîne est préfixée avec l'[[KeyPgOpPpEscape Opérateur ! (Echappement chaîne littérale)]]. Ceci reste en vigueur pour tout le reste du module dans lequel ##**Option Escape**## est utilisé, et peut être annulé en préfixant les chaînes littérales avec l'[[KeyPgOpPpNoescape Opérateur $ (Non-Echappement chaîne littérale)]].
- See [[ProPgLiterals Literals]] in the Programmer's Guide to learn more about escape sequences.
+ Voir [[ProPgLiterals Les littéraux]] dans le Guide du programmeur pour en savoir plus sur les séquences d'échappement.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/switches/option-escape.bas"}}%%(freebasic)
+ %%(freebasic)
'' Compile with the "-lang fblite" compiler switch
#lang "fblite"
@@ -27,15 +27,15 @@ printf("%d * %d = %d\r\n", a, b, a * b)
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptionescape __FB_OPTION_ESCAPE__]]##
- - [[KeyPgOpPpEscape Operator ! (Escaped String Literal)]]
- - [[KeyPgOpPpNoescape Operator $ (Non-Escaped String Literal)]]
- - [[ProPgLiterals Literals]]
+ - [[KeyPgOpPpEscape Operator ! (Chaîne littérale avec séquences d'échappement)]]
+ - [[KeyPgOpPpNoescape Operator $ (Chaîne littérale sans séquences d'échappement)]]
+ - [[ProPgLiterals Les littéraux]]
{{fbdoc item="back" value="CatPgCompilerSwitches|Compiler Switches"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOptionexplicit.wakka b/fbdocs/manual/cache/KeyPgOptionexplicit.wakka
index d8f4d4410c..04676076d3 100644
--- a/fbdocs/manual/cache/KeyPgOptionexplicit.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionexplicit.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="OPTION EXPLICIT"}}----
-Forces variables, objects and arrays to be declared before they are used
+Force variables, objets et tableaux à être déclarés avant leur utilisation
{{fbdoc item="syntax"}}##
**Option Explicit**
##
{{fbdoc item="desc"}}
- ##**Option Explicit**## is a statement that forces any following variable, object or array usage to be preceded by a declaration, with, for example, ##[[KeyPgDim Dim]]## or ##[[KeyPgStatic Static]]##. This rule remains in effect for the rest of the module in which ##**Option Explicit**## is used, and cannot be overridden.
+ ##**Option Explicit**## est une déclaration qui force toute variable, tout objet ou tableau qui suit à être précédé par une déclaration avant usage, avec, par exemple, ##[[KeyPgDim Dim]]## ou ##[[KeyPgStatic Static]]##. Cette règle reste en vigueur pour tout le reste du module dans lequel ##**Option Explicit**## est utilisé et ne peut être annulée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/switches/option-explicit.bas"}}%%(freebasic)
@@ -20,10 +20,10 @@ a = 1 ' ..or this statement will fail to compile.
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- -New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptionexplicit __FB_OPTION_EXPLICIT__]]##
diff --git a/fbdocs/manual/cache/KeyPgOptiongosub.wakka b/fbdocs/manual/cache/KeyPgOptiongosub.wakka
index 092d0fc151..1b6c173d92 100644
--- a/fbdocs/manual/cache/KeyPgOptiongosub.wakka
+++ b/fbdocs/manual/cache/KeyPgOptiongosub.wakka
@@ -1,16 +1,16 @@
{{fbdoc item="title" value="OPTION GOSUB"}}----
-Enables support for ##[[KeyPgGosub Gosub]]## and ##[[KeyPgOngosub On Gosub]]##.
+Active le support de ##[[KeyPgGosub GoSub]]## et ##[[KeyPgOngosub On Gosub]]##.
{{fbdoc item="syntax"}}##
**Option Gosub**
##
{{fbdoc item="desc"}}
- ##**Option Gosub**## enables support for ##[[KeyPgGosub Gosub]]## and ##[[KeyPgReturn Return]]## (from gosub).
+ ##**Option Gosub**## active le support de ##[[KeyPgGosub GoSub]]## et ##[[KeyPgReturn Return]]## (depuis gosub).
- Because ##[[KeyPgReturn Return]]## could mean return-from-gosub or return-from-procedure, ##**Option Gosub**## and ##[[KeyPgOptionnogosub Option Nogosub]]## can be used to enable and disable ##[[KeyPgGosub Gosub]]## support. When ##[[KeyPgGosub Gosub]]## support is disabled, ##[[KeyPgReturn Return]]## is then recognized as return-from-procedure.
+ Parce que ##[[KeyPgReturn Return]]## pourrait signifier retour-de-gosub ou retour-de-procédure, ##**Option Gosub**## et ##[[KeyPgOptionnogosub Option Nogosub]]## peuvent être utilisés pour activer et désactiver le support de ##[[KeyPgGosub GoSub]]##. Quand le support de ##[[KeyPgGosub GoSub]]## est désactivé, ##[[KeyPgReturn Return]]## est alors reconnu comme retour-de-procédure.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/switches/option-gosub.bas"}}%%(freebasic)
+ %%(freebasic)
'' Compile with the "-lang fblite" compiler switch
#lang "fblite"
@@ -29,10 +29,10 @@ there:
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptiongosub __FB_OPTION_GOSUB__]]##
diff --git a/fbdocs/manual/cache/KeyPgOptionnogosub.wakka b/fbdocs/manual/cache/KeyPgOptionnogosub.wakka
index deeb8b10ac..145c8cfa6d 100644
--- a/fbdocs/manual/cache/KeyPgOptionnogosub.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionnogosub.wakka
@@ -1,16 +1,16 @@
{{fbdoc item="title" value="OPTION NOGOSUB"}}----
-Disables support for ##[[KeyPgGosub Gosub]]## and ##[[KeyPgOngosub On Gosub]]##.
+Désactive le support de ##[[KeyPgGosub GoSub]]## et ##[[KeyPgOngosub On Gosub]]##.
{{fbdoc item="syntax"}}##
**Option Nogosub**
##
{{fbdoc item="desc"}}
- ##**Option Nogosub**## disables support for ##[[KeyPgGosub Gosub]]## and ##[[KeyPgReturn Return]]## (from gosub).
+ ##**Option Nogosub**## désactive le support de ##[[KeyPgGosub GoSub]]## et ##[[KeyPgReturn Return]]## (depuis gosub).
- Because ##[[KeyPgReturn Return]]## could mean return-from-gosub or return-from-procedure, ##[[KeyPgOptiongosub Option Gosub]]## and ##**Option Nogosub**## can be used to enable and disable ##[[KeyPgGosub Gosub]]## support. When ##[[KeyPgGosub Gosub]]## support is disabled, ##[[KeyPgReturn Return]]## is then recognized as return-from-procedure.
+ Parce que ##[[KeyPgReturn Return]]## pourrait signifier retour-de-gosub ou retour-de-procédure, ##[[KeyPgOptiongosub Option Gosub]]## et ##**Option Nogosub**## peuvent être utilisés pour activer et désactiver le support de ##[[KeyPgGosub GoSub]]##. Quand le support de ##[[KeyPgGosub GoSub]]## est désactivé, ##[[KeyPgReturn Return]]## est alors reconnu comme retour-de-procédure.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/switches/option-nogosub.bas"}}%%(freebasic)
+ %%(freebasic)
'' Compile with the "-lang qb" compiler switch
'$lang: "qb"
@@ -26,10 +26,10 @@ Print foo
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptiongosub __FB_OPTION_GOSUB__]]##
diff --git a/fbdocs/manual/cache/KeyPgOptionnokeyword.wakka b/fbdocs/manual/cache/KeyPgOptionnokeyword.wakka
index 317f925543..3e30434dbd 100644
--- a/fbdocs/manual/cache/KeyPgOptionnokeyword.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionnokeyword.wakka
@@ -1,18 +1,18 @@
{{fbdoc item="title" value="OPTION NOKEYWORD"}}----
-"Undefines" a reserved keyword
+Annule la définition d'un mot-clé réservé
{{fbdoc item="syntax"}}##
**Option Nokeyword** //keyword//
##
{{fbdoc item="param"}}
##//keyword//##
- the keyword to undefine
+ le mot-clé dont on annule la définition
{{fbdoc item="desc"}}
- ##**Option Nokeyword**## is a statement that undefines a ""FreeBASIC"" reserved keyword, meaning it can be used as an identifier for a variable, object, procedure or any other symbol. The keyword is undefined for the rest of the module in which ##**Option Nokeyword**## is used.
+ ##**Option NoKeyword**## est une déclaration qui annule la définition d'un mot-clé réservé du FreeBASIC, ce qui signifie qu'il peut être utilisé comme un identifiant d'une variable, d'un objet, d'une procédure ou de tout autre symbole. La définition du mot-clé n'est plus définie pour le reste du module dans lequel ##**Option NoKeyword**## est utilisé.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/switches/option-nokeyword.bas"}}%%(freebasic)
+ %%(freebasic)
'' Compile with the "-lang fblite" compiler switch
#lang "fblite"
@@ -24,10 +24,10 @@ Dim Int As Integer ' declare a variable with the name 'int'
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPpundef #undef]]##
diff --git a/fbdocs/manual/cache/KeyPgOptionprivate.wakka b/fbdocs/manual/cache/KeyPgOptionprivate.wakka
index 75a1af2b2f..8690b0a322 100644
--- a/fbdocs/manual/cache/KeyPgOptionprivate.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionprivate.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="OPTION PRIVATE"}}----
-Specifies internal linkage by default for procedure declarations
+Spécifie la liaison interne par défaut pour les déclarations de procédure
{{fbdoc item="syntax"}}##
**Option Private**
##
{{fbdoc item="desc"}}
- ##**Option Private**## is a statement that gives any following procedure declarations internal linkage by default, as if declared with ##[[KeyPgPrivate Private]]##. This default remains in effect for the rest of the module in which ##**Option Private**## is used, and can be overridden by declaring procedures with ##[[KeyPgPublic Public]]##.
+ ##**Option Private**## est une déclaration qui donne à toutes les déclarations de procédure suivantes une liaison interne par défaut, comme si elles étaient déclarées avec ##[[KeyPgPrivate Private]]##. Ceci reste en vigueur pour le reste du module dans lequel ##**Option Private**## est utilisé et ne peut être annulé qu'en déclarant les procédures avec ##[[KeyPgPublic Public]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/switches/option-private.bas"}}%%(freebasic)
@@ -28,10 +28,10 @@ Public Sub AnotherProcWithExternalLinkage()
End Sub
%%
{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDdfboptionprivate __FB_OPTION_PRIVATE__]]##
diff --git a/fbdocs/manual/cache/KeyPgOptionstatic.wakka b/fbdocs/manual/cache/KeyPgOptionstatic.wakka
index ad958b3986..acafc74671 100644
--- a/fbdocs/manual/cache/KeyPgOptionstatic.wakka
+++ b/fbdocs/manual/cache/KeyPgOptionstatic.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="OPTION STATIC"}}----
-Reverts to default array declaration behavior
+Revient au comportement par défaut de déclaration de tableau
{{fbdoc item="syntax"}}##
**Option Static**
##
{{fbdoc item="desc"}}
- ##**Option Static**## is a statement that overrides the behavior of ##[[KeyPgOptiondynamic Option Dynamic]]##, that is, arrays declared with constant subscript ranges are fixed-length. This remains in effect for the rest of the module in which ##**Option Static**## is used, and can be overridden with ##[[KeyPgOptiondynamic Option Dynamic]]##.
+ ##**Option Static**## annule le comportement de ##[[KeyPgOptiondynamic Option Dynamic]]##, c'est à dire que les tableaux déclarés avec une gamme d'indices constante sont de longueur fixe. Ceci demeure en vigueur pour le reste du module dans lequel ##**Option Static**## est utilisé et peut être modifié avec ##[[KeyPgOptiondynamic Option Dynamic]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/switches/option-static.bas"}}%%(freebasic)
@@ -15,24 +15,25 @@ Reverts to default array declaration behavior
Option Dynamic
-Dim foo(100) As Integer ' declares a variable-length array
+Dim foo(100) As Integer ' declares a variable-length array
Option Static
-Dim bar(100) As Integer ' declares a fixed-length array
+Dim bar(100) As Integer ' declares a fixed-length array
%%
-{{fbdoc item="lang"}}
- - Only available in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang qb]]// dialects.
+{{fbdoc item="lang"}}
+ - Disponible seulement dans les dialectes //[[CompilerOptlang -lang fblite]]// et //[[CompilerOptlang -lang qb]]//.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgMetaDynamic $Dynamic]]##
- ##[[KeyPgDim Dim]]##
- ##[[KeyPgErase Erase]]##
- - ##[[KeyPgRedim Redim]]##
+ - ##[[KeyPgRedim ReDim]]##
+ - ##[[KeyPgOptiondynamic Option Dynamic]]##
- ##[[KeyPgOptiondynamic Option Dynamic]]##
{{fbdoc item="back" value="CatPgArray|Array Functions"}}{{fbdoc item="back" value="CatPgCompilerSwitches|Compiler Switches"}}{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOrGfx.wakka b/fbdocs/manual/cache/KeyPgOrGfx.wakka
index c6312c5c00..3e3f133b33 100644
--- a/fbdocs/manual/cache/KeyPgOrGfx.wakka
+++ b/fbdocs/manual/cache/KeyPgOrGfx.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="OR"}}----
-Parameter to the ##[[KeyPgPutgraphics Put]]## graphics statement which uses a bit-wise ##[[KeyPgOpOr Or]]## as the blitting method
+Paramètre de la déclaration graphique ##[[KeyPgPutgraphics Put]]## qui utilise la manipulation de bits ##[[KeyPgOpOr Or]]## comme méthode de transformation image
{{fbdoc item="syntax"}}##
**Put** [ //target//, ] [ STEP ] ( //x//,//y// ), //source// [ ,( //x1//,//y1// )-( //x2//,//y2// ) ], **Or**
##
{{fbdoc item="param"}}
##**Or**##
- Required.
+ Obligatoire.
{{fbdoc item="desc"}}
- The ##**Or**## method combines each source pixel with the corresponding destination pixel, using the bit-wise ##[[KeyPgOpOr Or]]## function. The result of this is output as the destination pixel.
- This method works in all graphics modes. There is no mask color, although color values of ##0## (##[[KeyPgRgba RGBA]](0, 0, 0, 0)## in full-color modes) will have no effect, because of the behavior of ##[[KeyPgOpOr Or]]##.
+ La méthode ##**Or**## combine chaque pixel source avec chaque pixel correspondant de la destination, en utilisant la fonction de manipulation de bits ##[[KeyPgOpOr Or]]##. Le résultat est renvoyé comme pixel destination.
+ Cette méthode fonctionne dans tous les modes graphiques. Il n'y a pas de masque de couleur, donc les valeurs de couleur de ##0## (##[[KeyPgRgba RGBA]](0, 0, 0, 0)## en modes pleine couleur) n'auront aucun effet, en raison du comportement de ##[[KeyPgOpOr Or]]##.
- In full-color modes, each component (red, green, blue and alpha) is kept in a discrete set of bits, so the operation can be made to only affect some of the channels, by making sure the all the values of the other channels are set to ##0##.
+ En mode pleine couleur, chaque composante (rouge, vert, bleu et alpha) est conservée dans un ensemble discret de bits, ainsi l'opération peut affecter seulement certains canaux, en s'assurant que toutes les valeurs des autres canaux sont mises à ##0##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/put-or.bas"}}%%(freebasic)
-''open a graphics window
+''Ouvre une fenetre graphique
ScreenRes 320, 200, 16
-''create 3 sprites containing red, green and blue circles
+''Cree 3 sprites contenant cercles rouges, verts et bleus
Const As Integer r = 32
dim as any ptr cr, cg, cb
cr = ImageCreate(r * 2 + 1, r * 2 + 1, RGBA(0, 0, 0, 0))
@@ -29,26 +29,26 @@ Circle cr, (r, r), r, RGB(255, 0, 0), , , 1, f
Circle cg, (r, r), r, RGB(0, 255, 0), , , 1, f
Circle cb, (r, r), r, RGB(0, 0, 255), , , 1, f
-''put the sprite at three different multipier
-''levels, overlapping each other in the middle
+''Put le sprite avec trois niveaux multiplieur
+''differents, se recouvrant dans le milieu
Put (146 - r, 108 - r), cr, or
Put (174 - r, 108 - r), cg, or
Put (160 - r, 84 - r), cb, or
-''free the memory used by the sprites
+''Libere la memoire utilisee par les sprites
ImageDestroy cr
ImageDestroy cg
ImageDestroy cb
-''pause the program before closing
+''Pause du programme avant fermeture
Sleep
%%
-{{image class="center" title="Put Or example output" url="/images/put-or.png"}}
+
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgOpOr Or]]##
- - ##[[KeyPgPutgraphics Put (Graphics)]]##
+ - ##[[KeyPgPutgraphics Put (Graphique)]]##
{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOut.wakka b/fbdocs/manual/cache/KeyPgOut.wakka
index bcecb937c4..dc589163e6 100644
--- a/fbdocs/manual/cache/KeyPgOut.wakka
+++ b/fbdocs/manual/cache/KeyPgOut.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="OUT"}}----
-Outputs a value to a hardware port.
+Envoie une valeur sur un port "hardware".
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Out** ( [[KeyPgByval byval]] //port// [[KeyPgAs as]] [[KeyPgUshort ushort]] , [[KeyPgByval byval]] //data// [[KeyPgAs as]] [[KeyPgUbyte ubyte]] ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -9,12 +9,12 @@ Outputs a value to a hardware port.
##
{{fbdoc item="param"}}
##//port//##
- Hardware port to write to.
+ Port hardware sur lequel écrire.
##//data//##
- Data value to write.
+ Donnée à écrire.
{{fbdoc item="desc"}}
- This function sends ##//value//## to ##//port//## and returns immediately.
+ Cette fonction envoie ##//value//## sur ##//port//## et retourne immédiatement.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/hardware/out.bas"}}%%(freebasic)
@@ -41,12 +41,12 @@ Sound(784, 60) 'G5
Sound(880, 60) 'A5
Sound(988, 60) 'B5
Sound(1046, 60) 'C6
-%%
+%%
-{{fbdoc item="target"}}
- - In the Windows and Linux versions three port numbers (&H3C7, &H3C8, &H3C9) are hooked by the graphics library when a graphics mode is in use to emulate QB's VGA palette handling. This use is deprecated; use ##[[KeyPgPalette Palette]]## to retrieve and set palette colors.
+{{fbdoc item="section" value="Différences de plates-formes
+ - Dans les versions Windows et Linux trois numéros de port (&H3C7, &H3C8, &H3C9) sont réservés par la librairie graphique quand un mode graphique est utilisé pour émuler une palette VGA QB. Cette utilisation est obsolète; utilisez ##[[KeyPgPalette Palette]]## pour récupérer ou valider une palette de couleurs.
- - Using true port access in the Windows version requires the program to install a device driver for the present session. For that reason, Windows executables using hardware port access should be run with administrator permits each time the computer is restarted. Further runs don't require admin rights as they just use the already installed driver. The driver is only 3K in size and is embedded in the executable.
+ - L'utilisation d'un accès "true port" dans la version Windows implique que le programme installe un "driver" de "device" pour la session en cours. Pour cette raison, les exécutables Windows utilisant un accès port "hardware" doivent être lancés avec des permissions administrateur pour chaque redémarrage de l'ordinateur. Les lancements ultérieurs n'auront pas besoin de ces droits car il ne font qu'utiliser le driver déjà installé. Le driver n'a qu'une taille de 3K et est intégré dans l'exécutable.
{{fbdoc item="see"}}
diff --git a/fbdocs/manual/cache/KeyPgOutput.wakka b/fbdocs/manual/cache/KeyPgOutput.wakka
index a22e149fa1..8259134600 100644
--- a/fbdocs/manual/cache/KeyPgOutput.wakka
+++ b/fbdocs/manual/cache/KeyPgOutput.wakka
@@ -1,40 +1,40 @@
{{fbdoc item="title" value="OUTPUT"}}----
-Specifies text file to be opened for output mode
+Spécifie un fichier texte à ouvrir en sortie
{{fbdoc item="syntax"}}##
[[KeyPgOpen open]] //filename// for **Output** [[[KeyPgEncoding encoding]] //encoding_type//] [[[KeyPgLock lock]] //lock_type//] as [#]//filenum//
##
{{fbdoc item="param"}}
##//filename//##
- file name to open for output
+ nom du fichier à ouvrir en sortie
##//encoding_type//##
- indicates encoding type for the file
+ indique le codage du fichier
##//lock_type//##
- locking to be used while the file is open
+ verrouillage à utiliser lorsque le fichier est ouvert
##//filenum//##
- unused file number to associate with the open file
+ numéro de fichier inutilisé pour l'associer au fichier ouvert
{{fbdoc item="desc"}}
- A file mode used with ##[[KeyPgOpen Open]]## to open a text file for writing.
+ Un mode fichier utilisé avec ##[[KeyPgOpen Open]]## pour ouvrir un fichier texte en écriture.
- This mode is used to write text with ##[[KeyPgPrintPp Print #]]##, or comma separated values with ##[[KeyPgWrite Write #]]##.
+ Ce mode est utilisé pour écrire un texte avec ##[[KeyPgPrintPp Print #]]##, ou des valeurs séparées par des virgules avec ##[[KeyPgWrite Write #]]##.
- Text files can't be simultaneously read and written in ""FreeBASIC"", so if both functions are required on the same file, it must be opened twice.
+ Les fichiers texte ne peuvent pas être simultanément en lecture et en écriture dans FreeBASIC, donc si les deux fonctions sont nécessaires sur le même fichier, il doit être ouvert deux fois.
- ##//filename//## must be a string expression resulting in a legal file name in the target OS, without wildcards. The file will be sought for in the present directory, unless the ##//filename//## contains a path . If the file does not exist, it is created. The pointer is set at the first character of the file.
+ ##//filename//## doit être une expression chaîne correspondant à un nom de fichier compatible avec le système cible, sans jokers de remplacement. Le fichier sera recherché dans le répertoire courant, sauf si ##//filename//## contient un chemin. Si le fichier n'existe pas, il est créé. Le pointeur est placé sur le premier caractère du fichier.
- ##//Encoding_type//## indicates the Unicode ##[[KeyPgEncoding Encoding]]## of the file, so characters are correctly read. If omitted, "ascii" encoding is defaulted. Only little endian character encodings are supported at the moment.
- -##"utf8"##
- -##"utf16"##
- -##"utf32"##
- -##"ascii"## (the default)
+ ##//Encoding_type//## indique le ##[[KeyPgEncoding Encoding (=codage)]]## Unicode du fichier, ainsi les caractères sont lus correctement. Si omis, le codage "ascii" est utilisé par défaut. Seuls les caractères codés "little endian" sont supportés pour le moment.
+
##"utf8"##
+ ##"utf16"##
+ ##"utf32"##
+ ##"ascii"## (par défaut)
- ##//Lock_type//## indicates the way the file is locked for other processes, it is one of:
- - ##**Read**## - the file can be opened simultaneously by other processes, but not for reading
- - ##**Write**## - the file can be opened simultaneously by other processes, but not for writing
- - ##**Read Write**## - the file cannot be opened simultaneously by other processes (the default)
+ ##//Lock_type//## indique la façon dont le fichier est verrouillé pour d'autres processus:
+ - ##**Read**## - le fichier peut être ouvert simultanément par d'autres processus, mais pas pour la lecture
+ - ##**Write**## - le fichier peut être ouvert simultanément par d'autres processus, mais pas en écriture
+ - ##**Read Write**## -le fichier ne peut pas être ouvert simultanément par d'autres processus (par défaut)
- ##//filenum//## Is a valid FreeBASIC file number (in the range ##1..255##) not being used for any other file presently open. The file number identifies the file for the rest of file operations. A free file number can be found using the ##[[KeyPgFreefile Freefile]]## function.
+ ##//filenum//## est un numéro FreeBASIC valide de fichier (dans la plage ##1..255##) qui n'est pas utilisé par un autre fichier actuellement ouvert. Le numéro de fichier identifie le fichier pour le reste des opérations de fichiers. Un numéro de fichier libre peut être trouvé en utilisant la fonction ##[[KeyPgFreefile FreeFile]]##.
{{fbdoc item="ex"}}
@@ -72,7 +72,7 @@ Print "Your age is: " + Str(age_ubyte)
{{fbdoc item="see"}}
- ##[[KeyPgAppend Append]]##
- - ##[[KeyPgInputfilemode Input (File Mode)]]##
+ - ##[[KeyPgInputfilemode Input (Mode fichier)]]##
- ##[[KeyPgOpen Open]]##
{{fbdoc item="back" value="CatPgFile|File I/O Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgOverload.wakka b/fbdocs/manual/cache/KeyPgOverload.wakka
index 45187bff26..48da00d3d8 100644
--- a/fbdocs/manual/cache/KeyPgOverload.wakka
+++ b/fbdocs/manual/cache/KeyPgOverload.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="OVERLOAD"}}----
-Specifies that a procedure name can be overloaded
+Indique que le nom d'une procédure peut être surchargé
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgSub Sub]] //procedure_name// **Overload** [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgSub Sub]] //procedure_name// **Overload** [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
- [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgFunction Function]] //procedure_name// **Overload** [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgFunction Function]] //procedure_name// **Overload** [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
- [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //procedure_name// **Overload** [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //procedure_name// **Overload** [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgSub Sub]]
- [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgFunction Function]] //procedure_name// **Overload** [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgFunction Function]] //procedure_name// **Overload** [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgFunction Function]]
##
{{fbdoc item="desc"}}
- In procedure declarations, **Overload** allows procedure names to be overloaded, that is, other procedures can then be declared with the same name if their parameter lists are unique. Two parameter lists are unique if they contain a different number of parameters, or have parameters of different types. Note that this means that two or more procedures cannot be declared with the same name if they differ in return type alone.
+ Dans les déclarations de procédure, **Overload** permet aux noms de procédure d'être surchargés, c'est à dire, d'autres procédures peuvent alors être déclarées avec le même nom si leurs listes de paramètres sont uniques. Deux listes de paramètres sont uniques si elles contiennent un certain nombre de paramètres différents ou ont des paramètres de types différents. Notez que cela signifie que deux ou plusieurs procédures, si elles ne diffèrent que dans leur type de retour, ne peuvent être déclarées avec le même nom.
- Once a procedure name has been declared overloaded, further declarations using the name need not specify *Overload*, but it is allowed.
+ Une fois qu'un nom de procédure a été déclaré surchargé, de nouvelles déclarations en utilisant le nom n'ont pas à préciser *Overload*, mais il est autorisé.
- **Overload** is not necessary in member procedure declarations, as they are always implicitly overloaded.
+ **Overload** n'est pas nécessaire dans les déclarations de membre de procédure, car ils sont toujours implicitement surchargés.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/procs/overload.bas"}}%%(freebasic)
@@ -43,7 +43,7 @@ SLEEP
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgDeclare Declare]]##
diff --git a/fbdocs/manual/cache/KeyPgPaint.wakka b/fbdocs/manual/cache/KeyPgPaint.wakka
index 42b6c63988..8669a2cbe1 100644
--- a/fbdocs/manual/cache/KeyPgPaint.wakka
+++ b/fbdocs/manual/cache/KeyPgPaint.wakka
@@ -1,43 +1,43 @@
{{fbdoc item="title" value="PAINT"}}----
-Fills an area delimited by a border of a specified color
+Remplit une surface délimitée par une bordure, avec la couleur indiquée
{{fbdoc item="syntax"}}##
**Paint** [//target//,] [STEP] (//x//, //y//)[, [//paint//][, [//border_color//]]]
##
{{fbdoc item="param"}}
##//target//##
- specifies buffer to draw on.
+ le tampon sur lequel on dessine.
##STEP##
- indicates that coordinates are relative
+ indique que les coordonnées sont relatives
##(//x//, //y//)##
- coordinates of the pixel on which to start the flood fill (paint)
+ coordonnées du pixel sur lequel on commence le remplissage en utilisant ##//paint//##
##//paint//##
- the color attribute or fill pattern
- a numeric value indicates a color, while a string indicates a fill pattern
+ la couleur ou le motif pour effectuer le remplissage
+ une valeur numérique indique une couleur, alors qu'une chaîne indique un motif de remplissage
##//border_color//##
- boundary color for the fill
+ couleur de la bordure pour limiter le remplissage
{{fbdoc item="desc"}}
- Graphics command to fill an area delimited by a border of specified color. Also known as 'flood-fill' or 'paint bucket'.
+ Commande graphique pour remplir une zone délimitée par une bordure d'une certaine couleur. Aussi appelée 'flood-fill' (seau de peinture) ou 'paint bucket' (inondation-remplissage).
- ##**Paint**## can operate on the current work page as set by the ##[[KeyPgScreenset Screenset]]## statement or on the target ##[[KeyPgGetgraphics Get]]##/##[[KeyPgPutgraphics Put]]## buffer, if specified.
+ ##**Paint**## opère sur la page de travail courante validée par ##[[KeyPgScreenset ScreenSet]]## ou sur le tampon cible de ##[[KeyPgGetgraphics Get]]##/##[[KeyPgPutgraphics Put]]##, si spécifié.
- Filling starts at specified ##(//x//,//y//)## coordinates; if ##STEP## is specified, these are relative to the last graphics cursor position. Coordinates are also affected by custom coordinates system set up by ##[[KeyPgWindow Window]]## and/or ##[[KeyPgViewgraphics View (Graphics)]]## statements; clipping set by ##[[KeyPgViewgraphics View]]## also applies.
+ Le remplissage commence aux coordonnées ##(//x//,//y//)##; si ##STEP## est précisé, elles sont relatives à la dernière position du curseur graphique. Les coordonnées sont affectées sont affectées par le système de coordonnées personnel établi avec ##[[KeyPgWindow Window]]## et/ou ##[[KeyPgViewgraphics View (Graphics)]]##; le cadrage établi par ##[[KeyPgViewgraphics View]]## s'applique aussi.
- If the ##//paint//## argument is a number, it is assumed a color in the same format used by the ##[[KeyPgColor Color]]## statement, and the region is flood-filled using that color. If ##//paint//## is a ##[[KeyPgString String]]##, the region will be filled using a pattern; the pattern is always 8*8 pixels, and the passed string must hold pixels data in a format dependent on the current color depth. The string holds pattern pixels row by row, and its size should be as follows:
+ Si l'argument ##//paint//## est un nombre, il est utilisé comme une couleur du même format que celui utilisé par ##[[KeyPgColor Color]]## et la région est remplie en utilisant cette couleur. Si ##//paint//## est une ##[[KeyPgString String (chaîne)]]##, la région est remplie avec un motif; le motif a toujours 8 * 8 pixels, et la chaîne passée doit contenir des données dans un format correspondant à la profondeur de couleur courante. La chaîne du motif contient les pixels ligne par ligne, et sa taille doit être comme ci-dessous:
- For color depths 1, 2, 4 and 8:
+ Pour des profondeurs de couleur de 1, 2, 4 et 8:
##size = 8 * 8 = 64##
- For color depths 15 and 16:
+ Pour des profondeurs de couleur de 15 et 16:
##size = (8 * 8) * 2 = 128##
- For color depths 24 and 32:
+ Pour des profondeurs de couleur de 24 et 32:
##size = (8 * 8) * 4 = 256##
- If the passed string is smaller, missing pixels will be 0. If the ##//paint//## argument is omitted, normal filling is performed using the current foreground color set by ##[[KeyPgColor Color]]##. Flood-filling continues until pixels of the specified border color are found; if ##//border_color//## is omitted, the current background color is assumed.
+ Si la chaîne passée est plus petite, les pixels manquants seront à 0. Si l'argument ##//paint//## est omis, un remplissage normal sera exécuté en utilisant la couleur d'avant-plan validée par ##[[KeyPgColor Color]]##. Le remplissage continue tant que des pixels de la couleur bordure sont trouvés; si ##//border_color//## est omis, la couleur courante d'arrière-plan est utilisée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/paint.bas"}}%%(freebasic)
-' draws a white circle painted blue inside
+' Dessine un cercle blanc interieur peint en bleu
screen 13
circle (160, 100), 30, 15
paint (160, 100), 1, 15
@@ -45,15 +45,15 @@ sleep
%%
{{fbdoc item="filename" value="examples/manual/gfx/paint2.bas"}}%%(freebasic)
-' draws a circle and fills it with a checkered pattern
+' Dessine un cercle et le remplit avec un motif a damier
-'' choose the bit depth for the Screen
-'' try setting this to other values: 8, 16 or 32
+'' Choisit la profondeur de bits pour Screen
+'' Essayer de valider d' autres valeurs: 8, 16 ou 32
const bit_depth = 8
-'' function for returning a pixel color, represented as a string
-'' returns a the string in the appropriate format for the current bit depth
+'' Fonction pour retourner la couleur pixel, sous forme de chaine
+'' retourne la chaine dans le format approprie pour la profondeur de bit courante
function paint_pixel( byval c as uinteger, byval bit_depth_ as integer ) as string
if bit_depth_ <= 8 then '' 8-bit:
@@ -72,62 +72,62 @@ function paint_pixel( byval c as uinteger, byval bit_depth_ as integer ) as stri
end function
-'' open a graphics window at the chosen bit depth
+'' Ouvre une fenetre graphique a la profondeur de bit choisie
screenres 320, 200, bit_depth
-'' declare variables for holding colors
+'' Declare variables pour manier couleurs
dim as uinteger c, c1, c2, cb
-'' declare string variable for holding the pattern used in Paint
+'' Declare variable chaine pour manier le motif utilise dans Paint
dim as string paint_pattern = ""
-'' set colors
+'' Valide couleurs
if bit_depth <= 8 then
- c1 = 7 ''pattern color 1
- c2 = 8 ''pattern color 2
- cb = 15 ''border color
+ c1 = 7 ''couleur motif 1
+ c2 = 8 ''couleur motif 2
+ cb = 15 ''couleur bord
else
- c1 = rgb(192, 192, 192) '' pattern color 1
- c2 = rgb(128, 128, 128) '' pattern color 2
- cb = rgb(255, 255, 255) '' border color
+ c1 = RGB(192, 192, 192) '' couleur motif 1
+ c2 = RGB(128, 128, 128) '' couleur motif 2
+ cb = RGB(255, 255, 255) '' couleur bord
end if
-'' make the pattern to be used in Paint
+'' Fabrique le motif a utiliser dans Paint
for y as uinteger = 0 to 7
for x as uinteger = 0 to 7
- '' choose the color of the pixel (c)
+ '' Choisit la couleur du pixel (c)
if (x \ 4 + y \ 4) mod 2 > 0 then
c = c1
else
c = c2
end if
- '' add the pixel to the pattern
+ '' Ajoute le pixel au motif
paint_pattern = paint_pattern + paint_pixel(c, bit_depth)
- '' the following line can be used if you want to draw the
- '' pattern tile in the top left hand corner of the screen:
+ '' La ligne suivante peut etre utilisee si vous desirez afficher le
+ '' motif dans le coin haut gauche de l' ecran:
' pset (x, y), c
next x
next y
-'' draw a circle with the border color
+'' Dessine un cercle avec la couleur du bord
circle (160, 100), 50, cb, , , 1.0
-'' paint the circle region with paint_pattern, stopping at the border color
+'' Peint la region du cercle avec paint_pattern, stoppant a la couleur du bord
paint (160, 100), paint_pattern, cb
-'' pause before ending the program
+'' Pause avant fin du programme
sleep
%%
{{fbdoc item="diff"}}
- - ##//target//## is new to ""FreeBASIC""
- - In QB, the fill pattern was always 8-bits wide, and the height was the length of the string (up to 64). In FreeBASIC, the fill pattern is 8 pixels wide, independent of the color depth, and the height is always 8
- - The background color parameter supported by QB is not supported by the ""FreeBASIC"" version
+ - ##//target//## est nouveau pour FreeBASIC
+ - Dans QB, le motif de remplissage est toujours de 8 bits de largeur et la hauteur est la longueur de la chaîne (jusqu'à 64). Dans FreeBASIC, le motif de remplissage a 8 pixels de large, est indépendent de la profondeur de couleur et la hauteur est toujours de 8.
+ - Le paramètre de couleur d'arrière-plan supporté par QB ne l'est pas par la version FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgScreengraphics Screen]]##
diff --git a/fbdocs/manual/cache/KeyPgPalette.wakka b/fbdocs/manual/cache/KeyPgPalette.wakka
index b47e9c5720..6a6a9f07a2 100644
--- a/fbdocs/manual/cache/KeyPgPalette.wakka
+++ b/fbdocs/manual/cache/KeyPgPalette.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="PALETTE"}}----
-Customizes colors in modes with paletted colors
+Personnalise les couleurs dans les modes de couleurs palettisées
{{fbdoc item="syntax"}}##
**Palette** [Get] [//index//, //color//]
@@ -8,57 +8,57 @@ Customizes colors in modes with paletted colors
##
{{fbdoc item="param"}}
##Get##
- indicates getting palette information rather than setting palette information
+ indique une demande d'information et non une validation d'information palette
##Using##
- indicates using array of color values
+ indique l'utilisation d'un tableau de valeurs de couleur
##//index//##
- palette index
+ indice de la palette
##//color//##
- color attribute
+ attribut couleur
##//r//##
- red color component
+ composante rouge de couleur
##//g//##
- green color component
+ composante vert de couleur
##//b//##
- blue color component
+ composante bleu de couleur
##//arrayname(idx)//##
- array and index to get/set color attributes
+ tableau et indice pour obtenir/valider les attributs de couleur
{{fbdoc item="desc"}}
- The ##**Palette**## statement is used to retrieve or customize the current palette for graphics modes with a color depth of up to 8bpp; using ##**Palette**## while in a mode with a higher color depth will have no effect. Calling ##**Palette**## with no argument restores the default palette for current graphics mode, as set by the ##[[KeyPgScreengraphics Screen (Graphics)]]## statement.
- The GfxLib sets a [[GfxDefPalettes default palette]] when a [[KeyPgScreengraphics Screen]] mode is initialized.
+ ##**Palette**## est utilisé pour récupérer ou établir la palette courante pour les modes graphiques avec une profondeur de couleur jusqu'à 8bpp (8 bits par pixel); l'utilisation de ##**Palette**## quand on est dans un mode de profondeur de couleur supérieur n'a aucun effet. Appeler ##**Palette**## sans argument restaure la palette par défaut pour le mode graphique courant, comme le fait ##[[KeyPgScreengraphics Screen (Graphique)]]##.
+ La GfxLib valide une [[GfxDefPalettes palette par défaut]] quand un mode [[KeyPgScreengraphics Screen]] est initialisé.
- ==First form==
- If you specify index and color, these are dependent on the current mode:
- {{table columns="3" cellpadding="1" cells="Screen mode;index range;color range;1;0-3;0-15;2;0-1;0-15;7,8;0-15;0-15;9;0-15;0-63;11;0-1;see below;12;0-15;see below;13 to 21;0-255; see below"}}
- In screen modes 1, 2, 7, 8 and 9 you can assign to each color index one of the colors in the available range. In other screen modes, the color must be specified in the form &hBBGGRR, where BB, GG and RR are the blue, green and red components ranging ##&h0##-##&h3F## in hexadecimal (0-63 in decimal). If you don't like hexadecimal form, you can use the following formula to compute the integer value to pass to this parameter:
+ **Première forme**
+ Si vous spécifiez ##//index//## et ##//color//##, ceux-ci dépendent du mode courant:
+ {{table columns="" cellpadding="2" cells="Mode écran;##//index//##;##//color//##;1;0-3;0-15;2;0-1;0-15;7,8;0-15;0-15;9;0-15;0-63;11;0-1;voir ci-dessous;12;0-15;voir ci-dessous;13 à 21;0-255;voir ci-dessous;
+ Dans les modes écran 1, 2, 7, 8 et 9 vous assignez à chaque indice de couleur une des couleurs disponible dans la plage. Dans les autres modes écran, la couleur doit être spécifiée dans la forme &hBBVVRR, où BB, VV et RR sont les composantes bleu, vert et rouge dans la plage &h0-&h3F en hexadécimal (0-63 en décimal). Si vous n'aimez pas la forme hexadécimale, vous pouvez utiliser la formule ci-dessous pour calculer la valeur entière à passer à ce paramètre:
##color = red [[KeyPgOpOr or]] (green [[KeyPgOpShiftLeft shl]] 8) [[KeyPgOpOr or]] (blue [[KeyPgOpShiftLeft shl]] 16)##
- Where red, green and blue must range ##0##-##63##. Please note that color values accepted by ##**Palette**## are **not** the in the same form as returned by the ##[[KeyPgRgb RGB]]## macro (the red and blue fields are inverted, and the range is different); this is for backward compatibility with QB.
+ Où 'red' (rouge), 'green' (vert) et 'blue' (bleu) sont dans la plage 0-63. Notez SVP que les valeurs de couleur acceptées par ##**Palette**## **ne** sont **pas** de la même forme que celles retournées par la macro ##[[KeyPgRgb RGB]]## (les champs rouge et bleu sont intervertis, et la plage est différente); c'est une question de compatibilité avec QB.
- ==Second form==
- In the second form, you specify the red, green and blue components for a palette entry directly, by calling ##**Palette**## with 4 parameters. In this case ##//r//##, ##//g//## and ##//b//## must be in the range ##0##-##255##.
+ **Seconde forme**
+ Dans la seconde forme, vous précisez les composantes rouge, vert et bleu directement pour une palette, en appelant ##**Palette**## avec 4 paramètres. Dans ce cas ##//r//##, ##//g//## et ##//b//## doivent être dans la plage ##0##-##255##.
- ==Third form==
- Calling ##**Palette Using**## allows to set a list of color values all at once; you should pass an array holding enough elements as the color indices available for your current graphics mode color depth (2 for 1bpp, 4 for 2bpp, 16 for 4bpp or 256 for 8bpp). The array elements must be integer color values in the form described above. The colors stored into ##//arrayname//## starting with given ##//idx//## index are then assigned to each palette index, starting with index 0.
+ **Troisième forme**
+ Appeler ##**Palette Using**## permet d'établir en une seule fois une liste de valeurs de couleur; vous devrez passer un tableau ayant autant d'éléments que les indices de couleur disponibles pour la profondeur de couleur de votre mode graphique courant (2 pour 1bpp, 4 pour 2bpp, 16 pour 4bpp ou 256 pour 8bpp). Les éléments du tableau doivent être des valeurs entières de couleur comme décrit précédemment. Les couleurs stockées dans ##//arrayname//## débutent avec l'indice donné par ##//idx//## puis sont assignées à chaque indice de la palette, en commençant par 0.
- Form 1 and 3 are for backward compatibility with QB; form 2 is meant to ease palette handling. Any change to the palette is immediately visible on screen.
+ Les formes 1 et 3 sont pour la compatibilité descendante avec QB; la forme 2 facilite la prise en charge de la palette. Chaque modification de la palette est immédiatement suivi d'effet à l'écran.
- If the ##**Get**## option is specified, ##**Palette**## retrieves instead of setting color values for the current palette. The parameters have the same meaning as specified for the form being used, but in this case color, ##//r//##, ##//g//## and ##//b//## must be variables passed by reference that will hold the color RGB values on function exit.
+ Si l'option ##**Get**## est spécifiée, ##**Palette**## récupère au lieu de valider les valeurs de la palette courante. Les paramètres ont la même signification pour chaque forme utilisée, mais dans ce cas ##//color//##, ##//r//##, ##//g//## et ##//b//## sont des variables passées par référence qui contiendront les valeurs de couleur RVB à la sortie de la fonction.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/palette.bas"}}%%(freebasic)
-' Setting a single color, form 1.
+' Valide une seule couleur, forme 1.
screen 15
locate 1,1: color 15
print "Press any key to change my color!"
sleep
-' Now change color 15 hues to bright red
+' Maintenant change couleur 15 teintes vers lumineux red
palette 15, &h00003F
sleep
%%
{{fbdoc item="filename" value="examples/manual/gfx/palette2.bas"}}%%(freebasic)
-' Getting a single color, form 2.
+' Obtient une seule couleur, forme 2.
dim as integer r, g, b
screen 13
palette get 32, r, g, b
@@ -68,7 +68,7 @@ sleep
%%
{{fbdoc item="filename" value="examples/manual/gfx/palette3.bas"}}%%(freebasic)
-' Getting whole palette, form 3.
+' Obtient palette entiere, forme 3.
dim pal(1 to 256) as integer
dim i as integer
screen 13
@@ -80,12 +80,12 @@ sleep
%%
{{fbdoc item="diff"}}
- - QB version did not support palette retrieval.
+ - La version QB ne prend pas en charge la récupération de la palette.
{{fbdoc item="see"}}
- - ##[[KeyPgScreengraphics Screen (Graphics)]]##
+ - ##[[KeyPgScreengraphics Screen (Graphique)]]##
- ##[[KeyPgColor Color]]##
- ##[[KeyPgUsing Using]]##
- - ##[[GfxInternalFormats Internal Pixel Formats]]##
+ - ##[[GfxInternalFormats Formats graphiques internes]]##
{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPascal.wakka b/fbdocs/manual/cache/KeyPgPascal.wakka
index 10bc03a77c..228752fe26 100644
--- a/fbdocs/manual/cache/KeyPgPascal.wakka
+++ b/fbdocs/manual/cache/KeyPgPascal.wakka
@@ -1,35 +1,37 @@
{{fbdoc item="title" value="PASCAL"}}----
-Specifies a //Pascal//-style calling convention in a procedure declaration
+Spécifie une convention d'appel style-//Pascal// dans la déclaration d'une procédure
{{fbdoc item="syntax"}}##
- [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] **Pascal** [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] **pascal** [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
- [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] **Pascal** [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[KeyPgDeclare Declare]] [[[KeyPgStatic Static]]] [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] **pascal** [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
- [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] **Pascal** [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] **pascal** [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgSub Sub]]
- [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] **Pascal** [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ [[[KeyPgPublic Public]]|[[KeyPgPrivate Private]]] [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] **pascal** [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgFunction Function]]
##
{{fbdoc item="desc"}}
- In procedure declarations, ##**Pascal**## specifies that a procedure will use the //Pascal// calling convention. In the //Pascal// calling convention, any parameters are to be passed (pushed onto the stack) in the same order in which they are listed, that is, from left to right. The procedures need not preserve the ##EAX##, ##ECX## or ##EDX## registers, and must clean up the stack (pop any parameters) before it returns.
+ Dans les déclarations de procédure, ##**pascal**## spécifie qu'une procédure utilisera une convention d'appel //Pascal//. Dans une convention d'appel //Pascal//, tous les paramètres doivent être passés (placés sur la pile) dans l'ordre où ils ont été listés, c'est à dire, de la gauche vers la droite. Les procédures n'ont pas besoin de préserver les registres ##EAX##, ##ECX## ou ##EDX##, et doivent nettoyer la pile (sortie de tous les paramètres) avant le retour.
+
+ //Pascal// est la convention d'appel par défaut des procédures Microsoft QuickBASIC et la convention standard utilisée par l'API Windows 3.1.
- //Pascal// is the default calling convention for procedures in Microsoft ""QuickBASIC"", and is the standard convention used in the Windows 3.1 API.
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/procs/pascal.bas"}}%%(freebasic)
Declare Function MyFunc pascal Alias "MyFunc" (MyParm As Integer) As Integer
%%
-
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
-{{fbdoc item="see"}}
- - [[KeyPgCdecl Cdecl]], [[KeyPgStdcall Stdcall]]
+- Nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
+
+- [[KeyPgCdecl cdecl]], [[KeyPgStdcall stdcall]]
- [[KeyPgDeclare Declare]]
- [[KeyPgSub Sub]], [[KeyPgFunction Function]]
+ - [[KeyPgSub Sub]], [[KeyPgFunction Function]]
{{fbdoc item="back" value="CatPgProcedures|Procedures"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPcopy.wakka b/fbdocs/manual/cache/KeyPgPcopy.wakka
index e95471ecbc..4a413a2e16 100644
--- a/fbdocs/manual/cache/KeyPgPcopy.wakka
+++ b/fbdocs/manual/cache/KeyPgPcopy.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="PCOPY"}}----
-Copies one graphical or text page onto another
+Copie une page texte ou graphique vers une autre page
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Pcopy** ( [[KeyPgByval byval]] //source// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //destination// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )
@@ -9,100 +9,92 @@ Copies one graphical or text page onto another
##
{{fbdoc item="param"}}
##//source//##
- page to copy from
+ page à copier
##//destination//##
- page to copy to
+ page vers laquelle on copie
{{fbdoc item="desc"}}
- Copies one graphical or text video page to another. Useful for drawing all graphics on one invisible page and copying it to the active visible page - creating smooth graphics and animation. Known as 'double buffering' or 'page flipping'.
+ Copie une page texte ou graphique vers une autre page texte ou graphique. Utile pour copier tous les graphiques d'une page invisible vers la page visible active - création de graphiques et d'animations en douceur. Connu sous l'appellation 'double buffering' ou 'page flipping'.
- ##//source//## and ##//destination//## refer to page numbers. The 'source' page is copied over the 'destination' page when pcopy is called.
+ ##//source//## et ##//destination//## font référence aux numéros de pages. La page 'source' est copiée sur la page 'destination' quand 'Pcopy' est appelé.
- If the ##//source//## argument is omitted, the current working page is assumed. If the ##//destination//## page is omitted, the current visible page is assumed.
+ Si l'argument ##//source//## est omis, la page de travail courante est utilisée. Si la page ##//destination//## est omise, la page visible courante est utilisé.
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/gfx/pcopy.bas"}}%%(freebasic)
-screenres 320, 240, 32, 2 'Sets up the screen to be 320x240 in 32-bit color with 2 video pages.
-dim as integer max_x_value = 270, x_value = 50 'Dimension our working variables.
-
-do while x_value < max_x_value 'Loop while x_value is less than the max
- screenset 2,1 'Sets the working page to 2 and the displayed page to 1
- cls 'Clears the screen so we can start fresh
- circle (x_value,50),50,&h00FFFF00 'Draws a circle with a 50 pixel radius in yellow on page 2
- screenset 1,1 'Sets the working page to 1 and the displayed page to 1
- screensync 'Waits for vertical refresh
- pcopy 2,1 'Copies our circle from page 2 to page 1
- x_value += 1 'Increments x_value so it will move.
- sleep 25 'Waits for 25 milliseconds.
-loop 'Goes back to do as long as x_value is less than x_max_value
-
-sleep 'Waits for any key to be pressed so you can see the work done.
+
+ %%(freebasic)
+ScreenRes 320, 240, 32, 2 'Valide l' ecran a 320x240 en couleur 32-bit avec 2 pages video.
+Dim As Integer max_x_value = 270, x_value = 50 'Dimensionne les variables de travail.
+
+Do While x_value < max_x_value 'Boucle tant que x_value est inferieur a max
+ ScreenSet 2,1 'Valide la page travail a 2 et la page affichage a 1
+ Cls 'Efface ecran ainsi nous demarrons ecran propre
+ Circle (x_value,50),50,&h00FFFF00 'Dessine un cercle jaune avec un rayon de 50 pixels sur page 2
+ ScreenSet 1,1 'Page de travail a 1 et page affichage a 1
+ ScreenSync 'Attend rafraichissement vertical
+ PCopy 2,1 'Copie cercle depuis page 2 vers page 1
+x_value += 1 'Incremente x_value ainsi il se deplacera.
+
+Sleep 25 'Delai de 25 millisecondes.
+Loop 'Continue tant que x_value est inferieur a x_max_value
+
+ Sleep 'Attend touche appuyee.
%%
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/gfx/pcopy_cons.bas"}}%%(freebasic)
-' Console mode example:
-
-'' set the working page number to 0, and the visible page number to 1
#if __FB_LANG__ = "QB"
-screen ,, 0, 1
-#else
-screen , 0, 1
-#endif
-
-dim as integer i, frames, fps
-dim as double t
+' Exemple mode Console:
+'' Valide page travail a nombre 0, et page visible a nombre 1
+#if __FB_LANG__ = "QB"
+Screen ,, 0, 1
-t = timer
+#else
+Screen , 0, 1
-do
+#endif
+Dim As Integer i, frames, fps
+ Dim As Double t
+ t = Timer
+ Do
+ '' remplit page travail with avec certain couleur et caractere
+ Cls
+ Locate 1, 1
- '' fill working page with a certain color and character
- cls
- locate 1, 1
- color (i and 15), 0
- print string$(80 * 25, hex$(i, 1));
+ Color (i And 15), 0
+ Print String$(80 * 25, Hex$(i, 1));
i += 1
+ '' montre images par seconde
+ Color 15, 0
+ Locate 1, 1
+ Print "fps: " & fps,
+ If Int(t) <> Int(Timer) Then
+ t = Timer
+ fps = frames
+ frames = 0
+ End If
- '' show frames per second
- color 15, 0
- locate 1, 1
- print "fps: " & fps,
- if int(t) <> int(timer) then
- t = timer
- fps = frames
- frames = 0
- end if
frames += 1
+ '' copie page travail vers page visible
+ PCopy
+'' arret 50ms par image liberer temps cpu
+Sleep 50, 1
- '' copy working page to visible page
- pcopy
-
-
- '' sleep 50ms per frame to free up cpu time
- sleep 50, 1
-
-
- '' run loop until user presses a key
-loop until len(inkey$)
-%%
-
-{{fbdoc item="target"}}
- - Maximum number of text pages in Windows is 4.
- - Maximum number of text pages in DOS is 8.
- - Maximum number of text pages in all other targets is 1.
- - Maximum number of graphics pages depends on what was specified when the ##[[KeyPgScreengraphics Screen]]## or ##[[KeyPgScreenres Screenres]]## statement was called.
+'' boucle jusqu'a utilisateur appuie une touche
+ Loop Until Len(Inkey$)
+ %%
+ {{fbdoc item="section" value="Différences de plates-formes
+ - Le nombre maximum de pages texte est de 4 dans Windows.
-{{fbdoc item="diff"}}
- - None
+- Le nombre maximum de pages texte est de 8 dans DOS.
+ - Le nombre maximum de pages texte est de 1 dans toutes les autres.
-{{fbdoc item="see"}}
- - ##[[KeyPgScreencopy Screencopy]]##
- - ##[[KeyPgFlip Flip]]##
- - ##[[KeyPgScreengraphics Screen]]##
+- Le nombre maximum de pages graphiques dépend de ce qui a été spécifié avec ##[[KeyPgScreengraphics Screen]]## ou ##[[KeyPgScreenres ScreenRes]]##.
+ {{fbdoc item="diff"}}
+ - Aucune
+ {{fbdoc item="see"}}
-{{fbdoc item="back" value="CatPgGfxScreen|Screen Functions"}}
\ No newline at end of file
+- ##[[KeyPgScreencopy ScreenCopy]]##
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPeek.wakka b/fbdocs/manual/cache/KeyPgPeek.wakka
index 36024751d4..3a9d76d039 100644
--- a/fbdocs/manual/cache/KeyPgPeek.wakka
+++ b/fbdocs/manual/cache/KeyPgPeek.wakka
@@ -1,26 +1,26 @@
{{fbdoc item="title" value="PEEK"}}----
-Gets the value of an arbitrary type at an address in memory
+Obtient la valeur d'un type arbitraire à une adresse dans la mémoire
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Peek** ( [[KeyPgByval byval]] //address// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] [[KeyPgUbyte ubyte]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Peek** ( //datatype//, [[KeyPgByval byval]] //address// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] //datatype//
##
-~&//Note: ##**Peek**## returns a reference to the value at the specified address. See [[CompilerFAQ Compiler FAQ]].//
+//Note: ##**Peek**## retourne une référence à la valeur à l'adresse indiquée. Voir [[CompilerFAQ FAQ du compilateur]].//
{{fbdoc item="usage"}}##
**Peek**( [ //datatype//, ] //address// )
##
{{fbdoc item="param"}}
##//address//##
- The address in memory to get the value from.
+ L'adresse mémoire dont on veut obtenir la valeur.
##//datatype//##
- The type of value to get. If omitted, it defaults to the type of the pointer passed; or to ##[[KeyPgUbyte ubyte]]##, if the address is an ##[[KeyPgInteger integer]]## or an ##[[KeyPgAny any]] [[KeyPgPtr ptr]]##.
+ Le type de valeur à obtenir. En cas d'omission, la valeur par défaut correspond au type du pointeur passé ou à ##[[KeyPgUbyte UByte]]##, si l'adresse est un ##[[KeyPgInteger Integer]]## ou un ##[[KeyPgAny Any]] [[KeyPgPtr Ptr]]##.
{{fbdoc item="desc"}}
- This procedure returns a reference to the value in memory given by a memory address, and is equivalent to
+ Cette procédure renvoie une référence à la valeur en mémoire donnée par une adresse mémoire, et est équivalente à:
##*cast(ubyte ptr, //address//)##
- or
+ ou
##*cast(//datatype// ptr, //address//)##
{{fbdoc item="ex"}}
@@ -31,15 +31,15 @@ p = @i
Poke Integer, p, 420
Print Peek(Integer, p)
%%
- will produce the output:
+ affichera:
%%420
%%
{{fbdoc item="diff"}}
- - **##Peek##** did not support the ##//datatype//## parameter in QB, and could only return individual bytes.
- - **##Peek##** returns a reference in FB, so can be used to set the memory contents of the address, like with ##[[KeyPgOpValueOf Operator * (Value of)]]##.
- - ##DEF SEG## isn't needed anymore because the address space is 32-bit flat in ""FreeBASIC"".
+ - **##Peek##** ne supportait pas le paramètre ##//datatype//## dans QB, et ne pouvait retourner des octets individuels.
+ - **##Peek##** retourne une référence dans FB et peut donc être utilisé pour définir le contenu de la mémoire à l'adresse, comme avec ##[[KeyPgOpValueOf Operator * (Value Of)]]##.
+ - ##DEF SEG## n'est pas nécessaire parce que l'espace d'adressage est "32-bit flat" dans FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgPoke Poke]]##
diff --git a/fbdocs/manual/cache/KeyPgPmap.wakka b/fbdocs/manual/cache/KeyPgPmap.wakka
index a5fb114f1a..6e9303d3d9 100644
--- a/fbdocs/manual/cache/KeyPgPmap.wakka
+++ b/fbdocs/manual/cache/KeyPgPmap.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="PMAP"}}----
-Maps coordinates between view and physical mapping.
+Cartographie les coordonnées entre la vue et la cartographie physique..
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **PMap** ( [[KeyPgByval byval]] //coord// [[KeyPgAs as]] [[KeyPgSingle single]], [[KeyPgByval byval]] //func// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
@@ -9,17 +9,17 @@ Maps coordinates between view and physical mapping.
##
{{fbdoc item="param"}}
##//coord//##
- An expression indicating the coordinate to be mapped.
+ Une expression indiquant les coordonnées à cartographier.
##//func//##
- The mapping function number to be applied to given coordinate.
+ La numéro de la fonction de cartographie à employer pour donner les coordonnées.
-{{fbdoc item="ret"}}
- The mapped coordinate value.
+{{fbdoc item="section" value="Valeur Retournée
+ La valeur de la coordonnée.
{{fbdoc item="desc"}}
- This function converts a coordinate between view (as defined by the ##[[KeyPgWindow Window]]## statement) and physical (as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement) mappings. Depending on the value of ##//func//##, ##//expr//## is used to compute a different mapping to be returned by PMAP:
+ Cette fonction convertit une coordonnée entre la "cartographie vue" (définie par ##[[KeyPgWindow Window]]##) et la "cartographie physique" (comme établie par ##[[KeyPgViewgraphics View (Graphique)]]##). En fonction de la valeur de ##//func//##, ##//expr//## est utilisée pour calculer une cartographie différente pour être retournée par PMAP:
- {{table columns="2" cellpadding="1" cells="func value:;return value:;0;Treats expr as x view coordinate and returns corresponding x physical coordinate.;1;Treats expr as y view coordinate and returns corresponding y physical coordinate.;2;Treats expr as x physical coordinate and returns corresponding x view coordinate.;3;Treats expr as y physical coordinate and returns corresponding y view coordinate."}}
+ {{table columns="" cellpadding="2" cells="valeur de func:;valeur retournée:;0;Traîte expr comme coordonnée x vue (view) et retourne la coordonnée x physique (physical) correspondante.;1;Traîte expr comme coordonnée y vue (view) et retourne la coordonnée y physique (physical) correspondante.;2;Traîte expr comme coordonnée x physique (physical) et retourne la coordonnée x vue (view) correspondante.;3;Traîte expr comme coordonnée y physique (physical) et retourne la coordonnée y vue (view) correspondante.;
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/pmap.bas"}}%%(freebasic)
@@ -33,10 +33,10 @@ sleep
%%
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgWindow Window]]##
- - ##[[KeyPgViewgraphics View (Graphics)]]##
+ - ##[[KeyPgViewgraphics View (Graphique)]]##
{{fbdoc item="back" value="CatPgGfxScreen|Screen Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPoint.wakka b/fbdocs/manual/cache/KeyPgPoint.wakka
index fd43b31086..fc346bf602 100644
--- a/fbdocs/manual/cache/KeyPgPoint.wakka
+++ b/fbdocs/manual/cache/KeyPgPoint.wakka
@@ -1,59 +1,68 @@
{{fbdoc item="title" value="POINT"}}----
-Returns the color attribute of a specified pixel coordinate
+Retourne l'attribut de couleur d'un pixel dont on spécifie les coordonnées
{{fbdoc item="syntax"}}##
//result// = **Point**( //coord_x//, //coord_y// [,//buffer//] )
- or
+ ou
//result// = **Point**( //function_index// )
##
{{fbdoc item="usage"}}
##//coord_x//##
- x coordinate of the pixel
+ coordonnée x du pixel
##//coord_y//##
- y coordinate of the pixel
+ coordonnée y du pixel
##//buffer//##
- the image buffer to read from
+ le tampon image à lire
##//function_index//##
- the type of screen coordinate to return: one of the values ##0##, ##1##, ##2##, ##3##
+ le type de coordonnée écran à retourner: une des valeurs ##0##, ##1##, ##2##, ##3##
-{{fbdoc item="ret"}}
- If the ##//x//, //y//## coordinates of a pixel are provided **##Point##** returns the color attribute at the specified coordinates.
- If the argument is a function index, **##Point##** returns one of the graphics cursor coordinates set by the last graphics command.
-
- {{table columns="2" cellpadding="1" cells="Argument; Value Returned ; 0;The current physical x coordinate.;1;The current physical y coordinate.; 2;The current view x coordinate. This returns the same value as the POINT(0) function if the WINDOW statement has not been used.;3;The current view y coordinate. This returns the same value as the POINT(1) function if the WINDOW statement has not been used."}}
+{{fbdoc item="section" value="Valeur renvoyée
+ Si les coordonnées ##//x//, //y//## d'un pixel sont fournies **##Point##** retourne l'attribut de couleur aux coordonnées spécifiées.
+ Si l'argument est un indice de fonction, **##Point##** retourne une des coordonnées du curseur graphique validée par la dernière commnde graphique.
+
+ {{table columns="" cellpadding="2" cells="Argument; Valeur Retournée ; 0;La coordonnée physique x courante.;1;La coordonnée physique y courante.; 2;La coordonnée vue x courante. Ceci retourne la même valeur que la fonction POINT(0) si la éclaration WINDOW n'a pas été utilisée.;3;La coordonnée vue y courante. Ceci retourne la même valeur que la fonction POINT(1) si la éclaration WINDOW n'a pas été utilisée.;
{{fbdoc item="desc"}}
- ""GfxLib"" Function with two different uses.
- If supplied with two coordinates it reads the color of the pixel at the coordinate ##//coord_x//##, ##//coord_y//## of the screen, or of the ##//buffer//##, if supplied.
- The value return is a color index in a 256 or less color ##[[KeyPgScreengraphics Screen]]##, and an ##[[KeyPgRgb RGB]]## value in true color modes. If the coordinates are off-screen or off-buffer, ##-1## is returned
-
- If supplied with a single value it returns the one of the coordinates of the graphics cursor as set by the last graphics command executed. If the last command was executed in a buffer, the values returned will be coordinates in the buffer. Arguments out of the range ##0##-##3## will return ##0##.
+ Fonction GfxLib avec deux utilisations différentes.
+ Si appelée avec deux coordonnées, elle lit la couleur du pixel aux coordonnées ##//coord_x//##, ##//coord_y//## de l'écran ou du tampon ##//buffer//##, s'il est précisé.
+ La valeur retournée est un indice de couleur dans un espace de couleurs ##[[KeyPgScreengraphics Screen]]## de 256 ou moins et une valeur ##[[KeyPgRgb RGB]]## en mode "true color". Si les coordonnées sont hors écran ou hors tampon, ##-1## est retourné.
+
+ Si appelée avec une seule valeur, elle retourne une des coordonnées du curseur graphique qui a été validée par la dernière commande graphique exécutée. Si la dernière commande a été exécutée dans un tampon, les valeurs retournées seront les coordonnées dans le tampon. Les arguments en-dehors de ##0##-##3## retourneront ##0##.
- The function ##**Point**## does not work in text modes.
+ La fonction ##**Point**## ne fonctionne pas en modes texte.
- Optimization note: while **Point** and the opposite ##[[KeyPgPset Pset]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPeek Peek]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more usig inline ASM.
+ Note d'optimisation: bien que **Point** et son opposé ##[[KeyPgPset PSet]]## fournissent des résultats valides, ils sont très lents. De meilleures performances sont obtenues avec ##[[KeyPgPeek Peek]]## après avoir calculé l'adresse vous-mème à partir des valeurs données par ##[[KeyPgImageinfo ImageInfo]]## et ##[[KeyPgScreeninfo ScreenInfo]]##, ou en utilisant le langage machine avec "inline ASM".
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/point.bas"}}%%(freebasic)
-screen 13
-line (10,10)-(100,100),12
-print point(20,20)
+Screen 13
+Line (10,10)-(100,100),12
+
+Print Point(20,20)
%%
-**Output:**
+
+**Affichage:**
%%
+
12
%%
-{{fbdoc item="diff"}}
- - ##//buffer//## is new to ""FreeBASIC""
- - In SVGA modes, a 32-bit RGB value is returned
+{{fbdoc item="diff"}}
+- ##//buffer//## nouveau pour FreeBASIC
+- En modes SVGA, une valeur RGB 32-bit est retournée
{{fbdoc item="see"}}
- - ##[[KeyPgPset Pset]]##
+- ##[[KeyPgPset PSet]]##
+ - ##[[KeyPgPmap PMap]]##
+ - ##[[KeyPgColor Color]]##
+
+- ##[[KeyPgViewgraphics View (Grpahique)]]##
+ - ##[[KeyPgWindow Window]]##
- ##[[KeyPgPmap Pmap]]##
- ##[[KeyPgColor Color]]##
- ##[[KeyPgViewgraphics View (Graphics)]]##
- ##[[KeyPgWindow Window]]##
+ - ##[[GfxInternalFormats Internal pixel formats]]##
-{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
+{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
diff --git a/fbdocs/manual/cache/KeyPgPointer.wakka b/fbdocs/manual/cache/KeyPgPointer.wakka
index 594c97e5ae..78d585218c 100644
--- a/fbdocs/manual/cache/KeyPgPointer.wakka
+++ b/fbdocs/manual/cache/KeyPgPointer.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value="POINTER"}}----
-A variable declaration type modifier
+Déclaration d'un modificateur de type de variable
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //symbolname// [[KeyPgAs as]] [[DataType DataType]] {**Pointer** | [[KeyPgPtr ptr]]}
##
{{fbdoc item="desc"}}
- Declares a pointer variable. The same as ##[[KeyPgPtr Ptr]]##.
+ Déclare un pointeur de variable. Identique à ##[[KeyPgPtr Ptr]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/pointer.bas"}}%%(freebasic)
@@ -22,10 +22,10 @@ print *p
%%
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Pointer""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Pointer**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPtr Ptr]]##
diff --git a/fbdocs/manual/cache/KeyPgPoke.wakka b/fbdocs/manual/cache/KeyPgPoke.wakka
index 5e0a906632..27866ce096 100644
--- a/fbdocs/manual/cache/KeyPgPoke.wakka
+++ b/fbdocs/manual/cache/KeyPgPoke.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="POKE"}}----
-Assigns a value to a location in memory.
+Assigne une valeur à un emplacement en mémoire.
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Poke** ( [[KeyPgByval byval]] //address// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]], [[KeyPgByref byref]] //value// [[KeyPgAs as]] [[KeyPgUbyte ubyte]] )
@@ -10,20 +10,20 @@ Assigns a value to a location in memory.
##
{{fbdoc item="param"}}
##//datatype//##
- The type of data at the specified address.
+ Le type de données à l'adresse indiquée.
##//address//##
- The location in memory to assign to.
+ L'emplacement dans la mémoire où attribuer ##//value//##.
##//value//##
- The value to assign.
+ La valeur à attribuer.
{{fbdoc item="desc"}}
- ##**Poke**## assigns a value to a location in memory. It is equivalent to
+ ##**Poke**## assigne une valeur à un emplacement en mémoire. Est équivalent à:
##*cast(ubyte ptr, //address//) = //value//##
- or
+ ou
##*cast(//datatype// ptr, //address//) = //value//##
- When ##//datatype//## is a user-defined type, ##**Poke**## assigns ##//value//## using the type's ##[[KeyPgOpLet Operator Let]]##.
+ Quand ##//datatype//## est un type défini par l'utilisateur, ##**Poke**## assigne ##//value//## en utilisant le type ##[[KeyPgOpLet Operator Let]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/memory/poke.bas"}}%%(freebasic)
@@ -33,14 +33,14 @@ p = @i
Poke Integer, p, 420
Print Peek(Integer, p)
%%
- Will produce the output:
+ affichera:
%%420
%%
{{fbdoc item="diff"}}
- - Only the byte form were supported in QB.
- - ##DEF SEG## isn't needed anymore because the address space is 32-bit flat in FreeBASIC.
+ - Seule la forme octets est prise en charge dans QB.
+ - ##DEF SEG## n'est pas nécessaire parce que l'espace d'adressage est "32-bit flat" dans FreeBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgPeek Peek]]##
diff --git a/fbdocs/manual/cache/KeyPgPos.wakka b/fbdocs/manual/cache/KeyPgPos.wakka
index 868155cb94..2364628f0c 100644
--- a/fbdocs/manual/cache/KeyPgPos.wakka
+++ b/fbdocs/manual/cache/KeyPgPos.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="POS"}}----
-Returns the horizontal (left to right) position of the text cursor
+Retourne la position horizontale (de gauche à droite) du curseur texte
{{fbdoc item="syntax"}}##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Pos** [[KeyPgOverload overload]] ( ) [[KeyPgAs as]] [[KeyPgInteger integer]]
@@ -10,13 +10,13 @@ Returns the horizontal (left to right) position of the text cursor
##
{{fbdoc item="param"}}
##//dummy//##
- An unused parameter retained for backward compatibility with QBASIC.
+ Un paramètre inutilisé pour conserver la compatibilité descendante avec QBASIC.
-{{fbdoc item="ret"}}
- Returns the horizontal position of the text cursor.
+{{fbdoc item="section" value="Valeur retournée
+ Retourne la position horizontale du curseur texte.
{{fbdoc item="desc"}}
-Returns the horizontal (left to right) position of the text cursor. The leftmost column is number ##1##.
+Retourne la position horizontale (de gauche à droite) du curseur texte. La colonne la plus à gauche a le numéro ##1##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/console/pos.bas"}}%%(freebasic)
@@ -40,7 +40,7 @@ Print Pos(), Pos(), Pos(), Pos(), Pos()
%%
{{fbdoc item="diff"}}
- - The ##//dummy//## parameter was not optional in QBASIC.
+ - Le paramètre ##//dummy//## n'était pas facultatif dans QBASIC.
{{fbdoc item="see"}}
- ##[[KeyPgCsrlin Csrlin]]##
diff --git a/fbdocs/manual/cache/KeyPgPpdefine.wakka b/fbdocs/manual/cache/KeyPgPpdefine.wakka
index e934bafcb3..a00f6f3f1f 100644
--- a/fbdocs/manual/cache/KeyPgPpdefine.wakka
+++ b/fbdocs/manual/cache/KeyPgPpdefine.wakka
@@ -1,23 +1,24 @@
{{fbdoc item="title" value="#DEFINE"}}----
-Preprocessor directive to define a macro
+Directive du préprocesseur pour définir une macro
{{fbdoc item="syntax"}}##
- #define //identifier// //text//
#define //identifier//( [ //parameters// ] ) //macro_text//
#define //identifier//( [ //parameters//, ] //variadic_parameter//[[KeyPgDots ...]] ) //macro_text//
-##
+ ##
{{fbdoc item="desc"}}
- Preprocessor keyword that defines an identifier with a custom meaning:
- - Non-empty defines (with ##//text//##) are substituted by its ##//text//## when the source is parsed, allowing a sort of "shorthand". ##//text//## may be empty, which is useful for making defines that are just designed for checking with ##[[KeyPgPpifdef #ifdef]]## and ##[[KeyPgPpifndef #ifndef]]##.
- - Defines with parameters are substituted by the ##//macro_text//##, that will contain all the arguments passed replaced. **Note:** The open parentheses character ("##(##") must immediately follow the ##//identifier//##, there should be no white-spaces between them, otherwise the parentheses will be taken as part of ##//text//##.
- - Defines are visible only in the scope where they are defined. If defined at module level, the define is visible throughout the module. If the ##//identifier//## is defined inside a compound statement having scope (##[[KeyPgSub Sub]]##, ##[[KeyPgFornext For..Next]]##, ##[[KeyPgWhilewend While..Wend]]##, ##[[KeyPgDoloop Do..Loop]]##, ##[[KeyPgScope Scope..End Scope]]##, etc), the ##//identifier//## is visible only within that scope.
- - Namespaces do not have any effect on the visibility of a define.
-
- ##//Identifier//##s can be checked to see whether they have been defined with ##[[KeyPgPpifdef #ifdef]]## and ##[[KeyPgPpifndef #ifndef]]##, which can be used to hide parts of code to the compiler (conditional compiling).
-
- For defining identifiers with constant values associated with them ##[[KeyPgConst Const]]## may be used as a more powerful method.
+Mot-clé du préprocesseur qui définit un identifiant avec un sens personnalisé:
+ - Des ##//define//## non-vides (avec ##//texte//##) sont remplacés par leur ##//texte//## lorsque le source est analysé, permettant une sorte de "raccourci". ##//text//## peut être vide, ce qui est utile pour faire des ##//define//## conçus pour le contrôle des ##[[KeyPgPpifdef #ifdef]]## et ##[[KeyPgPpifndef #ifndef]]##.
+
+ - Des ##//define//## avec des paramètres sont remplacés par le ##//macro_text//##, qui contiendra tous les arguments passés remis à leur place. **Note:** Le caractère ouverture des parenthèses ("##(##") doit suivre immédiatement l' ##//identifier//##, il ne doit y avoir aucun espace-blanc entre eux, sinon les parenthèses seront prises comme faisant partie du ##//text//##.
+ - Les ##//define//## ne sont visibles que dans la portée où ils sont définis. S'il est défini au niveau du module, ##//define//## est visible tout au long du module. Si l'##//identifier//## est défini dans une instruction à portée composée (##[[KeyPgSub Sub]]##, ##[[KeyPgFornext For..Next]]##, ##[[KeyPgWhilewend While..Wend]]##, ##[[KeyPgDoloop Do..Loop]]##, ##[[KeyPgScope Scope..End Scope]]##, etc), l'##//identifier//## n'est visible que dans cette portée.
+
+ - Les espaces de noms n'ont aucun effet sur la visibilité d'un ##//define//##.
+
+ Les ##//Identifier//## peuvent être examinés pour voir si ils ont été définis avec ##[[KeyPgPpifdef #ifdef]]## et ##[[KeyPgPpifndef #ifndef]]##, ce qui peut être utilisé pour cacher des parties du code pour le compilateur (compilation conditionnelle).
+
+ Pour définir des identificateurs avec des valeurs constantes qui leur sont associées, ##[[KeyPgConst Const]]## peut être utilisé comme une méthode plus puissante.
- Using ##[[KeyPgDots ...]]## (an ellipsis) behind the last parameter of a macro allows to create a variadic macro. This means it is possible to pass any number of arguments to the //variadic_parameter//, which can be used in the //macro_text//, just like a normal macro parameter. The //variadic_parameter// will expand to the full list of arguments passed to it, including commas, and can also be completely empty.
+ Utiliser ##[[KeyPgDots ...]]## (une ellipse) derrière le dernier paramètre d'une macro permet de créer une macro variadique. Cela signifie qu'il est possible de passer n'importe quel nombre d'arguments à //variadic_parameter//, qui peuvent être utilisés dans //macro_text//, tout comme un paramètre macro normal. Le //variadic_parameter// sera étendu à la liste complète des arguments passés, y compris les virgules et peut également être complètement vide.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/define.bas"}}%%(freebasic)
@@ -45,41 +46,29 @@ scope
end scope
#ifndef LOCALDEF
-# print LOCALDEF is not defined
+# Print LOCALDEF Is Not defined
#endif
'' namespaces have no effect on the visibility of a define
namespace foo
-# define NSDEF
+# define NSDEF
end namespace
#ifdef NSDEF
-# print NSDEF is defined
+# Print NSDEF Is defined
#endif
%%
-{{fbdoc item="filename" value="examples/manual/prepro/variadic.bas"}}%%(freebasic)
-'' Using a variadic macro to wrap a variadic function
-#include "crt.bi"
-#define eprintf(format, args...) fprintf(stderr, format, args)
-eprintf(!"Hello from printf: %i %s %i\n", 5, "test", 123)
-
-'' LISP-like accessors allowing to modify comma-separated lists
-#define car(a, b...) a
-#define cdr(a, b...) b
-%%
-
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
-
-{{fbdoc item="see"}}
- - ##[[KeyPgPpmacro #macro]]##
- - ##[[KeyPgOpPpStringize # Preprocessor stringize]]##
- - ##[[KeyPgOpPpConcat ## Preprocessor concatenate]]##
- - ##[[KeyPgPpifdef #ifdef]]##
- - ##[[KeyPgPpifndef #ifndef]]##
- - ##[[KeyPgPpundef #undef]]##
- - ##[[KeyPgDefined defined]]##
- - ##[[KeyPgConst Const]]##
+ '' Using a variadic macro to wrap a variadic function
-{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
+#include "crt.bi"
+ #define eprintf(Format, args...) fprintf(stderr, Format, args)
+ eprintf(!"Hello from printf: %i %s %i\n", 5, "test", 123)
+ '' LISP-like accessors allowing to modify comma-separated lists
+ #define car(a, b...) a
+ #define cdr(a, b...) b
+ %%
+ {{fbdoc item="diff"}}
+
+- Nouveau pour Freebasic
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpelse.wakka b/fbdocs/manual/cache/KeyPgPpelse.wakka
index 07c93bd7a6..e6f2c5f7d7 100644
--- a/fbdocs/manual/cache/KeyPgPpelse.wakka
+++ b/fbdocs/manual/cache/KeyPgPpelse.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="#ELSE"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
-{{fbdoc item="syntax"}}##
- [[KeyPgPpif #if]] (expression)
- ' Conditionally included statements if expression is True
+{{fbdoc item="syntax"}}
+ ##[[KeyPgPpif #if]]## (expression)
+ ' Déclarations incluses à condition qu'//expression// soit Vraie (True)
**#else**
- ' Conditionally included statements if expression is False
- [[KeyPgPpendif #endif]]
-##
+ ' Déclarations incluses à condition qu'//expression// soit Fausse (False)
+ ##
+[[KeyPgPpendif #endif]]##
{{fbdoc item="desc"}}
- **#else** can be added to an ##[[KeyPgPpif #if]]##, ##[[KeyPgPpifdef #ifdef]]##, or ##[[KeyPgPpifndef #ifndef]]## block to provide an alternate result to the conditional expression.
+ **#else** peut être ajouté à un bloc ##[[KeyPgPpif #if]]##, ##[[KeyPgPpifdef #ifdef]]##, ou ##[[KeyPgPpifndef #ifndef]]## pour procurer un résultat alternatif à l'expression conditionnelle.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/else.bas"}}%%(freebasic)
@@ -24,7 +24,7 @@ Print "Program is "; a
%%
{{fbdoc item="diff"}}
- - New to Freebasic
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
diff --git a/fbdocs/manual/cache/KeyPgPpelseif.wakka b/fbdocs/manual/cache/KeyPgPpelseif.wakka
index 0f6e530e02..bb39f0085a 100644
--- a/fbdocs/manual/cache/KeyPgPpelseif.wakka
+++ b/fbdocs/manual/cache/KeyPgPpelseif.wakka
@@ -1,36 +1,35 @@
{{fbdoc item="title" value="#ELSEIF"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
-{{fbdoc item="syntax"}}##
+{{fbdoc item="syntax"}}
[[KeyPgPpif #if]] (expression1)
- ' Conditionally included statements if expression1 is True
+ ' Déclarations incluses à condition qu'//expression1// soit Vrai (True)
**#elseif** (expression2)
- ' Conditionally included statements if expression2 is True
+ ' Déclarations incluses à condition qu'//expression2// soit Vrai (True)
[[KeyPgPpelse #else]]
- ' Conditionally included statements if both
- ' expression1 and expression2 are False
+ ' Déclarations incluses à condition que les deux
+ ' //expression1// et //expression2// soient Faux (False)
[[KeyPgPpendif #endif]]
-##
{{fbdoc item="desc"}}
- **#elseif** can be added to an ##[[KeyPgPpif #if]]## block to provide an additional conditions.
+**#elseif** peut être ajouté à un bloc ##[[KeyPgPpif #if]]## pour procurer une condition additionnelle.
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/prepro/elseif.bas"}}%%(freebasic)
-#DEFINE WORDSIZE 16
-#IF (WORDSIZE = 16)
- ' Do some some 16 bit stuff
-#ELSEIF (WORDSIZE = 32)
- ' Do some some 32 bit stuff
-#ELSE
- #ERROR WORDSIZE must be set to 16 or 32
-#ENDIF
+#define WORDSIZE 16
+#if (WORDSIZE = 16)
+' Do some some 16 bit stuff
+ #elseif (WORDSIZE = 32)
+' Do some some 32 bit stuff
+ #else
+#error WORDSIZE must be set To 16 Or 32
+ #endif
%%
-
{{fbdoc item="diff"}}
- - New to Freebasic
-{{fbdoc item="see"}}
- - ##[[KeyPgPpdefine #define]]##
+- Nouveau pour Freebasic
+ {{fbdoc item="see"}}
+
+- ##[[KeyPgPpdefine #define]]##
- ##[[KeyPgPpmacro #macro]]##
- ##[[KeyPgPpif #if]]##
- ##[[KeyPgPpelse #else]]##
@@ -39,6 +38,7 @@ Preprocessor conditional directive
- ##[[KeyPgPpifndef #ifndef]]##
- ##[[KeyPgPpundef #undef]]##
- ##[[KeyPgDefined defined]]##
+ - ##[[KeyPgDefined defined]]##
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpendif.wakka b/fbdocs/manual/cache/KeyPgPpendif.wakka
index 2338757f3e..c5ec780fa4 100644
--- a/fbdocs/manual/cache/KeyPgPpendif.wakka
+++ b/fbdocs/manual/cache/KeyPgPpendif.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="#ENDIF"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
{{fbdoc item="syntax"}}##
**#endif**
##
{{fbdoc item="desc"}}
- Ends a group of conditional directives
+ Termine un groupe de directives conditionnelles
- See ##[[KeyPgPpif #if]]##, ##[[KeyPgPpifdef #ifdef]]##, or ##[[KeyPgPpifndef #ifndef]]## for examples of usage.
+ Voir ##[[KeyPgPpif #if]]##, ##[[KeyPgPpifdef #ifdef]]##, ou ##[[KeyPgPpifndef #ifndef]]## pour des exemples d'utilisation.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/endif.bas"}}%%(freebasic)
@@ -18,7 +18,7 @@ Preprocessor conditional directive
%%
{{fbdoc item="diff"}}
- - New to Freebasic
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
diff --git a/fbdocs/manual/cache/KeyPgPperror.wakka b/fbdocs/manual/cache/KeyPgPperror.wakka
index f944ded5ec..b6bdc3cf25 100644
--- a/fbdocs/manual/cache/KeyPgPperror.wakka
+++ b/fbdocs/manual/cache/KeyPgPperror.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value=" #ERROR"}}----
-Preprocessor diagnostic directive
+Directive préprocesseur de diagnostique
{{fbdoc item="syntax"}}##
**#error** //error_text//
##
{{fbdoc item="param"}}
##//error_text//##
- The display message
+ Le message affiché
{{fbdoc item="desc"}}
- ##**#error**## stops compiling and displays ##//error_text//## when compiler finds it.
+ ##**#error**## arrête la compilation et affiche ##//error_text//## quand le compilateur détecte une erreur.
- This keyword must be surrounded by an ##[[KeyPgPpif #if]]## ...##[[KeyPgPpendif #endif]]## so compiler can reach ##**#error**## only if is meet.
+ Ce mot-clef doit être encadré par ##[[KeyPgPpif #if]]## ...##[[KeyPgPpendif #endif]]## ainsi le compilateur peut atteindre ##**#error**## seulement si est vérifiée.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/error.bas"}}%%(freebasic)
@@ -23,7 +23,7 @@ Preprocessor diagnostic directive
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpif #if]]##
diff --git a/fbdocs/manual/cache/KeyPgPpif.wakka b/fbdocs/manual/cache/KeyPgPpif.wakka
index 6bd9b72e4b..1185069e4c 100644
--- a/fbdocs/manual/cache/KeyPgPpif.wakka
+++ b/fbdocs/manual/cache/KeyPgPpif.wakka
@@ -1,39 +1,39 @@
{{fbdoc item="title" value="#IF"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
-{{fbdoc item="syntax"}}##
- **#if** (expression)
- ' Conditionally included statements
+{{fbdoc item="syntax"}}
+ ##**#if**## (expression)
+ ' Déclarations incluses sous condition
[[KeyPgPpendif #endif]]
-##
{{fbdoc item="desc"}}
- Conditionally includes statements at compile time.
+Déclarations incluses sous condition au moment de la compilation.
+ Les déclarations contenues dans le bloc ##**#if**## / ##[[KeyPgPpendif #endif]]## sont incluses si ##//expression//## est évaluée comme Vrai (True) (non-zéro) et exclues (ignorées) si ##//expression//## est évaluée comme Faux (False) (0).
- Statements contained within the ##**#if**## / ##[[KeyPgPpendif #endif]]## block are included if ##//expression//## evaluates to True (non-zero) and excluded (ignored) if ##//expression//## evaluates to False (0).
+ Cette directive conditionnelle diffère de la déclaration conditionnelle ##[[KeyPgIfthen If]]## car ##**#if**## est évalué au moment de la compilation alors que ##[[KeyPgIfthen If]]## est évalué à l'exécution du programme.
- This conditional directive differs from the ##[[KeyPgIfthen If]]## conditional statement in that ##**#if**## is evaluated at compile-time and ##[[KeyPgIfthen If]]## is evaluated at run-time.
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/prepro/if.bas"}}%%(freebasic)
#define DEBUG_LEVEL 1
-#IF (DEBUG_LEVEL >= 2)
- ' This line is not compiled since the expression is False
+#if (DEBUG_LEVEL >= 2)
+' This line is not compiled since the expression is False
Print "Starting application"
-#ENDIF
+ #endif
%%
-
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
-{{fbdoc item="see"}}
- - ##[[KeyPgPpdefine #define]]##
+- Nouveau pour Freebasic
+ {{fbdoc item="see"}}
+
+- ##[[KeyPgPpdefine #define]]##
- ##[[KeyPgPpmacro #macro]]##
- ##[[KeyPgPpelse #else]]##
- - ##[[KeyPgPpelseif #elseIf]]##
+ - ##[[KeyPgPpelseif #elseif]]##
- ##[[KeyPgPpendif #endif]]##
- ##[[KeyPgPpifdef #ifdef]]##
- ##[[KeyPgPpifndef #ifndef]]##
- ##[[KeyPgPpundef #undef]]##
- ##[[KeyPgDefined defined]]##
+ - ##[[KeyPgDefined defined]]##
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpifdef.wakka b/fbdocs/manual/cache/KeyPgPpifdef.wakka
index ce7ea8d574..68cc84f2da 100644
--- a/fbdocs/manual/cache/KeyPgPpifdef.wakka
+++ b/fbdocs/manual/cache/KeyPgPpifdef.wakka
@@ -1,31 +1,30 @@
{{fbdoc item="title" value="#IFDEF"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
-{{fbdoc item="syntax"}}##
- **#ifdef** //symbol//
- ' Conditionally included statements
+{{fbdoc item="syntax"}}
+ ##**#ifdef**## //symbol//
+ ' Déclarations incluses sous condition
[[KeyPgPpendif #endif]]
-##
{{fbdoc item="desc"}}
- Conditionally includes statements at compile time.
+Déclarations incluses sous condition au moment de la compilation.
+ Les déclarations contenues dans le bloc ##**#ifdef**...[[KeyPgPpendif #endif]]## sont incluses si ##//symbol//## est défini et exclues (ignorée) si ##//symbol//## n'est pas défini.
- Statements within the ##**#ifdef**...[[KeyPgPpendif #endif]]## block are included if ##//symbol//## is defined and excluded (ignored) if ##//symbol//## is not defined.
+ ##**#ifdef** //symbol//## est équivalent à ##[[KeyPgPpif #if]] [[KeyPgDefined defined]] (//symbol//)##
- ##**#ifdef** //symbol//## is equivalent to ##[[KeyPgPpif #if]] [[KeyPgDefined defined]] (//symbol//)##
+ {{fbdoc item="ex"}}
{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/prepro/ifdef.bas"}}%%(freebasic)
-#DEFINE _DEBUG
-#IFDEF _DEBUG
- ' Special statements for debugging
-#ENDIF
+#define _DEBUG
+#ifdef _DEBUG
+' Special statements for debugging
+ #endif
%%
-
{{fbdoc item="diff"}}
- - New to Freebasic
-{{fbdoc item="see"}}
- - ##[[KeyPgPpdefine #define]]##
+- Nouveau pour Freebasic
+ {{fbdoc item="see"}}
+
+- ##[[KeyPgPpdefine #define]]##
- ##[[KeyPgPpmacro #macro]]##
- ##[[KeyPgPpif #if]]##
- ##[[KeyPgPpelse #else]]##
@@ -34,5 +33,6 @@ Preprocessor conditional directive
- ##[[KeyPgPpifndef #ifndef]]##
- ##[[KeyPgPpundef #undef]]##
- ##[[KeyPgDefined defined]]##
+ - ##[[KeyPgDefined defined]]##
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpifndef.wakka b/fbdocs/manual/cache/KeyPgPpifndef.wakka
index a4f209c5ae..25dae463d3 100644
--- a/fbdocs/manual/cache/KeyPgPpifndef.wakka
+++ b/fbdocs/manual/cache/KeyPgPpifndef.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="#IFNDEF"}}----
-Preprocessor conditional directive
+Directive conditionnelle du préprocesseur
-{{fbdoc item="syntax"}}##
- **#ifndef** //symbol//
- ' Conditionally included statements
- [[KeyPgPpendif endif]]
-##
+{{fbdoc item="syntax"}}
+ ##**#ifndef**## //symbol//
+ ' Déclarations incluses sous condition
+ ##
+[[KeyPgPpendif #endif]]##
{{fbdoc item="desc"}}
- Conditionally includes statements at compile time.
+ Déclarations incluses sous condition au moment de la compilation.
- Statements within the ##**#ifndef**...[[KeyPgPpendif #endif]]## block are included if //symbol// is not defined and excluded (ignored) if //symbol// is defined.
+ Les déclarations contenues dans le bloc ##**#ifndef**...[[KeyPgPpendif #endif]]## sont incluses si //symbol// n'est pas défini et exclues (ignorées) si //symbol// est défini.
- ##**#ifndef** //symbol//## is equivalent to ##[[KeyPgPpif #if]] Not [[KeyPgDefined defined]](//symbol//)##
+ ##**#ifndef** //symbol//## est équivalent à ##[[KeyPgPpif #if]] Not [[KeyPgDefined defined]](//symbol//)##
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/ifndef.bas"}}%%(freebasic)
@@ -22,7 +22,7 @@ Preprocessor conditional directive
%%
{{fbdoc item="diff"}}
- - New to Freebasic
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
diff --git a/fbdocs/manual/cache/KeyPgPplang.wakka b/fbdocs/manual/cache/KeyPgPplang.wakka
index 6e40ccb732..7ae2f8f148 100644
--- a/fbdocs/manual/cache/KeyPgPplang.wakka
+++ b/fbdocs/manual/cache/KeyPgPplang.wakka
@@ -1,21 +1,21 @@
{{fbdoc item="title" value="#LANG"}}----
-Preprocessor statement to set the compiler dialect.
+Déclaration du préprocesseur pour définir le dialecte du compilateur.
{{fbdoc item="syntax"}}##
**#lang** "//lang//"
##
{{fbdoc item="param"}}
##"//lang//"##
- The dialect to set, enclosed in double quotes, and must be one of ##"fb"##, ##"fblite"##, ##"qb"##, or ##"deprecated"##.
+ Le dialecte à fixer, entre guillemets doubles, qui doit être l'un de ceux-ci: ##"fb"##, ##"fblite"##, ##"qb"##, ou ##"deprecated"##.
{{fbdoc item="desc"}}
- If the //[[CompilerOptforcelang -forcelang]]// option was not given on the command line, ##**#lang**## can be used to set the dialect for the source module in which it appears. At most two passes will be made on the source module. On the first pass, if the specified dialect is anything other than the default dialect (chosen with //[[CompilerOptlang -lang]]//, or ##"fb"## by default), the compiler will reset the parser for another pass and restart compilation at the beginning of the source module. If this directive is encountered again on the second pass, and the specified dialect does not match the new current dialect, a warning is issued and compilation continues. If any errors were encountered on the first pass, the compiler will not attempt a second pass."
+ Si l'option //[[CompilerOptforcelang -forcelang]]// n'a pas été donnée par la ligne de commande, ##**#lang**## peut être utilisé pour indiquer le dialecte dans lequel le module source apparaît. Tout au plus deux passes seront effectuées sur le module source. Lors de la première passe, si le dialecte spécifié est différent du dialecte par défaut (choisi avec //[[CompilerOptlang -lang]]//, ou ##"fb"## par défaut), le compilateur réinitialisera l'analyseur pour un nouveau passage et redémarrera la compilation au début du module source. Si cette directive est rencontrée à nouveau lors de la seconde passe et que le dialecte spécifié ne correspond pas au nouveau dialecte courant, un avertissement est émis et la compilation continue. Si des erreurs ont été rencontrées lors du premier passe, le compilateur ne tentera pas une seconde passe.
- ##**#lang**## may not be used in any compound statement, scope, or subroutine. However, it may be nested in module level preprocessor statements or used in an include file.
+ ##**#lang**## ne peut pas être utilisé dans toute instruction composée, portée ou sous-programme. Cependant, il peut être imbriqué dans des déclarations au niveau module du préprocesseur ou utilisé dans un "fichier include".
- There is currently no restriction on where this directive may be placed in a source module. In future this may change, therefore best practice would be to use this directive before the first declaration, definition, or executable statement in the source.
+ Il n'existe actuellement aucune restriction sur l'endroit où cette directive peut être placée dans un module source. A l'avenir, cela pourrait changer; cependant, la meilleure pratique est d'utiliser cette directive avant la première déclaration, définition ou déclaration exécutable dans le source.
- This directive overrides the //[[CompilerOptlang -lang]]// option if it was given on the command line. However, if the //[[CompilerOptforcelang -forcelang]]// option was given on the command line, this directive will have no effect. A warning is issued, the directive is ignored, and compilation will continue. This allows the user to explicitly override ##**#lang**## directives.
+ Cette directive annule l'option //[[CompilerOptlang -lang]]// si elle a été donnée sur la ligne de commande. Cependant, si l'option //[[CompilerOptforcelang -forcelang]]// a été donnée sur la ligne de commande, cette directive sera sans effet. Un avertissement est affiché, la directive est ignorée et la compilation continue. Cela permet à l'utilisateur de remplacer explicitement les directives ##**#lang**##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/lang.bas"}}%%(freebasic)
@@ -23,13 +23,13 @@ Preprocessor statement to set the compiler dialect.
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgMetaLang $lang]]##
- ##[[KeyPgDdfblang __FB_LANG__]]##
- - [[CompilerOptlang Compiler Option: -lang]]
- - [[CompilerOptforcelang Compiler Option: -forcelang]]
- - [[CompilerDialects FreeBASIC Dialects]]
+ - [[CompilerOptlang Option du compilateur: -lang]]
+ - [[CompilerOptforcelang Option du compilateur: -forcelang]]
+ - [[CompilerDialects Les dialectes du FreeBASIC]]
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPplibpath.wakka b/fbdocs/manual/cache/KeyPgPplibpath.wakka
index 039a464fc6..4354e6d16a 100644
--- a/fbdocs/manual/cache/KeyPgPplibpath.wakka
+++ b/fbdocs/manual/cache/KeyPgPplibpath.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="#LIBPATH"}}----
-Preprocessor statement to add a search path for libraries
+Déclaration du préprocesseur pour ajouter un chemin de recherche pour les bibliothèques
{{fbdoc item="syntax"}}##
**#libpath** "//path//"
##
{{fbdoc item="desc"}}
- Adds a library search path to the linker's list of search paths as if it had been specified on the command line with the '-p' option.
+ Ajoute un chemin de recherche pour les bibliothèques à la liste de recherche de chemins de l'éditeur de liens comme si elle avait été spécifiée sur la ligne de commande avec l'option '-p'.
- Paths are relative to the working directory where fbc was invoked and not relative to the directory of the source file.
+ Les chemins sont relatifs au répertoire de travail où fbc a été invoqué, et non par rapport au répertoire du fichier source.
- No error is generated if the path does not exist and compilation and linking will continue.
+ Aucune erreur n'est générée si le chemin n'existe pas et la compilation et les liens se poursuivront.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/libpath.bas"}}%%(freebasic)
@@ -18,11 +18,11 @@ Preprocessor statement to add a search path for libraries
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgInclude #inclib]]##
- ##[[KeyPgInclude #include]]##
- - [[CompilerOptp Compiler Option: -p]]
+ - [[CompilerOptp Option du compilateur: -p]]
{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpline.wakka b/fbdocs/manual/cache/KeyPgPpline.wakka
index 98900aa895..6b3fe2f5c5 100644
--- a/fbdocs/manual/cache/KeyPgPpline.wakka
+++ b/fbdocs/manual/cache/KeyPgPpline.wakka
@@ -1,21 +1,21 @@
{{fbdoc item="title" value="#LINE"}}----
-Preprocessor directive to set the current line number and file name
+Déclaration du préprocesseur pour définir le numéro de ligne courant et nom de fichier
{{fbdoc item="syntax"}}##
**#line** //number// [ "//name//" ]
##
{{fbdoc item="param"}}
##//number// ##
- new line number
+ nouveau numéro de ligne
##"//name//"##
- new file name (optional)
+ nouveau nom de fichier (facultatif)
{{fbdoc item="desc"}}
- Informs the compiler of a change in line number and file name and updates the ##[[KeyPgDdfile __FILE__]]## and ##[[KeyPgDdline __LINE__]]## macro values accordingly.
+ Informe le compilateur d'un changement de numéro de ligne et de nom de fichier et met à jour les valeurs des macros ##[[KeyPgDdfile __FILE__]]## et ##[[KeyPgDdline __LINE__]]## en conséquence.
- Both compile time messages and run-time messages are affected by this directive.
+ Les messages d'heure de compilation ainsi que ceux d'heure d'exécution seront affectés par cette directive.
- This directive allows other programs to generate source code for the FreeBASIC compiler and have it return warning and/or error messages that refer to the original source used by the other program.
+ Cette directive permet aux autres programmes de générer du code source pour le compilateur FreeBasic et qu'il retourne avertissement et/ou messages d'erreur qui font référence à la source d'origine utilisée par l'autre programme.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/line.bas"}}%%(freebasic)
@@ -28,7 +28,7 @@ error 1000
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgDdfile __FILE__]]##
diff --git a/fbdocs/manual/cache/KeyPgPpmacro.wakka b/fbdocs/manual/cache/KeyPgPpmacro.wakka
index 562c6e5b47..ef678085ae 100644
--- a/fbdocs/manual/cache/KeyPgPpmacro.wakka
+++ b/fbdocs/manual/cache/KeyPgPpmacro.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="#MACRO...#ENDMACRO"}}----
-Preprocessor directive to define a multiline macro
+Directive du préprocesseur pour définir une macro multi-ligne
{{fbdoc item="syntax"}}##
**#macro** //macro_name//( [ //parameters// ] )
@@ -11,57 +11,42 @@ Preprocessor directive to define a multiline macro
**#endmacro**
##
{{fbdoc item="desc"}}
- ##**#macro**## defines a function like macro where ##//macro body//## may span multiple lines.
+ ##**#macro**## définit une fonction comme macro où ##//macro body (corps de la macro)//## peut s'étendre sur plusieurs lignes.
- Parameters supplied to the function like macro are substituted where they occur in the ##//macro body//##. The entire ##//macro body//## is substituted where ever ##//macro_name//## appears in the source code. The number of parameters supplied to a macro must match the number of parameters in its ##**#macro**## definition.
-
- Using ##[[KeyPgDots ...]]## (an ellipsis) behind the last parameter of a macro allows to create a variadic macro, see [[KeyPgPpdefine #define]].
-
- The ##[[KeyPgPpifdef #ifdef]]## and ##[[KeyPgPpifndef #ifndef]]## preprocessor conditionals can test if ##//macro_name//## exists or does not exist.
+Les paramètres fournis à la fonction comme macro sont mis à la place où ils fonctionnent dans ##//macro body//##. Le ##//macro body//## est placé en entier chaque fois que ##//macro_name//## apparaît dans le code source. Le nombre de paramètres transmis à la macro doit correspondre au nombre de paramètres dans sa ##**#macro**## définition.
+Utiliser ##[[KeyPgDots ...]]## (une ellipse) derrière le dernier paramètre d'une macro permet de créer une macro variadique, voir [[KeyPgPpdefine #define]].
+Les conditionnels du préprocesseur ##[[KeyPgPpifdef #ifdef]]## et ##[[KeyPgPpifndef #ifndef]]## peuvent tester si ##//macro_name//## existe ou n'existe pas.
+La directive préprocesseur ##[[KeyPgPpundef #undef]]## peut annuler la définition d'une macro de façon à pouvoir la redéfinir avec une autre définition.
+ La substitution de macro peut être vérifiée en utilisant les options -g -r. Le compilateur n'effacera pas le fichier .asm intermédiaire dans lequel le code réellement envoyé au compilateur peut être vu à côté de sa traduction en assembleur.
+{{fbdoc item="ex"}}
- The ##[[KeyPgPpundef #undef]]## preprocessor directive will undefine a macro so that it may be redefined with another definition.
- Macro substitution can be checked by using the -g -r switches. The compiler doesn't erase the intermediate .asm file where the code actually sent to the compiler can be seen close to its translation into assembler.
+print Print1( "Hello", "World" )
-{{fbdoc item="ex"}}
-{{fbdoc item="filename" value="examples/manual/prepro/macro.bas"}}%%(freebasic)
'' macro as an expression value
#macro Print1( a, b )
- a + b
-#endmacro
-
-print Print1( "Hello", "World" )
+a + b
+#endmacro
+Print Print1( "Hello", "World" )
'' Output :
-'' Hello World!
-%%
-
-{{fbdoc item="filename" value="examples/manual/prepro/macro2.bas"}}%%(freebasic)
-'' macro as multiple statements
+ '' Hello World!
+ %%
+ %%(freebasic)
+ '' macro as multiple statements
#macro Print2( a, b )
- print a;
- print " ";
- print b;
- print "!"
-#endmacro
-Print2( "Hello", "World" )
+Print a;
-'' Output :
-'' Hello World!
-%%
+Print " ";
+Print b;
+Print "!"
-{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+#endmacro
+ Print2( "Hello", "World" )
-{{fbdoc item="see"}}
- - ##[[KeyPgPpdefine #define]]##
- - ##[[KeyPgPpif #if]]##
- - ##[[KeyPgPpelse #else]]##
- - ##[[KeyPgPpelseif #elseif]]##
- - ##[[KeyPgPpendif #endif]]##
- - ##[[KeyPgPpifdef #ifdef]]##
- - ##[[KeyPgPpifndef #ifndef]]##
- - ##[[KeyPgPpundef #undef]]##
- - ##[[KeyPgDefined defined]]##
+'' Output :
+ '' Hello World!
+ %%
+ {{fbdoc item="diff"}}
-{{fbdoc item="back" value="CatPgPreProcess|Preprocessor"}}
\ No newline at end of file
+- Nouveau pour Freebasic
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPpprint.wakka b/fbdocs/manual/cache/KeyPgPpprint.wakka
index 5591cc3b9c..8598fe742b 100644
--- a/fbdocs/manual/cache/KeyPgPpprint.wakka
+++ b/fbdocs/manual/cache/KeyPgPpprint.wakka
@@ -1,11 +1,11 @@
{{fbdoc item="title" value=" #PRINT"}}----
-Preprocessor diagnostic directive
+Directive de diagnostic du préprocesseur
{{fbdoc item="syntax"}}##
**#print** //text//
##
{{fbdoc item="desc"}}
- Causes compiler to output ##//text//## to screen during compilation.
+ Oblige le compilateur à afficher ##//text//## à l'écran durant la compilation.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/print.bas"}}%%(freebasic)
@@ -13,7 +13,7 @@ Preprocessor diagnostic directive
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPperror #error]]##
diff --git a/fbdocs/manual/cache/KeyPgPpundef.wakka b/fbdocs/manual/cache/KeyPgPpundef.wakka
index a90bfdb1cb..12256b1b8a 100644
--- a/fbdocs/manual/cache/KeyPgPpundef.wakka
+++ b/fbdocs/manual/cache/KeyPgPpundef.wakka
@@ -1,15 +1,15 @@
{{fbdoc item="title" value="#UNDEF"}}----
-Preprocessor directive to undefine a macro
+Directive préprocesseur pour annuler la définition d'une macro
{{fbdoc item="syntax"}}##
**#undef** //symbol//
##
{{fbdoc item="desc"}}
- Undefines a symbol previously defined with ##[[KeyPgPpdefine #define]]##.
+ Annule la définition d'un symbole défini précédemment avec ##[[KeyPgPpdefine #define]]##.
- Can be used to ensure that a macro or symbol has a limited lifespan and does not conflict with a similar macro definition that may be defined later in the source code.
+ Peut être utilisé pour veiller à ce qu'une macro ou un symbole ait une durée de vie limitée et ne soit pas en conflit avec une définition de macro similaire qui pourrait être définie ultérieurement dans le code source.
- (Note: ###undef## should not be used to undefine variable or function names used in the current function scope. The names are needed internally by the compiler and removing them can cause strange and unexpected results.)
+ (Note: ###undef## ne devrait pas être utilisé pour annuler la définition de noms de variables ou de fonction utilisés dans la portée de la fonction actuelle. Ces noms sont nécessaires au compilateur en interne et les enlever peut entraîner des résultats étranges et inattendus.)
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/undef.bas"}}%%(freebasic)
@@ -20,7 +20,7 @@ Print ADD2(1, 2)
%%
{{fbdoc item="diff"}}
- - New to Freebasic
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgPpdefine #define]]##
diff --git a/fbdocs/manual/cache/KeyPgPragma.wakka b/fbdocs/manual/cache/KeyPgPragma.wakka
index 67dedb4c1f..dfea6f3634 100644
--- a/fbdocs/manual/cache/KeyPgPragma.wakka
+++ b/fbdocs/manual/cache/KeyPgPragma.wakka
@@ -1,20 +1,20 @@
{{fbdoc item="title" value="#PRAGMA"}}----
-Preprocessor directive
+Directive du préprocesseur
{{fbdoc item="syntax"}}##
**#pragma** //option// [ =//value// ]
- ##//Or//##
+ ##//ou//##
**#pragma** **push** ( //option// )
- ##//Or//##
+ ##//ou//##
**#pragma** **pop** ( //option// )
##
{{fbdoc item="param"}}
- Possible values for ##//option//## and related ##//value//##s:
+ Les valeurs possibles pour ##//option//## et les ##//value//##s en relation sont:
- {{table columns="3" cellpadding="1" cells="Option; Value; Description; msbitfields; 0; Use bitfields compatible with gcc (default);###; (nonzero); Use bitfields compatible with those used in Microsoft C compilers; once; N/A; cause the source file in which the pragma appears to behave as though it was included with #include once ..."}}
+ {{table columns="" cellpadding="2" cells="Option; Valeur; Description; msbitfields; 0;Utilisation de "bitfields" compatibles avec gcc (par défaut); (non-zéro); Utilisation de "bitfields" compatibles avec ceux utilisés dans les compilateurs C Microsoft; once; N/A; Le fichier source dans lequel apparaît "pragma" se comporte comme s'il était inclus une seule fois avec "#include" ...;
{{fbdoc item="desc"}}
- Allows the setting of compiler options inside the source code.
+ Permet le réglage des options du compilateur dans le code source.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/prepro/pragma.bas"}}%%(freebasic)
@@ -30,7 +30,7 @@ Preprocessor directive
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour Freebasic
{{fbdoc item="see"}}
- ##[[KeyPgInclude #include]]##
diff --git a/fbdocs/manual/cache/KeyPgPreserve.wakka b/fbdocs/manual/cache/KeyPgPreserve.wakka
index 30e9eb0882..38026f569a 100644
--- a/fbdocs/manual/cache/KeyPgPreserve.wakka
+++ b/fbdocs/manual/cache/KeyPgPreserve.wakka
@@ -1,16 +1,16 @@
{{fbdoc item="title" value="PRESERVE"}}----
-Used with ##[[KeyPgRedim Redim]]## to preserve contents will resizing an array
+Utilisé avec ##[[KeyPgRedim ReDim]]## pour préserver le contenu d'un tableau lors de son redimensionnement
{{fbdoc item="syntax"}}##
[[KeyPgRedim redim]] **Preserve** //array//(...) [[KeyPgAs as]] [[DataType datatype]]
##
{{fbdoc item="desc"}}
- Used with ##[[KeyPgRedim Redim]]## so that when an array is resized, data is not reset but is preserved. This means when the array is enlarged that only new data is reset, while the old data remains the same.
+ Utilisé avec ##[[KeyPgRedim ReDim]]## de sorte que quand un tableau est redimensionné, les données sont pas remises à zéro, mais conservées. Cela signifie que lorsque le tableau est agrandi, seules les données nouvelles sont remises à zéro, tandis que les anciennes données restent les mêmes.
- **NOTE**: ##**Redim** [[KeyPgPreserve Preserve]]## may not work as expected in all cases:
- ##[[KeyPgPreserve Preserve]]##'s current behavior is to keep the original data contiguous in memory, and only expand or truncate the size of the memory.
- Its behavior is only well-defined when the upper bound is changed. If the lower bound is changed, the current result is that the data is in effect shifted to start at the new lower bound.
- If there are multiple dimensions, only the upper bound of the first dimension may be changed safely. If lower-order dimensions are resized at all, the effects can be hard to predict.
+ **NOTE**: ##**ReDim** [[KeyPgPreserve Preserve]]## peut ne pas fonctionner comme espéré dans certains cas:
+ Le comportement normal de ##[[KeyPgPreserve Preserve]]## est de conserver les données originales contiguës dans la mémoire et seulement augmenter ou diminuer la taille de la mémoire.
+ Son comportement n'est bien défini que lorsque la borne supérieure est changée. Si la borne inférieure est modifiée, le résultat est que les données sont en effet déplacées pour commencer à la nouvelle limite inférieure.
+ S'il y a des dimensions multiples, seule la limite supérieure de la première dimension peut être modifiée en toute sécurité. Si les dimensions d'ordre inférieur sont toutes redimensionnées, les effets sont imprévisibles.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/array/preserve.bas"}}%%(freebasic)
@@ -29,7 +29,7 @@ next
%%
{{fbdoc item="diff"}}
- - ##**Preserve**## wasn't supported until PDS 7.1
+ - ##**Preserve**## n'était pas supporté jusqu'à PDS 7.1
{{fbdoc item="see"}}
- ##[[KeyPgDim Dim]]##
diff --git a/fbdocs/manual/cache/KeyPgPreset.wakka b/fbdocs/manual/cache/KeyPgPreset.wakka
index 5748da6323..e4338a0257 100644
--- a/fbdocs/manual/cache/KeyPgPreset.wakka
+++ b/fbdocs/manual/cache/KeyPgPreset.wakka
@@ -1,44 +1,44 @@
{{fbdoc item="title" value="PRESET"}}----
-Plots a single pixel
+Place un seul pixel
{{fbdoc item="syntax"}}##
**PReset** [//target// ,] [STEP] (//x//, //y//) [,//color//]
##
{{fbdoc item="param"}}
##//target//##
- specifies buffer to draw on.
+ spécifie le tampon sur lequel on travaille.
##STEP##
- indicates that coordinates are relative
+ indique que les coordonnées sont relatives
##(//x, y//)##
- coordinates of the pixel.
+ coordonnées du pixel.
##//color//##
- the color attribute.
+ L'attribut de couleur.
{{fbdoc item="desc"}}
- ##//target//## specifies buffer to draw on. ##//target//## may be an image created with ##[[KeyPgImagecreate ImageCreate]]## or ##[[KeyPgGetgraphics Get (Graphics)]]##. If omitted, //target// defaults to the screen's current work page.
+ ##//target//## spécifie le tampon sur lequel on travaille. ##//target//## peut être une image créée avec ##[[KeyPgImagecreate ImageCreate]]## ou ##[[KeyPgGetgraphics Get (Graphics)]]##. Si omis, //target// est par défaut la page de travail courante de l'écran.
- ##(//x, y//)## are the coordinates of the pixel. STEP if present, indicates that ##(//x, y//)## coordinates are relative to the graphics cursor position. If omitted, ##(//x, y//)## are relative to the upper left-hand corner of ##//target//##. The x and y coordinates are affected by the last call to the ##[[KeyPgViewgraphics View (Graphics)]]## and ##[[KeyPgWindow Window]]## statements, and respect the current clipping region as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement.
+ ##(//x, y//)## sont les coordonnées du pixel. Si STEP est présent, il indique que les coordonnées ##(//x, y//)## sont relatives à la position du curseur graphique. Si omis, ##(//x, y//)## sont relatifs au coin en haut à gauche de ##//target//##. Les coordonnées x et y sont affectées par le dernier appel à ##[[KeyPgViewgraphics View (Graphics)]]## et ##[[KeyPgWindow Window]]## et respectent la région de découpage (clipping region) validée par ##[[KeyPgViewgraphics View (Graphics)]]##.
- ##//color//## specifies the color attribute. If omitted, ##//color//## defaults to the current background color. See ##[[KeyPgColor Color]]##. ##//color//## is graphics mode specific, see ##[[KeyPgColor Color]]## and ##[[KeyPgScreengraphics Screen (Graphics)]]## for details.
+ ##//color//## spécifie l'attribut de couleur. Si omis, ##//color//## est par défaut la couleur courante d'arrière-plan. Voir ##[[KeyPgColor Color]]##. ##//color//## dépend du mode graphique courant, voir ##[[KeyPgColor Color]]## et ##[[KeyPgScreengraphics Screen (Graphique)]]## pour plus de détails.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/preset.bas"}}%%(freebasic)
SCREEN 13
-'Set background color to 15
+'Couleur arriere-plan a 15
COLOR , 15
-'Draw a pixel with the background color at 10, 10
+'Dessine un pixel avec la couleur d'arriere-plan a 10, 10
PRESET (10,10)
-'Draw a pixel with the background color at Last x cord +10, Last y cord +10
+'Dessine un pixel avec la couleur d'arriere-plan a dernier x cord +10, dernier y cord +10
PRESET Step (10,10)
SLEEP
%%
{{fbdoc item="diff"}}
- - ##//target//## is new to ""FreeBASIC""
+ - ##//target//## Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPset PSet]]##
diff --git a/fbdocs/manual/cache/KeyPgPrint.wakka b/fbdocs/manual/cache/KeyPgPrint.wakka
index 039157ba37..0e942c3c43 100644
--- a/fbdocs/manual/cache/KeyPgPrint.wakka
+++ b/fbdocs/manual/cache/KeyPgPrint.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="PRINT"}}----
-Writes text to the screen
+Ecrire du texte à l'écran
{{fbdoc item="syntax"}}##
**Print** [ //expressionlist// ] [ , | ; ]
##
{{fbdoc item="param"}}
##//expressionlist//##
- list of items to print
+ liste des items à afficher
{{fbdoc item="desc"}}
- ##**Print**## outputs a list of values to the screen. Numeric values are converted to their string representation, with left padding for the sign. Objects of user-defined types must overload ##Operator Cast () As String##.
+ ##**Print**## envoie une liste de valeurs à l'écran. Les valeurs numériques sont converties vers leur représentation chaîne, avec un remplissage à gauche pour le signe. Des objets de types définis par l'utilisateur doivent surcharger **Operator Cast () As String**.
- Consecutive values in the expression list are separated either by a comma (##,##) or semicolon (##;##). A comma indicates printing should take place at the next 14 column boundary, while a semicolon indicates values are printed with no space between them. This has a similar effect to concatenating expressions using ##[[KeyPgOpConcat +]]## or ##[[KeyPgOpConcatConvert &]]##.
+ Les valeurs consécutives dans la liste d'expressions sont séparées par une virgule (##,##) ou point-virgule (##;##). Une virgule indique que l'affichage suivant devrait avoir lieu 14 colonnes plus loin, alors que point-virgule indique que toutes les valeurs sont affichées à la suite sans espace entre elles. Cela a le même effet que la concaténation d'expressions en utilisant ##[[KeyPgOpConcat +]]## ou ##[[KeyPgOpConcatConvert &]]##.
- ##**Print**## also supports the special expressions, ##[[KeyPgSpc Spc]]()## and ##[[KeyPgTab Tab]]()##. These can be used to space out expressions, or to align the printing to a specific column.
+ ##**Print**## supporte aussi les expressions spéciales, ##[[KeyPgSpc Spc]]()## et ##[[KeyPgTab Tab]]()##. Celles-ci peuvent être utilisées pour espacer les expressions ou pour aligner l'affichage sur une colonne spécifique.
- A new-line character is printed after the values in the expression list unless the expression list is followed by a comma or semicolon. A ##**Print**## without any expressions or separators following it will just print a new-line.
+ Un caractère "nouvelle ligne" est affiché après les valeurs de la liste des expressions à moins que la liste des expressions ne soit terminée par une virgule ou un point-virgule. Un ##**Print**## sans aucune expression ou séparateur, affichera seulement un caractère "nouvelle ligne".
- NOTE: ##**Print**## resets the ##[[KeyPgErr Err]]## value after each expression is printed.
+ NOTE: ##**Print**## ré-initialise la valeur ##[[KeyPgErr Err]]## dès chaque expression est imprimée.
- For more control over character style and text position in graphics modes, consider using ##[[KeyPgDrawString Draw String]]##.
+ Pour plus de contrôle sur le style des caractères et la position du texte dans les modes graphiques, pensez à utiliser ##[[KeyPgDrawString Draw String]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/console/print.bas"}}%%(freebasic)
@@ -46,12 +46,12 @@ Print s; " is great!"
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, an extra space is printed after numbers.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, un espace supplémentaire est affiché après les nombres.
{{fbdoc item="diff"}}
- - None, when using QBASIC's variable types in //[[CompilerOptlang -lang qb]]//.
- - Unsigned numbers are printed without a space before them.
- - QB did not support casting for UDTs, so didn't allow them to be ##**Print**##ed.
+ - Aucune, si vous utilisez des types de variables QBASIC dans //[[CompilerOptlang -lang qb]]//.
+ - Les nombres non-signés sont affichés sans espace devant eux.
+ - QB ne supporte pas le "casting" pour les types définis par l'utilisateur (UDT = User-Defined Type), alors on ne peut utiliser ##**Print**## avec eux.
{{fbdoc item="see"}}
- ##[[KeyPgSpc Spc]]##
diff --git a/fbdocs/manual/cache/KeyPgPrintPp.wakka b/fbdocs/manual/cache/KeyPgPrintPp.wakka
index c63d0090a8..88f8941226 100644
--- a/fbdocs/manual/cache/KeyPgPrintPp.wakka
+++ b/fbdocs/manual/cache/KeyPgPrintPp.wakka
@@ -1,23 +1,23 @@
{{fbdoc item="title" value="PRINT #"}}----
-Writes a list of values to a file or device
+Ecrit une liste de valeurs dans un fichier ou un périphérique
{{fbdoc item="syntax"}}##
**Print #** //filenum//**,** [ //expressionlist// ] [ **,** | **;** ]
##
{{fbdoc item="param"}}
##//filenum//##
- The file number of a file or device opened for ##[[KeyPgOutput Output]]## or ##[[KeyPgAppend Append]]##.
+ Le numéro de fichier d'un fichier ou un périphérique ouvert pour ##[[KeyPgOutput Output]]## ou ##[[KeyPgAppend Append]]##.
##//expressionlist//##
- List of values to write.
+ Liste des valeurs à écrire.
{{fbdoc item="desc"}}
- ##**Print #**## outputs a list of values to a text file or device. Numeric values are converted to their string representation, with left padding for the sign. Objects of user-defined types must overload ##Operator Cast () As String##.
+ ##**Print #**## sort une liste de valeurs vers un fichier texte ou un périphérique. Les valeurs numériques sont converties vers leur représentation sous forme de chaîne, avec remplissage à gauche pour le signe. Les objets de types définis par l'utilisateur doivent surcharger ##Operator Cast () As String##.
- Consecutive values in the expression list are separated either by a comma (##,##) or semicolon (##;##). A comma indicates printing should take place at the next 14 column boundary, while a semicolon indicates values are printed with no space between them.
+ Les valeurs consécutives dans la liste d'expressions sont séparées par une virgule (##,##) ou un point-virgule (##;##). Une virgule indique que l'écriture devrait avoir lieu au début d'une colonne multiplt de 14 octets, alors qu'un point-virgule indique que les valeurs sont écrites sans espace entre elles.
- A new-line character is printed after the values in the expression list unless the expression list is followed by a comma or semicolon.
+ Un caractère de nouvelle ligne est imprimé après les valeurs de la liste des expressions à moins que la liste des expressions ne soit suivie par une virgule ou point-virgule.
- Note that the comma (##,##) immediately following the file number is still necessary, even the expression list is empty. In this case a new-line is printed, just as with a normal expression list that doesn't have a comma or semicolon at the end.
+ Notez que la virgule (##,##) immédiatement après le numéro de fichier est obligatoire, même la liste d'expressions est vide. Dans ce cas une nouvelle ligne est écrite, tout comme une liste d'expressions normale qui n'a pas une virgule ou un point-virgule à la fin.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/fileio/print.bas"}}%%(freebasic)
@@ -30,12 +30,12 @@ open "bleh.dat" for output as #1
%%
{{fbdoc item="lang"}}
- - In the //[[CompilerOptlang -lang qb]]// dialect, an extra space is printed after numbers.
+ - Dans le dialecte //[[CompilerOptlang -lang qb]]//, un espace supplémentaire est écrit après les nombres.
{{fbdoc item="diff"}}
- - None, when using QBASIC's variable types in //[[CompilerOptlang -lang qb]]//.
- - Unsigned numbers are printed without a space before them.
- - QB did not support casting for UDTs, so didn't allow them to be ##**Print**##ed.
+ - Aucune, en utilisant les types de variables QBASIC dans //[[CompilerOptlang -lang qb]]//.
+ - Les nombres non signés sont écrits sans espace devant eux.
+ - QB ne supporte pas le "casting" des types définis par l'utilisateur, donc ne peut les ##**Print**##er.
{{fbdoc item="see"}}
- ##[[KeyPgPrintusingPp Print # Using]]##
diff --git a/fbdocs/manual/cache/KeyPgPrintusing.wakka b/fbdocs/manual/cache/KeyPgPrintusing.wakka
index 9b7ce14d2a..ea76b8fdaa 100644
--- a/fbdocs/manual/cache/KeyPgPrintusing.wakka
+++ b/fbdocs/manual/cache/KeyPgPrintusing.wakka
@@ -1,35 +1,35 @@
{{fbdoc item="title" value="PRINT USING"}}----
-Outputs formatted text to the screen
+Ecrire du texte formaté à l'écran
{{fbdoc item="syntax"}}##
**Print Using** //formatstring// **;** [ //expressionlist// ]
##
{{fbdoc item="param"}}
##//formatstring//##
- Format string to use.
+ La chaîne de formatage à utiliser.
##//expressionlist//##
- List of items to print, separated by semi-colons.
+ Liste des items à afficher, séparés par des point-virgule.
{{fbdoc item="desc"}}
- Print to screen various expressions using a format determined by the ##//formatstring//## parameter. Internally, ##**Print Using**## uses a buffer size of 2048 bytes: while it is highly unlikely that this buffer would be filled, it should be noted that output would be truncated should this limit be reached.
+ Affiche à l'écran des expressions variées en utilisant un format déterminé par le paramètre ##//formatstring//##. En interne, ##**Print Using**## utilise une taille de tampon de 2048 octets: alors qu'il est très peu probable que ce tampon soit rempli, il convient de noter que la sortie écran sera tronquée si cette limite est atteinte.
- If no expression list is given, the format string will be printed up to the first special marker. Note that the semi-colon after the format string is still necessary, even if no expression list is given.
+ Si aucune liste d'expressions n'est donnée, la chaîne de format sera imprimée jusqu'au premier marqueur spécial. Notez que le point-virgule après la chaîne de format est toujours nécessaire, même si aucune liste d'expressions n'est donnée.
- The format string dictates how the expressions are to be formatted when output to the screen, indicated by the use of special marker characters. There are markers for formatting both string and numeric output:
+ La chaîne de format détermine la façon dont les expressions sont formatées lors de la sortie à l'écran, ceci étant indiqué par l'utilisation de caractères marqueurs spéciaux. Il y a des marqueurs pour le formatage de chaîne et de sortie numérique:
- {{fbdoc item="section" value="String formatting"}}
+ {{fbdoc item="section" value="Formatage de chaîne
- {{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occuppied between the pair \ \;&;prints the entire string"}}
+ {{table columns="" cellpadding="2" cells="Marqueur;Formatage;!;affiche le 1er caractère d'une chaîne;\ \;imprime autant de caractères d'une chaîne qu'il y en a entre les deux \ \;&affiche la chaîne entière;
- {{fbdoc item="section" value="Numeric formatting"}}
+ {{fbdoc item="section" value="Formatage numérique
- {{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
+ {{table columns="" cellpadding="2" cells="Marqueur;Formatage;#;espace réservé soit pour un chiffre d'un entier ou un chiffre d'un décimal si précédé d'un point;,; placé après un chiffre d'un entier indique que les groupes de 3 chiffres doivent être séparés par des virgules en notation à virgule fixe;.;placé à proximité d'un # indique la place pour le point décimal;^^^^;utilise la notation exponentielle (E+/-###) s'il est placé à doite d'un format numérique;+;placé avant/après la chaîne formatée, contrôle si le signe d'un nombre est préfixé/suffixé, et implique qu'un explicite signe '+' soit afiché pour les nombres positifs;-;placé après la chaîne formatée, implique que le signe du nombre est suffixé plutôt que préfixé, fait suivre un espace/signe négatif pour les nombres positifs/négatifs;$$;placé au début de chiffres entiers, provoque l'écriture d'un signe de dollar placé avant le nombre (après le signe si l'on est préfixé);**;placé au début de chiffres entiers, provoque le remplacement sur la gauche des espaces par des astérisques;**$;placé au début de chiffres entiers, remplit sur la gauche avec des astérisques et préfixe un signe dollar après les astérisques;&affiche un nombre intelligemment, en utilisant le nombre exact de chiffres requis (nouveauté version 0.21.0b);
- All of the special marker characters can be escaped by preceding them with the underscore character ##"_"##, allowing them to be printed directly. For example, ##"_!"## is printed as ##"!"##, and ##"_""""_"## is printed as ##"_"##.
+ Tous les caractères marqueurs spéciaux peuvent être précédés du caractère de soulignement ##"_"##, ce qui permettra de les afficher directement. Par exemple, ##"_!"## affichera ##"!"## et ##"__"## affichera##"_"##.
- If a numerical value cannot fit in the number of digits indicated by the format string, the formatting is adapted to fit the number, possibly switching to sientific notation, and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.
+ Si une valeur numérique ne correspond pas à la forme indiquée par la chaîne de format, le formatage est adapté au nombre, éventuellement en passant à la notation scientifique, et le nombre est précédé par le caractère pour cent ## "%". Par exemple, le nombre ##1234## avec un ##//formatstring//## de ##"##.##"## sera affiché ##"%1234.00"##.
- All other characters within the format string are printed as they appear.
+ Tous les autres caractères dans la chaîne de format sont imprimés tels qu'ils apparaissent.
{{fbdoc item="ex"}}
@@ -38,14 +38,14 @@ Print Using "The value is #.## seconds"; 1.019
Print Using "The ASCII code for the pound sign (_#) is ###"; Asc("#")
Print Using "The last day in the year is & \ \"; 31; "December"
%%
- will produce the output:
+ produira la sortie:
%%The value is 1.02 seconds
The ASCII code for the pound sign (#) is 35
The last day in the year is 31 Dec%%
{{fbdoc item="diff"}}
- - QB didn't allow ##"&"## to be used for printing numbers.
+ - QB ne permet pas l'utilisation de ##"&"## pour afficher des nombres.
{{fbdoc item="see"}}
- ##[[KeyPgPrint Print]]##
diff --git a/fbdocs/manual/cache/KeyPgPrintusingPp.wakka b/fbdocs/manual/cache/KeyPgPrintusingPp.wakka
index 25299c9d2e..a31b844b27 100644
--- a/fbdocs/manual/cache/KeyPgPrintusingPp.wakka
+++ b/fbdocs/manual/cache/KeyPgPrintusingPp.wakka
@@ -1,37 +1,37 @@
{{fbdoc item="title" value="PRINT # USING"}}----
-Outputs formatted text to a file or device
+Sort un texte formaté vers un fichier ou un périphérique
{{fbdoc item="syntax"}}##
**Print #** //filenum// **,** **Using** //formatstring// **;** [ //expressionlist// ]
##
{{fbdoc item="param"}}
##//filenum//##
- The file number of a file or device opened for ##[[KeyPgOutput Output]]## or ##[[KeyPgAppend Append]]##.
+ Le numéro de fichier d'un fichier ou d'un périphérique ouvert avec ##[[KeyPgOutput Output]]## ou ##[[KeyPgAppend Append]]##.
##//formatstring//##
- Format string to use.
+ La chaîne formatée à utiliser.
##//expressionlist//##
- List of items to print, separated by semi-colons.
+ Liste des éléments à imprimer, séparés par des points-virgules.
{{fbdoc item="desc"}}
- Output various expressions to a text file or device using a format determined by the ##//formatstring//## parameter. Internally, ##**Print Using**## uses a buffer size of 2048 bytes: while it is highly unlikely that this buffer would be filled, it should be noted that output would be truncated should this limit be reached.
+ Sort des expressions diverses dans un fichier texte ou un périphérique en utilisant un format déterminé par le paramètre ##//formatstring//##. En interne, ##**Print Using**## utilise un buffer de 2048 octets: alors qu'il est très peu probable que ce tampon soit rempli, il convient de noter que la sortie serait tronquée si cette limite était atteinte.
- If no expression list is given, the format string will be printed up to the first special marker. Note that the semi-colon after the format string is still necessary, even if no expression list is given.
+ Si aucune ##//expressionlist//## n'est donnée, la ##//formatstring//## sera écrite jusqu'à la première borne spéciale. Notez que le point-virgule après la chaîne formatée est toujours nécessaire, même si aucune liste d'expressions est donnée.
- The format string dictates how the expressions are to be formatted when output to the screen, indicated by the use of special marker characters. There are markers for formatting both string and numeric output:
+ La chaîne de format détermine la façon dont les expressions sont à mettre en forme pour une sortie à l'écran, ceci est indiqué par l'utilisation de caractères marqueurs spéciaux. Il y a deux sortes de marqueurs, pour le formatage de chaîne ou de sortie numérique:
- {{fbdoc item="section" value="String formatting"}}
+ {{fbdoc item="section" value="Le formatage de chaîne
- {{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occuppied between the pair \ \;&;prints the entire string"}}
+ {{table columns="" cellpadding="2" cells="Marqueur;Formatage;!;écrit le premier caractère d'une chaîne;\ \;écrit autant de caractères d'une chaîne qu'il y en a entre la paire de \ \;&écrit la chaîne entière;
- {{fbdoc item="section" value="Numeric formatting"}}
+ {{fbdoc item="section" value="Le formatage numérique
- {{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for a digit;,; placed after integer digit indicates groups of 3 digits should be separated by commas;.; placed near # indicates place for the decimal point;+;prints the sign of the number when placed to the left of numeric formatting;^^^^;prints exponential notation when placed to the right of numeric formatting;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
+ {{table columns="" cellpadding="2" cells="Marqueur;Formatage;#;espace réservé pour un chiffre;,; placé après un chiffre d'un nombre entier indique que les groupes de 3 chiffres doivent être séparés par des virgules;.; placé à proximité de # indique la place pour le point décimal;+;écrit le signe du nombre lorsqu'il est placé à la gauche d'une mise en forme numérique;^^^^;placé à droite de mise en forme numérique implique la notation scientifique;&imprime un nombre intelligemment, en utilisant le nombre exact de chiffres requis (nouveau pour la version 0.21.0b);
- All of the special marker characters can be escaped, or preceded, with the underscore character ##"_"##, allowing them to be printed directly. For example, ##"_!"## is printed as ##"!"##.
+ Tous les caractères spéciaux de marqueurs peuvent être précédés d'un caractère d'échappement, ou précédés, avec le caractère de soulignement ##"_"##, leur permettant d'être affichés directement. Par exemple, ##"_!"## est affiché ##"!"##.
- If a numerical value doesn't fit in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.
+ Si une valeur numérique ne correspond pas à la forme indiquée par la chaîne de format, la mise en forme est ignorée et le nombre est imprimé précédé par le caractère pour cent ##"%"##. Par exemple, le nombre ##1234## avec une ##//formatstring//## de ##"##.##"## sera affiché ##"%1234.00"##.
- All other characters within the format string are printed as they appear.
+ Tous les autres caractères de la chaîne de format sont écrits tels qu'ils apparaissent.
{{fbdoc item="ex"}}
@@ -51,7 +51,7 @@ print #filenum, using "'###', '+###.###'"; 123.456, -123.456
close(filenum)
%%
- will produce the file:
+ produira le fichier:
%%
This file is called 'file.txt'
Some numerical values are:
@@ -59,7 +59,7 @@ Some numerical values are:
%%
{{fbdoc item="diff"}}
- - QB didn't allow ##"&"## to be used for printing numbers.
+ - QB ne permettait pas d'utiliser ##"&"## pour l'impression de nombres.
{{fbdoc item="see"}}
- ##[[KeyPgPrintPp Print #]]##
diff --git a/fbdocs/manual/cache/KeyPgPrivate.wakka b/fbdocs/manual/cache/KeyPgPrivate.wakka
index dbdd285e10..301fc8590a 100644
--- a/fbdocs/manual/cache/KeyPgPrivate.wakka
+++ b/fbdocs/manual/cache/KeyPgPrivate.wakka
@@ -1,19 +1,19 @@
{{fbdoc item="title" value="PRIVATE"}}----
-Specifies a procedure having internal linkage
+Indique une procédure ayant des liens internes
{{fbdoc item="syntax"}}##
- **Private** [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ **Private** [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgSub Sub]]
- **Private** [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ **Private** [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgFunction Function]]
##
{{fbdoc item="desc"}}
- In procedure definitions, ##**Private**## specifies that a procedure has internal linkage, meaning it's name is not visible to external modules.
+ Dans les définitions de procédure, ##**Private**## précise que la procédure a une liaison interne, ce qui signifie que son nom n'est pas visible à des modules externes.
- The ##[[KeyPgOptionprivate Option Private]]## statement allows procedures to be defined with internal linkage by default.
+ L'instruction ##[[KeyPgOptionprivate Option Private]]## permet aux procédures d'être définies avec une liaison interne par défaut.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/sub-private.bas"}}%%(freebasic)
@@ -27,7 +27,7 @@ End Sub
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPublic Public]]##
diff --git a/fbdocs/manual/cache/KeyPgProperty.wakka b/fbdocs/manual/cache/KeyPgProperty.wakka
index 1193c0d879..3c3474f313 100644
--- a/fbdocs/manual/cache/KeyPgProperty.wakka
+++ b/fbdocs/manual/cache/KeyPgProperty.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="PROPERTY"}}----
-Declares or defines a property in a type or class
+Déclare ou définit une propriété dans un type ou une classe
{{fbdoc item="syntax"}}##
{ [[KeyPgType Type]] | [[KeyPgClass Class]] } //typename//
@@ -27,22 +27,22 @@ Declares or defines a property in a type or class
##
{{fbdoc item="param"}}
##//typename//##
- name of the ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]##
+ nom de ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##
##//fieldname//##
- name of the property
+ nom de la propriété
##//new_value//##
- the value passed to property to be assigned
+ la valeur passée à la propriété pour être affectée
##//index//##
- the property index value
+ la valeur de l'indice de la propriété
{{fbdoc item="desc"}}
- ##**Property**## fields are used to get and set values of a ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]## in the same way as other data fields except instead of a simple assignment to a field or a value retrieved from field, a procedure is executed.
+ Les champs de la ##**Property**## sont utilisés pour obtenir et définir les valeurs de ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]## de la même manière que les champs de données, sauf qu'au lieu d'une simple affectation à un champ ou une valeur récupérée à partir du champ, une procédure est exécutée.
- ##//typename//## is the name of the type for which the ##**Property**## method is declared and defined. Name resolution for ##//typename//## follows the same rules as procedures when used in a ##[[KeyPgNamespace Namespace]]##.
+ ##//typename//## est le nom du type sous lequel la méthode ##**Property**## est déclarée et définie. La résolution de noms pour ##//typename//## suit les mêmes règles que les procédures en cas d'utilisation dans un ##[[KeyPgNamespace Namespace]]##.
- A **Property** may optionally have one index parameter. When indexed, properties are accessed as Property(Index) = Value.
+ Une **Property** peut éventuellement avoir un index de paramètres. Quand elles sont indexées, les **Property**s sont accessibles de cette façon: Property(Indice) = Value.
- A hidden ##[[KeyPgThis this]]## parameter having the same type as ##//typename//## is passed to the property procedure. ##[[KeyPgThis this]]## is used to access the fields of the ##[[KeyPgType Type]]## or ##[[KeyPgClass Class]]##.
+ Un paramètre caché ##[[KeyPgThis This]]## ayant le même type que ##//typename//## est passé à la procédure ##**Property**##. ##[[KeyPgThis This]]## est utilisé pour accéder aux champs de ##[[KeyPgType Type]]## ou ##[[KeyPgClass Class]]##.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/udt/property.bas"}}%%(freebasic)
@@ -81,74 +81,73 @@ a.length = 10
print "a = "; a
print "a.length = "; a.length
%%
-Output:
+Affichage:
%%
a = (3, 4)
a.length = 5
a = (6, 8)
a.length = 10
-%%
+%%Property Indexé:
Property Indexing:
-{{fbdoc item="filename" value="examples/manual/udt/property2.bas"}}%%(freebasic)
- '' True/False
-Namespace BOOL
- Const FALSE = 0
- Const TRUE = NOT FALSE
-End Namespace
-
+'' True/False
+ Namespace BOOL
+Const FALSE = 0
+ Const TRUE = Not FALSE
+ End Namespace
Type BitNum
- Num as uInteger
+
+Num As UInteger
+ '' Get/Set Properties each with an Index.
- '' Get/Set Properties each with an Index.
- Declare Property NumBit( ByVal Index as Integer ) as Integer
- Declare Property NumBit( ByVal Index as Integer, ByVal Value as Byte )
-End Type
-
- '' Get a bit by it's index.
-Property BitNum.NumBit( ByVal Index as Integer ) as Integer
- Return Bit( This.Num, Index )
-End Property
-
- '' Set a bit by it's index.
-Property BitNum.NumBit( ByVal Index as Integer, ByVal Value as Byte )
-
- '' Make sure index is in Integer range.
- If Index >= ( Sizeof(This.Num) * 8 ) then
- Print "Out of uInteger Range!"
- exit property
- else
- If Index < 0 then exit property
- End if
+ Declare Property NumBit( ByVal Index As Integer ) As Integer
+ Declare Property NumBit( ByVal Index As Integer, ByVal Value As Byte )
+ End Type
+'' Get a bit by it's index.
+
+ Property BitNum.NumBit( ByVal Index As Integer ) As Integer
+Return Bit( This.Num, Index )
+ End Property
+'' Set a bit by it's index.
+
+ Property BitNum.NumBit( ByVal Index As Integer, ByVal Value As Byte )
+'' Make sure index is in Integer range.
+
+ If Index >= ( SizeOf(This.Num) * 8 ) Then
+ Print "Out of uInteger Range!"
+ Exit Property
+ Else
+ If Index < 0 Then Exit Property
+ End If
+ If Value = BOOL.FALSE Then
- If Value = BOOL.FALSE then
- This.Num = BitReSet( This.Num, Index )
- End if
+ This.Num = BitReset( This.Num, Index )
+ End If
+ If Value = BOOL.TRUE Then
- If Value = BOOL.TRUE then
- This.Num = BitSet( This.Num, Index )
- End if
+ This.Num = BitSet( This.Num, Index )
+ End If
+ End Property
-End Property
+Dim As BitNum Foo
-Dim as BitNum Foo
+Print "Testing property indexing with data types:"
-Print "Testing property indexing with data types:"
Print "FOO Number's Value: " & Foo.Num
+'' Set the bit in the number as true.
- '' Set the bit in the number as true.
-Foo.NumBit(31) = BOOL.TRUE
+ Foo.NumBit(31) = BOOL.TRUE
Print "Set the 31st bit of FOO"
+'' Print to see if our bit has been changed.
- '' Print to see if our bit has been changed.
-Print "FOO Number's Value: " & Foo.Num
+ Print "FOO Number's Value: " & Foo.Num
Print "FOO 31st Bit Set? " & Foo.NumBit(31)
-sleep
+Sleep
Print ""
%%
-Output:
+Affichage:
%%
Testing property indexing with data types:
FOO Number's Value: 0
@@ -157,7 +156,8 @@ FOO Number's Value: 2147483648
FOO 31st Bit Set? -1
%%
{{fbdoc item="see"}}
- - ##[[KeyPgType Class]]##
+- ##[[KeyPgType Class]]##
+ - ##[[KeyPgType Type]]##
- ##[[KeyPgType Type]]##
{{fbdoc item="back" value="CatPgUserDefTypes|User Defined Types"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPset.wakka b/fbdocs/manual/cache/KeyPgPset.wakka
index 460f01be2e..7b7c65ec68 100644
--- a/fbdocs/manual/cache/KeyPgPset.wakka
+++ b/fbdocs/manual/cache/KeyPgPset.wakka
@@ -1,68 +1,70 @@
{{fbdoc item="title" value="PSET"}}----
-Plots a single pixel
+Place un seul pixel
{{fbdoc item="syntax"}}##
**PSet** [//target// ,] [STEP] (//x//, //y//) [,//color//]
##
{{fbdoc item="param"}}
##//target//##
- specifies buffer to draw on.
+ spécifie le tampon sur lequel on dessine.
##STEP##
- indicates that coordinates are relative
+ indique que ces coordonnées sont relatives
##(//x, y//)##
- coordinates of the pixel.
+ coordonnées du pixel.
##//color//##
- the color attribute.
+ l'attribut de couleur.
{{fbdoc item="desc"}}
- ##//target//## specifies buffer to draw on. ##//target//## may be an image created with ##[[KeyPgImagecreate ImageCreate]]## or ##[[KeyPgGetgraphics Get (Graphics)]]##. If omitted, ##//target//## defaults to the screen's current work page.
+ ##//target//## spécifie le tampon sur lequel on dessine. ##//target//## peut être une image créée avec ##[[KeyPgImagecreate ImageCreate]]## ou ##[[KeyPgGetgraphics Get (Graphique)]]##. Si omis, ##//target//## prend par défaut la page courante de travail de l'écran.
- ##(//x, y//)## are the coordinates of the pixel. ##STEP## if present, indicates that ##(//x, y//)## coordinates are relative to the graphics cursor position. If omitted, ##(//x, y//)## are relative to the upper left-hand corner of ##//target//##. The x and y coordinates are affected by the last call to the ##[[KeyPgViewgraphics View (Graphics)]]## and ##[[KeyPgWindow Window]]## statements, and respect the current clipping region as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement.
+ ##(//x, y//)## sont les coordonnées du pixel. ##STEP## si présent, indique que les coordonnées##(//x, y//)## sont relatives à la position du curseur graphique. Si omis, ##(//x, y//)## sont relatives au coin en haut à gauche de ##//target//##. Les coordonnées x et y sont affectées par le dernier appel à ##[[KeyPgViewgraphics View (Graphique)]]## et ##[[KeyPgWindow Window]]##, et respectent la région de découpage (clipping region) validée par ##[[KeyPgViewgraphics View (Graphique)]]##.
- ##//color//## specifies the color attribute. If omitted, ##//color//## defaults to the current foreground color. See ##[[KeyPgColor Color]]##. ##//color//## is graphics mode specific, see ##[[KeyPgColor Color]]## and ##[[KeyPgScreengraphics Screen (Graphics)]]## for details.
+ ##//color//## spécifie l'attribut de couleur. Si omis, ##//color//## prend par défaut la couleur courante d'avant-plan. Voir ##[[KeyPgColor Color]]##. ##//color//## dépend du mode graphique, voir ##[[KeyPgColor Color]]## et ##[[KeyPgScreengraphics Screen (Graphique)]]## pour plus de détails.
- Optimization note: while **Pset** and the opposite ##[[KeyPgPoint Point]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPoke Poke]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more usig inline ASM.
+ Note d'optimisation: bien que **Pset** et son opposé ##[[KeyPgPoint Point]]## donnent des résultats valides, ils sont très lents. De meilleures performances sont obtenues en utilisant ##[[KeyPgPoke Poke]]## après avoir calculé vous-même l'adresse à partir des valeurs obtenues par ##[[KeyPgImageinfo ImageInfo]]## et ##[[KeyPgScreeninfo ScreenInfo]]##, ou même en utilisant le langage machine avec "inline ASM".
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/gfx/pset.bas"}}%%(freebasic)
-' Set an appropriate Screen mode.
+' Valide un mode ecran approprie.
Screen 14
-' Plot a pixel at the coordinates 100, 100, Color 15. (white)
+' Place un pixel aux coordonnees 100, 100, Couleur 15. (blanc)
Pset (100, 100), 15
-' Confirm the operation.
+' Confirme l' operation.
Locate 1: Print "Pixel plotted at 100, 100"
-' Wait for a keypress.
+' Attente touche appuyee.
Sleep
-' Plot another pixel at the coordinates 150, 150, Color 4. (red)
+' Place un autre pixel aux coordonnees 150, 150, Couleur 4. (rouge)
Pset (150, 150), 4
-' Confirm the operation.
+' Confirme l' operation.
Locate 1: Print "Pixel plotted at 150, 150"
-' Wait for a keypress.
+' Attente touche appuyee.
Sleep
-' Plot a third pixel relative to the second, Color 15. (white)
-' This pixel is given the coordinates 60, 60. It will be placed
-' at 60, 60 plus the previous coordinates (150, 150), thus plotting at 210, 210.
+' Place un 3eme pixel relatif au second, Couleur 15. (blanc)
+' Ce pixel a les coordonnees 60, 60. Il sera place
+' a 60, 60 plus les coordonnees precedentes (150, 150), donc place a 210, 210.
Pset Step (60, 60), 15
-' Confirm the operation.
+' Confirme l' operation.
Locate 1: Print "Pixel plotted at 150 + 60, 150 + 60"
-' Wait for a keypress
+' Attente touche appuyee
Sleep
-' Close the program
+' Ferme le programme
End
%%
{{fbdoc item="diff"}}
- - ##//target//## is new to ""FreeBASIC""
+ - ##//target//## nouveau pour FreeBASIC
+ {{fbdoc item="see"}}
-{{fbdoc item="see"}}
- - ##[[KeyPgPoint Point]]## - read out pixels
- - ##[[KeyPgPreset PReset]]##
- - ##[[KeyPgViewgraphics View (Graphics)]]##
+- ##[[KeyPgPoint Point]]## - lecture de pixels
+ - ##[[KeyPgPreset PReset]]##
+ - ##[[KeyPgViewgraphics View (Graphique)]]##
- ##[[KeyPgWindow Window]]##
+ - ##[[KeyPgWindow Window]]##
+ - ##[[GfxInternalFormats Internal pixel formats]]##
-{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
+{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
diff --git a/fbdocs/manual/cache/KeyPgPsetGfx.wakka b/fbdocs/manual/cache/KeyPgPsetGfx.wakka
index d15b9e6b09..e68786dbfe 100644
--- a/fbdocs/manual/cache/KeyPgPsetGfx.wakka
+++ b/fbdocs/manual/cache/KeyPgPsetGfx.wakka
@@ -1,25 +1,25 @@
{{fbdoc item="title" value="PSET"}}----
-Parameter to the ##[[KeyPgPutgraphics Put]]## graphics statement which selects ##[[KeyPgPset PSet]]## as the blitting method
+Paramètre de la déclaration graphique ##[[KeyPgPutgraphics Put]]## qui sélectionne ##[[KeyPgPset PSet]]## comme méthode de 'blitting'
{{fbdoc item="syntax"}}##
**Put** [ //target//, ] [ STEP ] ( //x//,//y// ), //source// [ ,( //x1//,//y1// )-( //x2//,//y2// ) ], **Pset**
##
{{fbdoc item="param"}}
##**PSet**##
- Required.
+ Obligatoire.
{{fbdoc item="desc"}}
- The ##**PSet**## method copies the source pixel values onto the destination pixels.
+ La méthode ##**PSet**## copie les valeurs des pixels source sur les pixels destination.
- This is the simplest ##[[KeyPgPutgraphics Put]]## method. The pixels in the destination buffer are directly overwritten with the pixels in the source buffer. No additional operations are done, and there are no color values that are treated as transparent. It has the same effect as ##[[KeyPgPset PSet]]ting## each pixel individually.
+ C'est la plus simple méthode ##[[KeyPgPutgraphics Put]]##. Les pixels du tampon destination sont directement remplacés par les pixels du tampon source. Aucune opération supplémentaire n'est effectuée, et il n'y a aucune valeur de couleur traîtée comme transparente. Cela a le même effet qu'un ##[[KeyPgPset PSet]]## individuel de chaque pixel.
{{fbdoc item="ex"}}
- {{fbdoc item="filename" value="examples/manual/gfx/put-pset.bas"}}%%(freebasic)
-'' set up a screen: 320 * 200, 16 bits per pixel
+ %%(freebasic)
+'' Valide ecran 320 * 200, 16 bits par pixel
screenres 320, 200, 16
line (0, 0)-(319, 199), rgb(0, 128, 255), bf
-'' set up an image with the mask color as the background.
+'' Valide une image avec le masque couleur arriere-plan.
dim img as any ptr = imagecreate( 33, 33, rgb(255, 0, 255) )
circle img, (16, 16), 15, rgb(255, 255, 0), , , 1, f
circle img, (10, 10), 3, rgb( 0, 0, 0), , , 2, f
@@ -28,21 +28,21 @@ circle img, (16, 18), 10, rgb( 0, 0, 0), 3.14, 6.28
dim as integer x = 160 - 16, y = 100 - 16
-'' Put the image with PSET
+'' Put l' image avec PSET
put (x, y), img, pset
-'' free the image memory
+'' Libere memoire image
imagedestroy img
-'' wait for a keypress
+'' Attente touche appuyee
sleep
%%
-{{image class="center" title="Put PSet example output" url="/images/putpset.png"}}
+
{{fbdoc item="diff"}}
- - None
+ - Aucune
{{fbdoc item="see"}}
- ##[[KeyPgPset PSet]]##
- - ##[[KeyPgPutgraphics Put (Graphics)]]##
+ - ##[[KeyPgPutgraphics Put (Graphique)]]##
{{fbdoc item="back" value="CatPgGfx2D|2D Drawing Functions"}}
\ No newline at end of file
diff --git a/fbdocs/manual/cache/KeyPgPtr.wakka b/fbdocs/manual/cache/KeyPgPtr.wakka
index 2978e6889c..357c33aa18 100644
--- a/fbdocs/manual/cache/KeyPgPtr.wakka
+++ b/fbdocs/manual/cache/KeyPgPtr.wakka
@@ -1,13 +1,13 @@
{{fbdoc item="title" value="PTR"}}----
-A variable declaration type modifier
+Déclaration d'un modificateur de type de variable
{{fbdoc item="syntax"}}##
[[KeyPgDim dim]] //symbolname// [[KeyPgAs as]] [[DataType DataType]] {**Ptr** | [[KeyPgPointer pointer]]}
##
{{fbdoc item="desc"}}
- Declares a pointer variable. The same as ##[[KeyPgPointer Pointer]]##.
+ Déclare un pointeur de variable. Identique à ##[[KeyPgPtr Pointer]]##.
- ##[[KeyPgOpAt Operator @ (Address of)]]## operator or ##[[KeyPgOpVarptr Varptr]]## are used to take the address of a variable. The ##[[KeyPgOpValueOf Operator * (Value of)]]## operator is used to dereference the pointer, that is, access the actual value stored in the memory location the pointer is pointing at.
+ Les opérateurs ##[[KeyPgOpAt Operator @ (Adresse de)]]## ou ##[[KeyPgOpVarptr VarPtr]]## sont utilisés pour obtenir l'adresse d'une variable. L'opérateur ##[[KeyPgOpValueOf Operator * (Valeur de)]]## est utilisé pour déréférencer le pointeur, c'est-à-dire, accéder à la valeur réelle stockée dans l'emplacement mémoire du pointeur indiqué.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/datatype/ptr.bas"}}%%(freebasic)
@@ -31,10 +31,10 @@ Print p
{{fbdoc item="lang"}}
- - Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Ptr""**##.
+ - Non disponible dans le dialecte //[[CompilerOptlang -lang qb]]// sauf si référencé avec l'alias ##**__Ptr**##.
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPointer Pointer]]##
diff --git a/fbdocs/manual/cache/KeyPgPublic.wakka b/fbdocs/manual/cache/KeyPgPublic.wakka
index 371281565e..a1eee6c567 100644
--- a/fbdocs/manual/cache/KeyPgPublic.wakka
+++ b/fbdocs/manual/cache/KeyPgPublic.wakka
@@ -1,17 +1,17 @@
{{fbdoc item="title" value="PUBLIC"}}----
-Specifies a procedure having external linkage.
+Indique une procédure ayant de liens externes.
{{fbdoc item="syntax"}}##
- **Public** [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ **Public** [[KeyPgSub Sub]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[[KeyPgModuleConstructor Constructor]] [//priority//]] [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgSub Sub]]
- **Public** [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl Cdecl]]|[[KeyPgStdcall Stdcall]]|[[KeyPgPascal Pascal]]] [[[KeyPgAlias Alias]] //"""external_name"""//] [([//parameter_list//])] [[KeyPgAs as]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
+ **Public** [[KeyPgFunction Function]] //procedure_name// [[[KeyPgOverload Overload]]] [[[KeyPgCdecl cdecl]]|[[KeyPgStdcall stdcall]]|[[KeyPgPascal pascal]]] [[[KeyPgAlias Alias]] //"external_name"//] [([//parameter_list//])] [[KeyPgAs As]] //return_type// [[[KeyPgStatic Static]]] [[[KeyPgExport Export]]]
//..procedure body..//
[[KeyPgEnd End]] [[KeyPgFunction Function]]
##
{{fbdoc item="desc"}}
- In procedure definitions, ##**Public**## specifies that a procedure has external linkage, meaning it's name is visible to external modules. If ##**Public**## or ##[[KeyPgPrivate Private]]## is not specified, a procedure is defined as if ##**Public**## was specified.
+ Dans les définitions de procédure, ##**Public**## précise qu'une procédure a un lien externe, ce qui signifie son nom est visible à des modules externes. Si ##**Public**## ou ##[[KeyPgPrivate Private]]## n'est pas spécifié, une procédure est définie comme si ##**Public**## avait été spécifié.
{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/module/sub-public.bas"}}%%(freebasic)
@@ -23,7 +23,7 @@ End Sub
%%
{{fbdoc item="diff"}}
- - New to ""FreeBASIC""
+ - Nouveau pour FreeBASIC
{{fbdoc item="see"}}
- ##[[KeyPgPrivate Private]]##
diff --git a/fbdocs/manual/cache/KeyPgPutfileio.wakka b/fbdocs/manual/cache/KeyPgPutfileio.wakka
index eb389e4c67..c0db6c6c95 100644
--- a/fbdocs/manual/cache/KeyPgPutfileio.wakka
+++ b/fbdocs/manual/cache/KeyPgPutfileio.wakka
@@ -1,5 +1,5 @@
{{fbdoc item="title" value="PUT (File I/O)"}}----
-Writes data from a buffer to a file
+Ecrit des données d'un tampon vers un fichier
{{fbdoc item="syntax"}}##
**Put** #//filenum// [[KeyPgAs As]] [[KeyPgInteger integer]], [//position// [[KeyPgAs As]] [[KeyPgLongint longint]]], //data// [[KeyPgAs As]] [[KeyPgAny Any]] [, //amount// [[KeyPgAs As]] [[KeyPgInteger Integer]]]
@@ -12,27 +12,27 @@ Writes data from a buffer to a file
##
{{fbdoc item="param"}}
##//filenum//##
- The value passed to ##[[KeyPgOpen Open]]## when the file was opened.
+ La valeur passée à ##[[KeyPgOpen Open]]## lorsque le dossier a été ouvert.
##//position//##
- Is the position where ##Put## must start in the file. If the file was opened ##For Random##, the position is in records, else it is given in bytes. If omitted, writing starts at the present file pointer position. The position is 1-based: i.e. the first record or byte of a file is at position ##1##.
- If ##//position//## is omitted or zero (##0##), file writing will start from the current file position.
+ Est la position où ##**Put**## doit commencer dans le fichier. Si le fichier a été ouvert en mode ##//For Random//##, la position est évaluée en enregistrements, sinon elle est évaluée en octets. Si omise, l'écriture commence à la position actuelle du pointeur. La position est basée sur 1: par exemple le premier enregistrement ou octet est à la position ##1##.
+ Si ##//position//## est omise ou zéro (##0##), l'écriture dans le fichier commencera à partir de la position courante dans le fichier.
##//data//##
- Is the buffer where data is written from. It can be a numeric variable, a string, an array or a user-defined type. The operation will try to transfer to disk the complete variable, unless ##//amount//## is given.
- When putting arrays, ##//data//## should be followed by an empty pair of brackets: '##()##'. ##**Put**## will write all of the data in the array. ##//amount//## is not allowed.
- When putting ##[[KeyPgString String]]##s, the number of bytes written is the same as the number of bytes in the string data. ##//amount//## is not allowed.
- Note: If you want to write values from a buffer, you should NOT pass a pointer to the buffer; instead you should pass the first variable in the buffer. (This can be done by dereferencing the pointer with ##[[KeyPgOpValueOf Operator * (Value of)]]##.) If you pass a pointer directly, then ##**Put**## will put the memory from the pointer variable, not the memory it points to.
+ Est le tampon mémoire à partir duquel les données sont écrites. Il peut être une variable numérique, une chaîne, un tableau ou un type défini par l'utilisateur. L'opération va essayer de transférer sur le disque la variable complète, sauf si ##//amount//## est précisé.
+ Lorsque ##**Put**## concerne un tableau, ##//data//## doit être suivi par une paire de parenthèses vides: '##()##'. ##**Put**## écrira toutes les données du tableau. ##//amount//## n'est pas permis.
+ Lorsque ##**Put**## concerne une ##[[KeyPgString String]]##, le nombre d'octets écrits est le même que le nombre d'octets dans la chaîne. ##//amount//## n'est pas permis.
+ Note: Si vous voulez écrire des valeurs à partir d'un tampon, vous NE DEVEZ PAS passer un pointeur vers la mémoire tampon; au lieu de cela vous devez passer la première variable dans la mémoire tampon. (Cela peut être fait par le déréférencement du pointeur avec ##[[KeyPgOpValueOf Operator * (Valeur de)]]##.) ##**Put**## déduira automatiquement que le reste de la mémoire tampon se poursuit après la première variable. Si vous passez un pointeur directement, alors ##**Put**## utilisera la mémoire à partir de la variable pointeur et non pas la mémoire pointée par lui.
##//amount//##
- Makes ##Put## write to file ##//amount//## consecutive variables to the file - i.e. it writes ##( //amount// * [[KeyPgSizeof Sizeof]](//data//) )## bytes of data, starting at ##//data//##'s location in memory, into the file. If ##//amount//## is omitted it defaults to ##1##, meaning that ##**Put**## just writes a single variable.=====
+ ##Put## écrira dans le fichier ##//amount//## variables consécutives - c'est à dire qu'il écrira, dans le fichier, ##( //amount// * [[KeyPgSizeof SizeOf]](//data//) )## octets de données, commençant à la position ##//data//## dans la mémoire. Si ##//amount//## est omis sa valeur par défaut est ##1##, ce qui signifie que ##**Put**## n'écrit qu'une seule variable.