IsLinux: Boolean;
The IsLinux property returns whether code is being executed in a Linux family operating system.
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.
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: