OS Function (Logic) | |
Return the operating system name.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION OS(
lExtended AS LOGIC
) AS STRING
public static string OS(
bool lExtended
)
Request Example
View SourceParameters
- lExtended
- Type: Logic
This can contain anything.
Return Value
Type:
String
OS() returns the name of the disk operating system under which the current workstation is operating, followed by the version number.
Remarks
Without the parameter the functions returns
"Windows 2000...."
for W2K, WXP and Windows Server 2003 so as to maintain backward compatability.
With the parameter, the content and type is unimportant, it returns the correct OS name, such as
"Windows XP...."
or
"Windows 2003 Server...."
if a more acurate answer is required.
Examples
This example uses OS() to report the operating system the current workstation is running under:
See Also