# Dialog data type
> Version: _Available or changed with runtime version 1.0._
Represents a dialog window.
## Static methods
The following methods are available on the Dialog data type.
Method name|Description
Confirm(Text [, Boolean] [, Any,...])<dialog-confirm-method>|Creates a dialog box that prompts the user for a yes or no answer. The dialog box is centered on the screen.
Error(Text [, Any,...])<dialog-error-string-joker-method>|Displays an error message and ends the execution of AL code.
dialog-error-errorinfo-method|Displays an error message and ends the execution of AL code.
LogInternalError(Text, DataClassification, Verbosity)<dialog-loginternalerror-string-dataclassification-verbosity-method>|Log internal errors for telemetry.
LogInternalError(Text, Text, DataClassification, Verbosity)<dialog-loginternalerror-string-string-dataclassification-verbosity-method>|Log internal errors for telemetry.
Message(Text [, Any,...])<dialog-message-method>|Displays a text string in a message window.
StrMenu(Text [, Integer] [, Text])<dialog-strmenu-method>|Creates a menu window that displays a series of options.
## Instance methods
The following methods are available on instances of the Dialog data type.
Method name|Description
dialog-close-method|Closes a dialog window that has been opened by the OPEN method.
HideSubsequentDialogs([Boolean])<dialog-hidesubsequentdialogs-method>|Specifies that subsequent child dialogs are not shown.
Open(Text [, var Any,...])<dialog-open-method>|Opens a dialog window.
Update([Integer] [, Any])<dialog-update-method>|Updates the value of a '#'-or '@' field in the active window.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dialog/dialog-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/dialog/dialog-data-type/
