Basic.ProcessorCount$ (property)

Syntax

Basic.ProcessorCount

Description

Returns the number of CPUs installed on the computer on which BasicScript is running.

Comments

Basic.ProcessorCount$ returns 1 if the CPU has only one processor or is otherwise incapable of containing more than one processor.

Example

'

'Print the number of processors in the computer.

'

Sub Main()

MsgBox "There are " & Basic.ProcessorCount & _

" processor(s) in the computer."

End Sub

See Also

Basic.Processor$ (property)

Note

The Basic.Processor$ property determines the type of processor.

More information

B