This shows you the differences between two versions of the page.
— |
fr:ostype [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ostype ===== | ||
+ | |||
+ | ==== Format ==== | ||
+ | |||
+ | **ostype** \\ | ||
+ | **ostype** ( )\\ | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Retourne un nombre qui caractérise pour quel système d' | ||
+ | |||
+ | ^Return Values^^ | ||
+ | ^Value^Type^ | ||
+ | |0|Windows| | ||
+ | |1|Linux| | ||
+ | |2|Macintosh| | ||
+ | |||
+ | ==== Note ==== | ||
+ | Zéro (0) est également retourné si BASIC-256 pour Windows est utilisé sous Linux avec Wine. | ||
+ | |||
+ | ==== Exemple ==== | ||
+ | |||
+ | < | ||
+ | print "Vous utilisez une machine "; | ||
+ | if ostype() = 0 then | ||
+ | print " | ||
+ | else | ||
+ | print " | ||
+ | end if | ||
+ | print " | ||
+ | </ | ||
+ | Affichera : | ||
+ | < | ||
+ | Vous utilisez une machine unix/linux. | ||
+ | </ | ||
+ | |||
+ | ==== Disponible depuis la version ==== | ||
+ | 0.9.6.58 | ||