From Clomosy Docs

No edit summary
No edit summary
Line 1: Line 1:
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert">
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert">
function Clomosy.Ask(var AAskMessage:String): Boolean;
function Clomosy.Ask(var AskMessage:String): Boolean;
</div>
</div>



Revision as of 14:09, 10 October 2024

The "Ask" function is commonly used in Clomosy programming to display a dialog box where you can request user confirmation. You can use this function to ask a question or present options to the user.

By using "Clomosy.Ask," you can input a specific question. If the "Yes" button is clicked, the function returns a value of true. Otherwise, it returns false, allowing you to perform the desired operations.

Example
TRObject Syntax

{
  if Clomosy.Ask('Do you like Clomosy?')
    ShowMessage('Yes');
  else
    ShowMessage('No');
}

Base Syntax

begin
  if Clomosy.Ask('Do you like Clomosy?') then
    ShowMessage('Yes');
  else
    ShowMessage('No');
end;

See Also