Skip to content

dos_editbox

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Displays a sizeable Windows dialog box with a multi-line edit control. Useful for editing paragraphs of text. Text can also be imported into the dialog box from external files.

Syntax

(dos_editbox title prompt [default])

Parameters

title

A string containing the dialog box title.

prompt

A string containing the dialog box prompt.

default

A default string value. Lines can be separated with a newline, or '\n', character.

Returns

A string value if successful. Lines will be separated with a newline, or '\n', character. Use the dos_strtokens function to convert the return value into a list of strings.

nil on cancel or on error.

Example

Command: (dos_editbox "Editor" "Enter some text" "Hockey\nis\nthe\nbest!")
"I really think \nHockey\nis\nthe\nbest!"

Clone this wiki locally