summaryrefslogtreecommitdiff
path: root/source/text/sbasic
diff options
context:
space:
mode:
authorPierre F <fpy@bger.ch>2024-08-03 10:34:30 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2024-08-30 16:45:43 +0200
commit759025310872d7c8ad6d360e15ec4af55e7012ac (patch)
tree7dae5c3a7ca551ae021fd8ad2372497794a9826d /source/text/sbasic
parent71c24af82c60bcbaf4a02bcdfa7a762bc0e3da92 (diff)
MsgBox not a Statement. tdf#162447
originally from https://ask.libreoffice.org/t/msgbox-statement-vs-function/108929 Change-Id: I62e871b878ec463e9d82a7506124a5c99de7ac28 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171415 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/sbasic')
-rw-r--r--source/text/sbasic/shared/03/sf_basic.xhp2
-rw-r--r--source/text/sbasic/shared/03010100.xhp1
-rw-r--r--source/text/sbasic/shared/03010101.xhp227
-rw-r--r--source/text/sbasic/shared/03010102.xhp247
-rw-r--r--source/text/sbasic/shared/03040000.xhp2
-rw-r--r--source/text/sbasic/shared/03103600.xhp2
6 files changed, 210 insertions, 271 deletions
diff --git a/source/text/sbasic/shared/03/sf_basic.xhp b/source/text/sbasic/shared/03/sf_basic.xhp
index bb4f814a7b..67c2fcc94a 100644
--- a/source/text/sbasic/shared/03/sf_basic.xhp
+++ b/source/text/sbasic/shared/03/sf_basic.xhp
@@ -594,7 +594,7 @@
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<paragraph role="paragraph" id="par_id71618922431508" localize="false"><input>bas.MsgBox(prompt: str, [buttons: int], [title: str])[: int]</input></paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
- <embed href="text/sbasic/shared/03010101.xhp#parameters"/>
+ <embed href="text/sbasic/shared/03010102.xhp#parameters"/>
<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
<paragraph role="paragraph" id="par_id711619082902143">An optional integer as detailed in above <literal>IDxx</literal> properties.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
diff --git a/source/text/sbasic/shared/03010100.xhp b/source/text/sbasic/shared/03010100.xhp
index bf15be4633..8fc93123bf 100644
--- a/source/text/sbasic/shared/03010100.xhp
+++ b/source/text/sbasic/shared/03010100.xhp
@@ -36,7 +36,6 @@
<h1 id="hd_id3151384"><link href="text/sbasic/shared/03010100.xhp">Display Functions</link></h1>
<paragraph role="paragraph" id="par_id3149346" xml-lang="en-US">This section describes Runtime functions used to output information to the screen display.</paragraph>
</section>
- <embed href="text/sbasic/shared/03010101.xhp#msgbox"/>
<embed href="text/sbasic/shared/03010102.xhp#msgbox"/>
<embed href="text/sbasic/shared/03010103.xhp#print"/>
</body>
diff --git a/source/text/sbasic/shared/03010101.xhp b/source/text/sbasic/shared/03010101.xhp
deleted file mode 100644
index 8e5ae2946c..0000000000
--- a/source/text/sbasic/shared/03010101.xhp
+++ /dev/null
@@ -1,227 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<helpdocument version="1.0">
-<!--
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
--->
-
-<meta>
- <topic id="textsbasicshared03010101xml" indexer="include" status="PUBLISH">
- <title id="tit" xml-lang="en-US">MsgBox Statement</title>
- <filename>/text/sbasic/shared/03010101.xhp</filename>
- </topic>
-</meta>
-
-<body>
-<section id="msgbox">
-<bookmark xml-lang="en-US" branch="index" id="bm_id1807916">
- <bookmark_value>MsgBox statement</bookmark_value>
-</bookmark>
-
-<h1 id="hd_id3154927" xml-lang="en-US"><variable id="msgbox_h1"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement</link></variable></h1>
-<paragraph id="par_id3148947" role="paragraph" xml-lang="en-US">Displays a dialog box containing a message.</paragraph>
-</section>
-
-<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
-<bascode>
- <paragraph id="par_id3148664" role="bascode" localize="false">MsgBox prompt As String [,buttons = MB_OK [,title As String]]</paragraph>
- <paragraph role="bascode" id="bas_id551634909184049" localize="false">response = MsgBox( prompt As String [,buttons = MB_OK [,title As String]])</paragraph>
-</bascode>
-
-<section id="MsgBox_statement">
-<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-<section id="parameters">
-<paragraph id="par_id3148798" role="paragraph" xml-lang="en-US"> <emph>prompt</emph>: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).</paragraph>
-<paragraph id="par_id3150769" role="paragraph" xml-lang="en-US"> <emph>title</emph>: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.</paragraph>
-<paragraph id="par_id3147228" role="paragraph" xml-lang="en-US"> <emph>buttons</emph>: Any integer expression that specifies the dialog type, as well as the number and type of buttons to display, and the icon type. <emph>buttons</emph> represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:</paragraph>
-</section>
-
-<section id="MsgBox_constants">
-<table id="tbl_051220170220345412">
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241588881" role="tablehead" xml-lang="en-US">Named constant</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241585541" role="tablehead" xml-lang="en-US">Integer value</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241585124" role="tablehead" xml-lang="en-US">Definition</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241588348" role="tablecontent" localize="false" xml-lang="en-US">MB_OK</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241583191" role="tablecontent" localize="false" xml-lang="en-US">0</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3147397" role="paragraph" xml-lang="en-US">Display OK button only.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241583930" role="tablecontent" localize="false" xml-lang="en-US">MB_OKCANCEL</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241598544" role="tablecontent" localize="false" xml-lang="en-US">1</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3145646" role="paragraph" xml-lang="en-US">Display OK and Cancel buttons.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241591470" role="tablecontent" localize="false" xml-lang="en-US">MB_ABORTRETRYIGNORE</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241592832" role="tablecontent" localize="false" xml-lang="en-US">2</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3149410" role="paragraph" xml-lang="en-US">Display Abort, Retry, and Ignore buttons.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241594311" role="tablecontent" localize="false" xml-lang="en-US">MB_YESNOCANCEL</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241594996" role="tablecontent" localize="false" xml-lang="en-US">3</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3151075" role="paragraph" xml-lang="en-US">Display Yes, No, and Cancel buttons.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241596937" role="tablecontent" localize="false" xml-lang="en-US">MB_YESNO</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241592706" role="tablecontent" localize="false" xml-lang="en-US">4</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3153878" role="paragraph" xml-lang="en-US">Display Yes and No buttons.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241591119" role="tablecontent" localize="false" xml-lang="en-US">MB_RETRYCANCEL</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241595093" role="tablecontent" localize="false" xml-lang="en-US">5</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3155601" role="paragraph" xml-lang="en-US">Display Retry and Cancel buttons.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id05122017024159933" role="tablecontent" localize="false" xml-lang="en-US">MB_ICONSTOP</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id05122017024159655" role="tablecontent" localize="false" xml-lang="en-US">16</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3150716" role="paragraph" xml-lang="en-US">Add the Stop icon to the dialog.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241591424" role="tablecontent" localize="false" xml-lang="en-US">MB_ICONQUESTION</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170241593191" role="tablecontent" localize="false" xml-lang="en-US">32</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3153837" role="paragraph" xml-lang="en-US">Add the Question icon to the dialog.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170241598357" role="tablecontent" localize="false" xml-lang="en-US">MB_ICONEXCLAMATION</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170242002870" role="tablecontent" localize="false" xml-lang="en-US">48</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3150751" role="paragraph" xml-lang="en-US">Add the Exclamation Point icon to the dialog.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170242001511" role="tablecontent" localize="false" xml-lang="en-US">MB_ICONINFORMATION</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170242008091" role="tablecontent" localize="false" xml-lang="en-US">64</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3146915" role="paragraph" xml-lang="en-US">Add the Information icon to the dialog.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170242003564" role="tablecontent" localize="false" xml-lang="en-US"> </paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170242001398" role="tablecontent" localize="false" xml-lang="en-US">128</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3145640" role="paragraph" xml-lang="en-US">First button in the dialog as default button.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170242007839" role="tablecontent" localize="false" xml-lang="en-US">MB_DEFBUTTON2</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170242005589" role="tablecontent" localize="false" xml-lang="en-US">256</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3153765" role="paragraph" xml-lang="en-US">Second button in the dialog as default button.</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph id="par_id051220170242005074" role="tablecontent" localize="false" xml-lang="en-US">MB_DEFBUTTON3</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id051220170242001655" role="tablecontent" localize="false" xml-lang="en-US">512</paragraph>
- </tablecell>
- <tablecell>
- <paragraph id="par_id3153715" role="paragraph" xml-lang="en-US">Third button in the dialog as default button.</paragraph>
- </tablecell>
- </tablerow>
-</table>
-</section>
-</section>
-
-<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
-<embed href="text/sbasic/shared/00000003.xhp#err5"/>
-
-<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
-<bascode>
-<paragraph id="par_idm1340869408" role="bascode" localize="false" xml-lang="en-US">Sub ExampleMsgBox</paragraph>
-<paragraph id="par_id3150327" role="bascode" xml-lang="en-US"> Const sText1 = "An unexpected error occurred."</paragraph>
-<paragraph id="par_id3146912" role="bascode" xml-lang="en-US"> Const sText2 = "The program execution will continue, however."</paragraph>
-<paragraph id="par_id3154757" role="bascode" xml-lang="en-US"> Const sText3 = "Error"</paragraph>
-<paragraph id="par_idm1340862944" role="bascode" localize="false" xml-lang="en-US"> MsgBox(sText1 + Chr(13) + sText2,16,sText3)</paragraph>
-<paragraph id="par_id051220170312352138" role="bascode" localize="false" xml-lang="en-US"> MsgBox(sText1 + Chr(13) + sText2, MB_ICONSTOP, sText3)</paragraph>
-<paragraph id="par_idm1340861680" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
-</bascode>
-</body>
-
-</helpdocument>
diff --git a/source/text/sbasic/shared/03010102.xhp b/source/text/sbasic/shared/03010102.xhp
index b6e110aeb2..9fef9f1a1d 100644
--- a/source/text/sbasic/shared/03010102.xhp
+++ b/source/text/sbasic/shared/03010102.xhp
@@ -20,22 +20,20 @@
<meta>
<topic id="textsbasicshared03010102xml" indexer="include" status="PUBLISH">
- <title id="tit" xml-lang="en-US">MsgBox Function</title>
+ <title id="tit">MsgBox Function</title>
<filename>/text/sbasic/shared/03010102.xhp</filename>
</topic>
</meta>
<body>
-
<section id="msgbox">
-<bookmark xml-lang="en-US" branch="index" id="bm_id3153379">
+<bookmark branch="index" id="bm_id3153379">
<bookmark_value>MsgBox function</bookmark_value>
</bookmark>
-
-<h1 id="hd_id3153379"><link href="text/sbasic/shared/03010102.xhp">MsgBox Function</link></h1>
-<paragraph id="par_id3145171" role="paragraph" xml-lang="en-US">Displays a dialog box containing a message and returns a value.</paragraph>
+<h1 id="hd_id3153379"><variable id="msgbox_h1"><link href="text/sbasic/shared/03010102.xhp">MsgBox Function</link></variable></h1>
+<paragraph id="par_id3145171" role="paragraph">Displays a dialog box containing a message and returns a value.</paragraph>
</section>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
@@ -43,114 +41,283 @@
<paragraph id="par_id3148664" role="bascode" localize="false">MsgBox (Prompt As String [,Buttons = MB_OK [,Title As String]]) As Integer</paragraph>
</bascode>
-<embed href="text/sbasic/shared/03010101.xhp#MsgBox_statement"/>
+<section id="MsgBox_function">
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<section id="parameters">
+<paragraph id="par_id3148798" role="paragraph"> <emph>prompt</emph>: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).</paragraph>
+<paragraph id="par_id3150769" role="paragraph"> <emph>title</emph>: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.</paragraph>
+<paragraph id="par_id3147228" role="paragraph"> <emph>buttons</emph>: Any integer expression that specifies the dialog type, as well as the number and type of buttons to display, and the icon type. <emph>buttons</emph> represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:</paragraph>
+</section>
+
+
+<section id="MsgBox_constants">
+<table id="tbl_051220170220345412">
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241588881" role="tablehead">Named constant</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241585541" role="tablehead">Integer value</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241585124" role="tablehead">Definition</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241588348" role="tablecontent" localize="false">MB_OK</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241583191" role="tablecontent" localize="false">0</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3147397" role="paragraph">Display OK button only.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241583930" role="tablecontent" localize="false">MB_OKCANCEL</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241598544" role="tablecontent" localize="false">1</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3145646" role="paragraph">Display OK and Cancel buttons.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241591470" role="tablecontent" localize="false">MB_ABORTRETRYIGNORE</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241592832" role="tablecontent" localize="false">2</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3149410" role="paragraph">Display Abort, Retry, and Ignore buttons.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241594311" role="tablecontent" localize="false">MB_YESNOCANCEL</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241594996" role="tablecontent" localize="false">3</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3151075" role="paragraph">Display Yes, No, and Cancel buttons.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241596937" role="tablecontent" localize="false">MB_YESNO</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241592706" role="tablecontent" localize="false">4</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3153878" role="paragraph">Display Yes and No buttons.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241591119" role="tablecontent" localize="false">MB_RETRYCANCEL</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241595093" role="tablecontent" localize="false">5</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3155601" role="paragraph">Display Retry and Cancel buttons.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id05122017024159933" role="tablecontent" localize="false">MB_ICONSTOP</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id05122017024159655" role="tablecontent" localize="false">16</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3150716" role="paragraph">Add the Stop icon to the dialog.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241591424" role="tablecontent" localize="false">MB_ICONQUESTION</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170241593191" role="tablecontent" localize="false">32</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3153837" role="paragraph">Add the Question icon to the dialog.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170241598357" role="tablecontent" localize="false">MB_ICONEXCLAMATION</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170242002870" role="tablecontent" localize="false">48</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3150751" role="paragraph">Add the Exclamation Point icon to the dialog.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170242001511" role="tablecontent" localize="false">MB_ICONINFORMATION</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170242008091" role="tablecontent" localize="false">64</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3146915" role="paragraph">Add the Information icon to the dialog.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170242003564" role="tablecontent" localize="false"> </paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170242001398" role="tablecontent" localize="false">128</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3145640" role="paragraph">First button in the dialog as default button.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170242007839" role="tablecontent" localize="false">MB_DEFBUTTON2</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170242005589" role="tablecontent" localize="false">256</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3153765" role="paragraph">Second button in the dialog as default button.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id051220170242005074" role="tablecontent" localize="false">MB_DEFBUTTON3</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id051220170242001655" role="tablecontent" localize="false">512</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id3153715" role="paragraph">Third button in the dialog as default button.</paragraph>
+ </tablecell>
+ </tablerow>
+</table>
+</section>
+
<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
-<paragraph id="par_id3146985" role="paragraph" xml-lang="en-US">Integer</paragraph>
+<paragraph id="par_id3146985" role="paragraph">Integer</paragraph>
+
<table id="tbl_051220170325378371">
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330379805" role="tablehead" xml-lang="en-US">Named constant</paragraph>
+ <paragraph id="par_id051220170330379805" role="tablehead">Named constant</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330387072" role="tablehead" xml-lang="en-US">Integer value</paragraph>
+ <paragraph id="par_id051220170330387072" role="tablehead">Integer value</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330387973" role="tablehead" xml-lang="en-US">Definition</paragraph>
+ <paragraph id="par_id051220170330387973" role="tablehead">Definition</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330388585" role="tablecontent" localize="false" xml-lang="en-US">IDOK</paragraph>
+ <paragraph id="par_id051220170330388585" role="tablecontent" localize="false">IDOK</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330389516" role="tablecontent" localize="false" xml-lang="en-US">1</paragraph>
+ <paragraph id="par_id051220170330389516" role="tablecontent" localize="false">1</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3145230" role="paragraph" xml-lang="en-US"> OK</paragraph>
+ <paragraph id="par_id3145230" role="paragraph"> OK</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330381793" role="tablecontent" localize="false" xml-lang="en-US">IDCANCEL</paragraph>
+ <paragraph id="par_id051220170330381793" role="tablecontent" localize="false">IDCANCEL</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330388083" role="tablecontent" localize="false" xml-lang="en-US">2</paragraph>
+ <paragraph id="par_id051220170330388083" role="tablecontent" localize="false">2</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3149567" role="paragraph" xml-lang="en-US"> Cancel</paragraph>
+ <paragraph id="par_id3149567" role="paragraph"> Cancel</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330387992" role="tablecontent" localize="false" xml-lang="en-US">IDABORT</paragraph>
+ <paragraph id="par_id051220170330387992" role="tablecontent" localize="false">IDABORT</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id05122017033038256" role="tablecontent" localize="false" xml-lang="en-US">3</paragraph>
+ <paragraph id="par_id05122017033038256" role="tablecontent" localize="false">3</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id4056825" role="paragraph" xml-lang="en-US"> Abort</paragraph>
+ <paragraph id="par_id4056825" role="paragraph"> Abort</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330383300" role="tablecontent" localize="false" xml-lang="en-US">IDRETRY</paragraph>
+ <paragraph id="par_id051220170330383300" role="tablecontent" localize="false">IDRETRY</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330382200" role="tablecontent" localize="false" xml-lang="en-US">4</paragraph>
+ <paragraph id="par_id051220170330382200" role="tablecontent" localize="false">4</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3155335" role="paragraph" xml-lang="en-US"> Retry</paragraph>
+ <paragraph id="par_id3155335" role="paragraph"> Retry</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id0512201703303859" role="tablecontent" localize="false" xml-lang="en-US">IDIGNORE</paragraph>
+ <paragraph id="par_id0512201703303859" role="tablecontent" localize="false">IDIGNORE</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330388644" role="tablecontent" localize="false" xml-lang="en-US">5</paragraph>
+ <paragraph id="par_id051220170330388644" role="tablecontent" localize="false">5</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3146918" role="paragraph" xml-lang="en-US"> Ignore</paragraph>
+ <paragraph id="par_id3146918" role="paragraph"> Ignore</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330386652" role="tablecontent" localize="false" xml-lang="en-US">IDYES</paragraph>
+ <paragraph id="par_id051220170330386652" role="tablecontent" localize="false">IDYES</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330387211" role="tablecontent" localize="false" xml-lang="en-US">6</paragraph>
+ <paragraph id="par_id051220170330387211" role="tablecontent" localize="false">6</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3155961" role="paragraph" xml-lang="en-US"> Yes</paragraph>
+ <paragraph id="par_id3155961" role="paragraph"> Yes</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id051220170330381656" role="tablecontent" localize="false" xml-lang="en-US">IDNO</paragraph>
+ <paragraph id="par_id051220170330381656" role="tablecontent" localize="false">IDNO</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id051220170330383819" role="tablecontent" localize="false" xml-lang="en-US">7</paragraph>
+ <paragraph id="par_id051220170330383819" role="tablecontent" localize="false">7</paragraph>
</tablecell>
<tablecell>
- <paragraph id="par_id3148488" role="paragraph" xml-lang="en-US"> No</paragraph>
+ <paragraph id="par_id3148488" role="paragraph"> No</paragraph>
</tablecell>
</tablerow>
</table>
+</section>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<h2 id="hd_id3150090">Example:</h2>
<bascode>
-<paragraph id="par_idm1340837456" role="bascode" localize="false" xml-lang="en-US">Sub ExampleMsgBox</paragraph>
-<paragraph id="par_idm1340836224" role="bascode" localize="false" xml-lang="en-US">Dim sVar As Integer</paragraph>
-<paragraph id="par_id3151278" role="bascode" xml-lang="en-US"> sVar = MsgBox("Las Vegas")</paragraph>
-<paragraph id="par_id3149034" role="bascode" xml-lang="en-US"> sVar = MsgBox("Las Vegas",1)</paragraph>
-<paragraph id="par_id3166424" role="bascode" xml-lang="en-US"> sVar = MsgBox( "Las Vegas",256 + 16 + 2,"Dialog title")</paragraph>
-<paragraph id="par_id051220170242005479" role="bascode" xml-lang="en-US"> sVar = MsgBox("Las Vegas", MB_DEFBUTTON2 + MB_ICONSTOP + MB_ABORTRETRYIGNORE, "Dialog title")</paragraph>
-<paragraph id="par_idm1340829728" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1340837456" role="bascode" localize="false">Sub ExampleMsgBox</paragraph>
+<paragraph id="par_idm1340836224" role="bascode" localize="false">Dim sVar As Integer</paragraph>
+<paragraph id="par_id3151278" role="bascode"> sVar = MsgBox("Las Vegas")</paragraph>
+<paragraph id="par_id3149034" role="bascode"> sVar = MsgBox("Las Vegas",1)</paragraph>
+<paragraph id="par_id3166424" role="bascode"> sVar = MsgBox( "Las Vegas",256 + 16 + 2,"Dialog title")</paragraph>
+<paragraph id="par_id051220170242005479" role="bascode"> sVar = MsgBox("Las Vegas", MB_DEFBUTTON2 + MB_ICONSTOP + MB_ABORTRETRYIGNORE, "Dialog title")</paragraph>
+<paragraph id="par_idm1340829728" role="bascode" localize="false">End Sub</paragraph>
</bascode>
</body>
-</helpdocument>
+</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03040000.xhp b/source/text/sbasic/shared/03040000.xhp
index 4f861e1573..fe310f41cc 100644
--- a/source/text/sbasic/shared/03040000.xhp
+++ b/source/text/sbasic/shared/03040000.xhp
@@ -209,7 +209,7 @@
</section>
<h2 id="hd_id31634909394554">MsgBox Named Constants</h2>
- <embed href="text/sbasic/shared/03010101.xhp#MsgBox_constants"/>
+ <embed href="text/sbasic/shared/03010102.xhp#MsgBox_constants"/>
<h2 id="hd_id881634911199058">GetAttr Named Constants</h2>
<embed href="text/sbasic/shared/03020409.xhp#GetAttr_constants"/>
diff --git a/source/text/sbasic/shared/03103600.xhp b/source/text/sbasic/shared/03103600.xhp
index 5cf06080d7..5d4d5ac45d 100644
--- a/source/text/sbasic/shared/03103600.xhp
+++ b/source/text/sbasic/shared/03103600.xhp
@@ -198,7 +198,7 @@
<section id="relatedtopics">
<embed href="text/sbasic/shared/03100700.xhp#const_h1"/>
<embed href="text/sbasic/shared/03102100.xhp#Dimh1"/>
- <embed href="text/sbasic/shared/03010101.xhp#msgbox_h1"/>
+ <embed href="text/sbasic/shared/03010102.xhp#msgbox_h1"/>
</section>
</body>