Ostype
Ostype (फ़ंक्शन)
प्रारूप
ostype
ostype ( )
पूर्णांक_व्यंजक लौटाता है
विवरण
उस ऑपरेटिंग सिस्टम/सॉफ़्टवेयर वातावरण को दर्शाने वाली संख्या लौटाता है जिसके लिए यह BASIC256 एक्ज़िक्यूटेबल फ़ाइल कंपाइल की गई थी।
| लौटाए गए मान | |
|---|---|
| स्थिरांक | मान |
| OSTYPE_WINDOWS | 0 |
| OSTYPE_LINUX | 1 |
| OSTYPE_MACINTOSH | 2 |
| OSTYPE_ANDROID | 3 |
उदाहरण
print "You are using a ";
if ostype() = 0 then
print "windows";
else
print "non-windows";
end if
print " machine."
यह कुछ ऐसा दिखाएगा:
You are using a non-windows machine.
यह भी देखें
EditVisible, GraphToolBarVisible, GraphVisible, Include,MainToolbarVisible, Maximize, OutputToolBarVisible, OutputVisible, RegexMinimal, Ostype, System, Version
इतिहास
| 0.9.6.58 | इस संस्करण में नया |
| 1.0.1.0 | Android जोड़ा गया |
| 1.99.99.58 | नाम वाले स्थिरांक जोड़े गए |