Skip to content

get_double

CryoEagle edited this page Jan 6, 2019 · 1 revision

get_double

Open window with input, value can be saved in variable, input must be number

Syntax:

get_double(str, caption, defaultValue)
Argument Description
string str Description about input
string caption Caption of window
string defaultValue Caption of window

Returns: double

Description:

Show window with input, description about input and caption of window then you can save input value to local variable and use that later, so user can write there his age and can see it later, input must be number, if input will be containing characters it will return 0.

Example:

double inputNumber = get_double("Write me a number please", "Your number", "5");
show_message(inputNumber.ToString());

The above code will open window with caption „Your number“ and description „Write me a number please“ when user will write into input and press button then will be opened window with text that were saved into double inputNumber.

Back to Debug

Clone this wiki locally