Definition: | string s = prompt_string(string prompt) |
Description: | Prompt the user to enter a string of text. The prompt parameter is a string that will be displayed on the screen. The string that the user types will be returned, minus any new-line character. |
Comments: | If the user happens to type control-Z (which indicates end-of-file), "" will be returned.
If this routine is too simple for your needs, feel free to copy (and ideally rename) it and make your own more specialized version. You can find the original in builtins\get.e |
Example: |
name = prompt_string("What is your name? ") |
See Also: | gets, prompt_number |