From Clomosy Docs

No edit summary
No edit summary
Line 15: Line 15:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
  var
  var
Line 31: Line 31:
  }
  }
</pre>
</pre>
<b>Base Syntax</b><br>
<pre>
var
  word : String;
begin
  word := 'Hello World';
  // Show a simple message
  ShowMessage(word);
 
  // Show a blank message
  ShowMessage('');
 
  // Split this into two lines
  ShowMessage('Hello '+#13#10+'World');
end;
</pre>
'''Output:'''<br>
Output1: Hello World
Output2:
Output3: Hello
          World


<b>Output:</b><br>
<b>Output:</b><br>

Revision as of 12:54, 13 November 2024

Applications or the operating system itself use message windows to warn or inform the user. The title of the window is the project name. There is no option to click other than the OK button.

ShowMessage Behaves Differently On Different Platforms On desktop platforms, ShowMessage behaves synchronously. The call finishes only when the user closes the dialog box. On mobile platforms, ShowMessage behaves asynchronously. The call finishes instantaneously, it does not wait for the user to close the dialog box.


Example

 var
   word : String;
 {
   word = 'Hello World';
   // Show a simple message
   ShowMessage(word);
   
   // Show a blank message
   ShowMessage('');
   
   // Split this into two lines
   ShowMessage('Hello '+#13#10+'World');
 }

Output:

See Also