From Clomosy Docs
ClomosyAdmin (talk | contribs) No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| Line 24: | Line 24: | ||
<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=Ask Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=Clomosy.Ask displays a confirmation dialog and returns true if 'Yes' is clicked, otherwise false. Supported only for Windows, use AskAndCall for cross-platform.}} | {{#seo:|description=Clomosy.Ask displays a confirmation dialog and returns true if 'Yes' is clicked, otherwise false. Supported only for Windows, use AskAndCall for cross-platform.}} | ||
Revision as of 13:58, 24 December 2024
function Clomosy.Ask(var AskMessage:String): Boolean;
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.
Ask Method Supported Only For Windows. You can use AskAndCall.
Example
{
if Clomosy.Ask('Do you like Clomosy?')
ShowMessage('Yes');
else
ShowMessage('No');
}