FANDOM


ask is a command to create a ready to use window with a field:

ask "What is your name?"
Ask

Ask example

The text entered by the user is stored in the it variable.

Moreover you can add an icon, Livecode has the following predefined icons:

  • information
  • question
  • error
  • warning
ask information "What is your name?"
AskInformation
AskQuestion
AskError
AskWarning

If you use some HTML tag, the text is intepreted as HTMLText. Use this feature to customize text.

Syntax Edit

This is the syntax:

ask [iconType] prompt [with defaultResponse] [titled windowTitle] [as sheet]