Basic.Capability (method)

Syntax

Basic.Capability(which)

Description

Returns True if the specified capability exists on the current platform; returns False otherwise.

Comments

The which parameter is an Integer specifying the capability for which to test. It can be any of the following values:

 

Value

Returns True If the Platform Supports

 

1

Disk drives

 

2

System file attribute (ebSystem)

 

3

Hidden file attribute (ebHidden)

 

4

Volume label file attribute (ebVolume)

 

5

Archive file attribute (ebArchive)

 

6

Denormalized floating-point math

 

7

File locking (i.e., the Lock and Unlock statements)

 

8

Big endian byte ordering

Example

This example tests to see whether your current platform supports disk drives and hidden file attributes and displays the result.

Sub Main()

  msg1 = "This operating system "

  If Basic.Capability(1) Then
    msg1 = msg1 & "supports disk drives."
  Else
    msg1 = msg1 & "does not support disk drives."
  End If

  MsgBox msg1
End Sub

See Also

Basic.OS (property)

More information

B