Xbasic

UI_EDIT_CODE Function

Syntax

Data as P = ui_edit_code(C string [,C title [,L showInteractiveWindow [,N mode ]]])

Arguments

Data

The key pressed to exit and the text entered into the dialog box.

string

The initial text to display.

title

Optional. The title of the dialog box.

showInteractiveWindow

Logical

mode

Numeric

Description

Prompt for a some Xbasic code. Mode: 0 - don't validate code, 1 - warn if error, 2 - require code to be free of errors

Discussion

The UI_EDIT_CODE() function displays a code editor dialog box and returns the text that the user inputs.

Example

? ui_edit_code("a5_xdialog_listbox", "My Editor")
= lastbutton = "ok"
text = "The code entered into the dialog."

Limitations

Desktop applications only.

See Also