OS$

From QB64 Phoenix Edition Wiki
Revision as of 12:42, 19 April 2022 by SMcNeill (talk | contribs) (Created page with "The _OS$ function returns the operating system and QB64 compiler bit version used to compile a QB64 program. {{PageSyntax}} : {{Parameter|compilerVersion$}} = _OS$ {{PageDescription}} * Returns a STRING listing the OS as [WINDOWS], [LINUX] or [MACOSX] and the compiler bit format of [32BIT] or [64BIT]. Example: {{text|[WINDOWS][32BIT]}} * Allows a BAS program to be compiled with QB64 in Windows, Linux or MacOSX using different OS or language specifications...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


Syntax

compilerVersion$ = _OS$


Description

  • 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



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link