Platform$

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

This variable holds the operating system specifier

Syntax

  1. PRINT Platform$

Hints

This variable is case sensitive, so platform$ or PLATFORM$ are not the same as Platform$.
Platform$ is a string variable because of the trailing dollar sign ($), so you can use string manipulation on it.
Possible Platform Strings
Operating System Just BASIC Liberty BASIC 4 Liberty BASIC 5 Run BASIC
Windows Windows Windows win32 win32
Linux not applicable not applicable unix unix
MAC not applicable not applicable unix ???

Example

Print Platform$

For x = 1 to Len(Platform$)
    Print Left$(Platform$, x)
Next

Useful Procedures

' Place a useful function or sub using this keyword here