From Clomosy Docs

(Created page with "<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> procedure Console.Text(const AMessage: string); </div> Console applications are 32-bit programs that run in a console window without a graphical interface. These applications generally do not require much user input and perform a limited number of functions. <div class="alert alert-danger" role="alert" data-bs-theme="light"> <b>NOTE:</b> It is useful for the Windo...")
 
No edit summary
Line 10: Line 10:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
Var
Var
Line 21: Line 21:
   console.text('Time:'+DateTimeToStr(Now));
   console.text('Time:'+DateTimeToStr(Now));
}
}
</pre>
<b>Base Syntax</b><br>
<pre>
Var
i : Integer;
begin
for i:=0 to 5 do
  console.text('Counter: '+IntToStr(i));
 
  console.text('Time:'+DateTimeToStr(Now));
end;
</pre>
</pre>



Revision as of 11:04, 13 November 2024

Console applications are 32-bit programs that run in a console window without a graphical interface. These applications generally do not require much user input and perform a limited number of functions.

Example

Var
 i : Integer;

{
 for (i=0 to 5)
  console.text('Counter: '+IntToStr(i));

  console.text('Time:'+DateTimeToStr(Now));
}

Output:
ConsoleExampleV1.1.png

See Also