Basic.OS (property)

Syntax

Basic.OS

Description

Returns an Integer indicating the current platform.

Comments

Value

Constant

Platform

 

2

ebWin32

Windows XP

Windows 2003

 

The value returned is not necessarily the platform under which the Basic Control Language script is running but rather an indicator of the platform for which the script was created.

Example

This example determines the operating system for which this version was created and displays the appropriate message.

Sub Main()

  Select Case Basic.OS
    Case ebWin32
      s = "Windows XP"
    Case Else
      s = "not Wndows XP"
  End Select
  MsgBox "You are currently running " & s
End Sub

More information

B