From Clomosy Docs

Revision as of 14:09, 10 October 2024 by ClomosyAdmin (talk | contribs)

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