<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fmessage_and_input_boxes_runtime_library</id>
	<title>EN/documentation/basic guide/message and input boxes runtime library - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fmessage_and_input_boxes_runtime_library"/>
	<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;action=history"/>
	<updated>2026-11-11T13:50:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15945&amp;oldid=prev</id>
		<title>Sancho at 16:58, 2 September 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15945&amp;oldid=prev"/>
		<updated>2011-09-02T16:58:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:58, 2 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|ShowPrevNext=block&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|ShowPrevNext=block&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|ShowPrevPage=block&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|ShowPrevPage=block&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|PrevPage=EN/documentation/basic_guide/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;files_and_directories_(runtime_library)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|PrevPage=EN/documentation/basic_guide/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;files_and_directories_runtime_library&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|NextPage=EN/documentation/basic_guide/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;other_functions_(runtime_library)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|NextPage=EN/documentation/basic_guide/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;other_functions_runtime_library&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|runtime=block&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|runtime=block&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15940&amp;oldid=prev</id>
		<title>Sancho: moved EN/documentation/basic guide/message and input boxes (runtime library) to EN/documentation/basic guide/message and input boxes runtime library</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15940&amp;oldid=prev"/>
		<updated>2011-09-02T16:53:48Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_(runtime_library)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;EN/documentation/basic guide/message and input boxes (runtime library) (page does not exist)&quot;&gt;EN/documentation/basic guide/message and input boxes (runtime library)&lt;/a&gt; to &lt;a href=&quot;/wiki/EN/documentation/basic_guide/message_and_input_boxes_runtime_library&quot; title=&quot;EN/documentation/basic guide/message and input boxes runtime library&quot;&gt;EN/documentation/basic guide/message and input boxes runtime library&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:53, 2 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15904&amp;oldid=prev</id>
		<title>Sancho: Основной текст</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/message_and_input_boxes_runtime_library&amp;diff=15904&amp;oldid=prev"/>
		<updated>2011-09-02T10:53:14Z</updated>

		<summary type="html">&lt;p&gt;Основной текст&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;section begin=title /&amp;gt;&amp;lt;noinclude&amp;gt;{{DISPLAYTITLE:&amp;lt;/noinclude&amp;gt;Message and Input Boxes ({{OOo}} Runtime Library)&amp;lt;noinclude&amp;gt;}}&amp;lt;/noinclude&amp;gt;&amp;lt;section end=title /&amp;gt;{{BreadCrumbL10n}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/BASICGuideTOC&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=EN/documentation/basic_guide/files_and_directories_(runtime_library)&lt;br /&gt;
|NextPage=EN/documentation/basic_guide/other_functions_(runtime_library)&lt;br /&gt;
|runtime=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
{{OOo}} Basic provides the &amp;lt;tt&amp;gt;MsgBox&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; functions for basic user communication.&lt;br /&gt;
&lt;br /&gt;
== Displaying Messages ==&lt;br /&gt;
&amp;lt;tt&amp;gt;MsgBox&amp;lt;/tt&amp;gt; displays a basic information box, which can have one or more buttons. In its simplest variant the &amp;lt;tt&amp;gt;MsgBox&amp;lt;/tt&amp;gt; only contains text and an OK button:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MsgBox &amp;quot;This is a piece of information!&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The appearance of the information box can be changed using a parameter. The parameter provides the option of adding additional buttons, defining the pre-assigned button, and adding an information symbol.&lt;br /&gt;
{{Note|By convention, the symbolic names given below are written in UPPERCASE, to mark them as predefined, rather than user-defined. However, the names are not case-sensitive.}}&lt;br /&gt;
The values for selecting the buttons are: &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;0, MB_OK&amp;lt;/tt&amp;gt; - OK button&lt;br /&gt;
* &amp;lt;tt&amp;gt;1, MB_OKCANCEL&amp;lt;/tt&amp;gt; - OK and Cancel button&lt;br /&gt;
* &amp;lt;tt&amp;gt;2, MB_ABORTRETRYIGNORE&amp;lt;/tt&amp;gt; - Abort, Retry, and Ignore buttons &lt;br /&gt;
* &amp;lt;tt&amp;gt;3, MB_YESNOCANCEL&amp;lt;/tt&amp;gt; - Yes, No, and Cancel buttons&lt;br /&gt;
* &amp;lt;tt&amp;gt;4, MB_YESNO&amp;lt;/tt&amp;gt; - Yes and No buttons&lt;br /&gt;
* &amp;lt;tt&amp;gt;5, MB_RETRYCANCEL&amp;lt;/tt&amp;gt; - Retry and Cancel buttons&lt;br /&gt;
&lt;br /&gt;
To set a button as the default button, add one of the following values to the parameter value from the list of button selections. For example, to create Yes, No and Cancel buttons (value 3) where Cancel is the default (value 512), the parameter value is 3 + 512 = 515. The expression &amp;lt;tt&amp;gt;MB_YESNOCANCEL + MB_DEFBUTTON3&amp;lt;/tt&amp;gt; is harder to write, but easier to understand.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;0, MB_DEFBUTTON1&amp;lt;/tt&amp;gt; - First button is default value&lt;br /&gt;
* &amp;lt;tt&amp;gt;256, MB_DEFBUTTON2&amp;lt;/tt&amp;gt; - Second button is default value &lt;br /&gt;
* &amp;lt;tt&amp;gt;512, MB_DEFBUTTON3&amp;lt;/tt&amp;gt; - Third button is default value&lt;br /&gt;
&lt;br /&gt;
Finally, the following information symbols are available and can also be displayed by adding the relevant parameter values: &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;16, MB_ICONSTOP&amp;lt;/tt&amp;gt; - Stop sign&lt;br /&gt;
* &amp;lt;tt&amp;gt;32, MB_ICONQUESTION&amp;lt;/tt&amp;gt; - Question mark &lt;br /&gt;
* &amp;lt;tt&amp;gt;48, MB_ICONEXCLAMATION&amp;lt;/tt&amp;gt; - Exclamation point&lt;br /&gt;
* &amp;lt;tt&amp;gt;64, MB_ICONINFORMATION&amp;lt;/tt&amp;gt; - Tip icon&lt;br /&gt;
&lt;br /&gt;
The following call displays an information box with the Yes and No buttons (value 4), of which the second button (No) is set as the default value (value 256) and which also receives a question mark (value 32), 4+256+32=292.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MsgBox &amp;quot;Do you want to continue?&amp;quot;,  292&lt;br /&gt;
' or,&lt;br /&gt;
MsgBox &amp;quot;Do you want to continue?&amp;quot;, MB_YESNO + MB_DEFBUTTON2 + MB_ICONQUESTION&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Image:MsgBox292.png|300px|none|thumb|Display of the Message Box]]&lt;br /&gt;
&lt;br /&gt;
If an information box contains several buttons, then a return value should be queried to determine which button has been pressed. The following return values are available in this instance:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;1, IDOK&amp;lt;/tt&amp;gt; - Ok &lt;br /&gt;
* &amp;lt;tt&amp;gt;2, IDCANCEL&amp;lt;/tt&amp;gt; - Cancel&lt;br /&gt;
* &amp;lt;tt&amp;gt;3, IDABORT&amp;lt;/tt&amp;gt; - Abort&lt;br /&gt;
* &amp;lt;tt&amp;gt;4, IDRETRY&amp;lt;/tt&amp;gt; - Retry&lt;br /&gt;
* &amp;lt;tt&amp;gt;5&amp;lt;/tt&amp;gt; - Ignore&lt;br /&gt;
* &amp;lt;tt&amp;gt;6, IDYES&amp;lt;/tt&amp;gt; - Yes&lt;br /&gt;
* &amp;lt;tt&amp;gt;7, IDNO&amp;lt;/tt&amp;gt; - No &lt;br /&gt;
&lt;br /&gt;
In the previous example, checking the return values could be as follows: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim iBox as Integer&lt;br /&gt;
iBox = MB_YESNO + MB_DEFBUTTON2 + MB_ICONQUESTION&lt;br /&gt;
If MsgBox (&amp;quot;Do you want to continue?&amp;quot;, iBox) = IDYES Then&lt;br /&gt;
' or,&lt;br /&gt;
If MsgBox (&amp;quot;Do you want to continue?&amp;quot;,  292) = 6 Then&lt;br /&gt;
  ' Yes button pressed&lt;br /&gt;
Else&lt;br /&gt;
  ' No button pressed&lt;br /&gt;
End IF&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition to the information text and the parameter for arranging the information box, &amp;lt;tt&amp;gt;MsgBox&amp;lt;/tt&amp;gt; also permits a third parameter, which defines the text for the box title:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MsgBox &amp;quot;Do you want to continue?&amp;quot;,  292, &amp;quot;Box Title&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no box title is specified, the default is “soffice”.&lt;br /&gt;
&lt;br /&gt;
== Input Box For Querying Simple Strings ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; function queries simple strings from the user. It is therefore a simple alternative to configuring dialogs. &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; receives three standard parameters:&lt;br /&gt;
&lt;br /&gt;
* An information text.&lt;br /&gt;
* A box title.&lt;br /&gt;
* A default value which can be added within the input area.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
InputVal = InputBox(&amp;quot;Please enter value:&amp;quot;, &amp;quot;Test&amp;quot;, &amp;quot;default value&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Image:InputBoxTest.png|600px|none|thumb|Display of the Input Box]]&lt;br /&gt;
&lt;br /&gt;
* The dimensions of the &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; window cannot be changed.&lt;br /&gt;
* If the user clicks the OK button, the &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; returns the string typed by the user (or the default string if it was not changed).&lt;br /&gt;
* If the user clicks the Cancel button or closes the window, the &amp;lt;tt&amp;gt;InputBox&amp;lt;/tt&amp;gt; returns an empty string.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{PDL1}}&lt;/div&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
</feed>