User Tools

Site Tools


fr:ostype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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'exploitation BASIC256 a été compilé.
 +
 +^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 ====
 +
 +<code>
 +print "Vous utilisez une machine ";
 +if ostype() = 0 then
 +   print "windows";
 +else
 +   print "unix/linux";
 +end if
 +print "."
 +</code>
 +Affichera :
 +<code>
 +Vous utilisez une machine unix/linux.
 +</code>
 +
 +==== Disponible depuis la version ==== 
 +0.9.6.58
  
fr/ostype.txt · Last modified: 2020/02/28 10:46 (external edit)