Core Function InputBox
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> InputBox( <title>, <message>, <default text> ) </pre> === Description === Shows a box to input text. === Parameters === ==== title ==== The title of the input box. ==...") |
m (1 revision) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 24: | Line 24: | ||
Success: Returns the text inputted in the text box. | Success: Returns the text inputted in the text box. | ||
− | Failure: Returns | + | |
+ | Failure: Returns null if user cancelled. | ||
=== Examples === | === Examples === | ||
Line 32: | Line 33: | ||
MsgBox("Your name is ".$Form."!", "Hello!"); | MsgBox("Your name is ".$Form."!", "Hello!"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | [[Category:Core Function]] |
Latest revision as of 12:38, 14 June 2015
InputBox( <title>, <message>, <default text> )
Contents |
Description
Shows a box to input text.
Parameters
title
The title of the input box.
message
The message asking the user in the input box.
default text
The default text that appears in the text box of the input box.
Return Value
Success: Returns the text inputted in the text box.
Failure: Returns null if user cancelled.
Examples
$Form = InputBox("Hello!", "What is your name?", ""); MsgBox("Your name is ".$Form."!", "Hello!");