Difference between revisions of "OS$"

From QB64.org wiki
Jump to: navigation, search
Line 16: Line 16:
* [[ENVIRON$]]
* [[ENVIRON$]]
* [[QB64_FAQ#Q:_How_do_I_upgrade_the_32_bit_Windows_version_of_QB64_to_64_bit_functionality.3F|Upgrading QB64 to use a 64-bit compiler in Windows]]

Latest revision as of 20:49, 13 January 2020

The _OS$ function returns the operating system and QB64 compiler bit version used to compile a QB64 program.


compilerVersion$ = _OS$


  • Returns a STRING listing the OS as [WINDOWS], [LINUX] or [MACOSX] and the compiler bit format of [32BIT] or [64BIT]. Example: [WINDOWS][32BIT]
  • Allows a BAS program to be compiled with QB64 in Windows, Linux or MacOSX using different OS or language specifications.
  • Use the return compilerVersion$ to specify the current OS code to use when a BAS program is compiled using another version of the QB64 compiler.
  • Windows can use either a 32 (default) or 64 bit compiler. Linux and Mac use 64 bit by default.

See also

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page