WriteLine(Value: Variant);
Value - value, which must be displayed. Simple data types must be passed in this parameter to be displayed correctly.
The WriteLine method displays a value passed by the Value parameter, moving the cursor to a new line if the specified condition is satisfied. The value is displayed in all the elements, which are contained in the Listeners collection.
Sub Main;
Var
v: Variant;
Begin
v := "Current date and time: ";
Debug.WriteLine(v);
v := DateTime.Now;
Debug.WriteLine(v);
End Sub Main;
After executing the example, the message "Current date and time: " and the current date will be displayed. Data is displayed in separate lines.
See also: