Skip to content

TextInput

Anthony Headley edited this page Apr 19, 2020 · 2 revisions

TextInput([string | number:Title], [string | number:Default]) : string

Breif:

Displays a text input field for the user to enter a valie, takes optional title and default values

Paramiters:

Name Description Optional
string | number :Title The title for the input window
string | number :Defailt The default text

Returns:

nil: if cancled

string: value entered

Examples:

local result = TextInput("Enter a Prime Number", 41) -- displays menu with title and the value of 41 entered
Echo(type(result) .. " " .. result) -- returns a string of the result
Clone this wiki locally