2016-03-18 11:36:04 +00:00
|
|
|
The '''_OS$''' function returns the operating system and QB64 compiler bit version used to compile a QB64 program.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2016-03-18 11:36:04 +00:00
|
|
|
{{PageSyntax}}
|
|
|
|
:::: compilerversion$ = '''_OS$'''
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2016-03-18 11:36:04 +00:00
|
|
|
* Allows a BAS program to be compiled with QB64 in Windows, Linux or MacOSX using different OS or language specifications.
|
|
|
|
* Use the return to specify the current OS code to use when a BAS program is compiled using another version of the QB64 compiler.
|
|
|
|
* Returns a [[STRING]] listing the OS as [WINDOWS], [LINUX] or [MACOSX] and the compiler bit format of [32BIT] or [64BIT].
|
|
|
|
* Windows can use either a 32(default) or 64 bit compiler. Linux and Mac use 64 bit. '''Example: {{text|[WINDOWS][32BIT]|green}}'''
|
|
|
|
* Note: It may not be possible to run a QB64 EXE program compiled on another operating system to get an _OS$ return value.
|
|
|
|
* Explanation by Galleon: http://www.qb64.net/forum/index.php?topic=12193.msg105406#msg105406
|
2015-08-02 12:12:44 +00:00
|
|
|
|
2016-03-18 11:36:04 +00:00
|
|
|
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
''See also:
|
|
|
|
* [[ENVIRON$]]
|
2016-03-18 11:36:04 +00:00
|
|
|
* [http://www.qb64.net/forum/index.php?topic=12204.0 64 BIT Windows Compiler Installation]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageNavigation}}
|