IDebug.IsLinux

Syntax

IsLinux: Boolean;

Description

The IsLinux property returns whether code is being executed in a Linux family operating system.

Comments

The property True if the current code is being executed in a Linux family operating system, and False if code is being executed in Windows OS.

Example

Sub UserProc;
Var
    
//...
    Result: Variant;
    
//...
Begin
    
//...
    //Code being executed
    //...
    If Debug.IsLinux Then
        Debug.WriteLine(
"Work in Linux: " + Result);
    
Else
        Debug.WriteLine(
"Work in Windows: " + Result);
    
End If;
End Sub UserProc;

The specified procedure can be used to execute some code. The development environment console displays information about the operating system, in which code is being executed.

See also:

IDebug