OS( ) Function

Example   See Also

Returns the name and version number of the operating system under which Microsoft Visual FoxPro is running.

Syntax

OS([1 | 2])

Returns

Character

Arguments

1

Specifies that the name and version number of the operating system is returned.

2

Specifies that a character string indicating if the operating system supports DBCS (double-byte character sets) is returned If DBCS is supported, the character string “DBCS” is returned, otherwise the empty string is returned.

Remarks

If the optional 1 or 2 argument is omitted, the underlying operating system name and its version number is returned.