-
-
Notifications
You must be signed in to change notification settings - Fork 18
get_int
CryoEagle edited this page Jan 6, 2019
·
1 revision
Open window with input, value can be saved in variable, input must be whole number
get_int(str, caption, defaultValue)
Argument | Description |
---|---|
string str |
Description about input |
string caption |
Caption of window |
string defaultValue |
Caption of window |
Returns: int
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 whole number, if input will be containing characters it will return 0.
int wholeNumberInput = get_int("Write me a text please", "Your text", "5");
show_message(wholeNumberInput.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 int
wholeNumberInput.
Back to Debug