get_string(str,def)

str = The message you want displayed to the user.

def = Default text that appears in the input box.

 

Example #1

name = get_string("What is your name?","Nickydude?");

 

get_string is very much like get_integer(), but will pop up an input dialog box that will allow the user to enter text, str is the message you want displayed on this dialog box and def is a default text that will be automatically placed inside the input box. You can leave the default text empty by putting nothing between the quotes:- "".  You can also use a variable for the default text if need be:

 

Example #2

name = "Nickydude?"

name = get_string("What is your name?",name);

 

Note: The variable name is not surrounded by quotes.

 

Revision #1