Text and SQL editor
On this page
Edit a block of text or SQL. The caller decides which editor is shown.
All windows and pages · Common controls and reading this reference
Behavior and conditions
The caller chooses plain-text or SQL mode. SQL mode uses the SQL editor; plain-text mode uses the multiline text control. OK returns the edited text to the caller. This dialog itself does not execute SQL.
Related guidance
Controls
The entries include tabs, grid columns, fields and context-menu actions. Repeated captions can belong to different grids or menus. Selection-dependent and initially hidden controls are included; inclusion is not a promise that every control is visible at once. Fixed choices below are declared choices, not a platform support matrix.
XAML preview
WPF renders the compiled XAML view with the application styles and empty fields. The image variant follows the documentation color theme.
Window layout

General
Edit the full text value
Plain-text content shown when the caller uses text mode.
Location: General. Control: Text field.
Accepts multiline input.
OK
Returns the edited text to the caller. This dialog does not execute the SQL.
Location: General. Control: Button.
Cancel
Closes the dialog without accepting the edited text.
Location: General. Control: Button.
Other controls
Edit the full SQL expression or script
SQL text shown when the caller uses SQL mode.
Location: General. Control: SQL editor.
Initially hidden; runtime selection can change visibility.
Scope
Options can depend on the selected object, its saved values and the current repository.