From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

XojoScript.Input(prompt As String) As String

Supported for all project types and targets.

The script requests input from the end user with prompt being text to display. Returns a String. You are responsible for creating any UI that prompts the user for data.


In your script, the Input function calls this event handler. In the event handler you can display your own UI with a prompt for the user to enter data and then return the result (as a string) from the event handler to have it passed back to the script.