From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
<pre>
<pre>
  void ProcYes;
  void ProcYes;
Line 21: Line 20:
   Clomosy.AskAndCall('Do you like Clomosy?','ProcYes','ProcNo');
   Clomosy.AskAndCall('Do you like Clomosy?','ProcYes','ProcNo');
  }
  }
</pre>
<b>Base Syntax</b><br>
<pre>
procedure ProcYes;
begin
  ShowMessage('Yes Clicked');
end;
procedure ProcNo;
begin
  ShowMessage('No Clicked');
end;
begin
  Clomosy.AskAndCall('Do you like Clomosy?','ProcYes','ProcNo');
end;
</pre>
</pre>


<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Input-Output_Functions | Input Output Functions]]
* [[System_Library#Input-Output_Functions | Input Output Functions]]
{{#seo:|title=AskAndCall Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Explore AskAndCall on Clomosy. Learn how to implement effective user input and function calling in your applications.
}}

Latest revision as of 13:29, 24 December 2024

The "AskAndCall" function is commonly used in Clomosy programming to display a dialog box where you can request user confirmation. It has a structure similar to the "Ask" function. You can use this function to ask a question or present options to the user.
The "AskAndCall" function takes three parameters. The first parameter represents the question or prompt displayed in the dialog box. The second parameter specifies the action to be taken if the confirmation button is clicked. If the rejection button is clicked, the function will proceed to the action specified in the third parameter.

Example

 void ProcYes;
 {
   ShowMessage('Yes Clicked');
 }
 void ProcNo;
 {
   ShowMessage('No Clicked');
 }
 
 {
   Clomosy.AskAndCall('Do you like Clomosy?','ProcYes','ProcNo');
 }

See Also