InputBox(const ACaption, APrompt, ADefault: string): string;

This RS/2 script:

// REDTITAN RS2 CONTROL

s:=inputbox('inputBox example','You can enter some text here','and this is the default value');

text(300,300,s);

displays this modal dialog: Click to expand/collapse image

Try typing Here is my text! in the editable box to overwrite the ADefault string and this is the default value.

The EscapeE Applications Programming Interface will display: Click to expand/collapse image