GetNumber (Controls.sc)

Shows an edit box and gets a number from the user.

GetNumber(title [defaultNumber])
Parameters:
  • title (string) – A title for the dialog.
  • defaultNumber – An optional default number.
Returns:

A number, or -1 if the user cancelled.