Skip to content

get_string

CryoEagle edited this page Jan 6, 2019 · 1 revision

get_string

Open window with input, value can be saved in variable

Syntax:

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

Returns: string

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 username and can see it later.

Example:

var value = get_string("Write me a text please", "Your text");
show_message(value);

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

Back to Debug

Clone this wiki locally