method prompt

object prompt(string message,string title,string value,int32 size);

Argumente

Zurückgegebener Wert

This method will pop a modal prompt dialog. This is a very simple dialog. The return value is an object with the following properties:
For more options use the openDialog method. See the scene::openDialog documentation for more information.
function onSample()
{
    var textBody = "Please enter your name in the input field provided below. ";
    var dialogResults = scene.prompt(textBody, "Name Entry", "Input name here", 2);
    if (dialogResults)
    {
        shell.print("Dialog Results = " + dialogResults.results);
        shell.print("Dialog Value Entered = " + dialogResults.promptValue);
    }
}