Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
prog:lazarus:functions:format [26/09/2019 20:07] thierry créée |
prog:lazarus:functions:format [23/05/2020 11:38] (Version actuelle) thierry [Sources et Ressources] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== La fonction FORMAT ====== | + | ====== Format ====== |
+ | ===== La fonction Format('',[]) ===== | ||
Cette fonction est une fonction super utile pour formater du texte | Cette fonction est une fonction super utile pour formater du texte | ||
Ligne 11: | Ligne 13: | ||
</code> | </code> | ||
- | ===== Plus d'infos ===== | + | Types disponibles : |
+ | |||
+ | |%d |Decimal (integer)| | ||
+ | |%e |Scientific | | ||
+ | |%f |Fixed | | ||
+ | |%g |General | | ||
+ | |%m |Money | | ||
+ | |%n |Number (floating) | | ||
+ | |%p |Pointer | | ||
+ | |%s |String | | ||
+ | |%u |Unsigned decimal | | ||
+ | |%x |Hexadecimal | | ||
+ | |||
+ | ===== Autres formats ===== | ||
+ | ==== Hexadecimal ==== | ||
+ | * IntToHex : [[https://lazarus-ccr.sourceforge.io/docs/rtl/sysutils/inttohex.html]] | ||
+ | * Autres infos en bas de cette page : [[https://wiki.freepascal.org/Hexadecimal]] | ||
+ | |||
+ | |||
+ | ===== Sources et Ressources ===== | ||
* [[https://wiki.freepascal.org/Format_function]] | * [[https://wiki.freepascal.org/Format_function]] | ||