summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03010101.xhp
diff options
context:
space:
mode:
authorAlain Romedenne <alain.romedenne@libreoffice.org>2021-04-13 11:59:28 +0200
committerAlain Romedenne <alain.romedenne@libreoffice.org>2021-04-14 09:34:31 +0200
commita26e51cc4e5af7eae340fcf20e31e991239def2d (patch)
tree569bf62ede708b5610e93678255a79fd42f39a16 /source/text/sbasic/shared/03010101.xhp
parent7f3528e4c87fb7bea49c715733abb041d4e0bd52 (diff)
tdf#141474 MsgBox function signature
Change-Id: I4a9a49a3af3379f96ae95c19135a44e7ae5fd29a Reviewed-on: https://gerrit.libreoffice.org/c/help/+/113998 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/sbasic/shared/03010101.xhp')
-rw-r--r--source/text/sbasic/shared/03010101.xhp21
1 files changed, 10 insertions, 11 deletions
diff --git a/source/text/sbasic/shared/03010101.xhp b/source/text/sbasic/shared/03010101.xhp
index 0959768442..c87987c709 100644
--- a/source/text/sbasic/shared/03010101.xhp
+++ b/source/text/sbasic/shared/03010101.xhp
@@ -26,27 +26,25 @@
</meta>
<body>
-
-
<section id="msgbox">
<bookmark xml-lang="en-US" branch="index" id="bm_id1807916">
<bookmark_value>MsgBox statement</bookmark_value>
</bookmark>
-
-<paragraph id="hd_id3154927" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement</link></paragraph>
+<h1 id="hd_id3154927" xml-lang="en-US"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement</link></h1>
<paragraph id="par_id3148947" role="paragraph" xml-lang="en-US">Displays a dialog box containing a message.</paragraph>
</section>
-<paragraph id="hd_id3153897" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
-<paragraph id="par_id3148664" role="bascode" xml-lang="en-US">MsgBox Text As String [,Type As Integer [,Dialogtitle As String]] (As Statement) or MsgBox (Text As String [,Type As Integer [,Dialogtitle As String]]) (As Function)</paragraph>
+<paragraph id="par_id3148664" role="bascode" localize="false">MsgBox Prompt As String [,Buttons = MB_OK [,Title As String]]</paragraph>
</bascode>
-<paragraph id="hd_id3153361" role="heading" level="2" xml-lang="en-US">Parameter:</paragraph>
-<paragraph id="par_id3148798" role="paragraph" xml-lang="en-US"> <emph>Text</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>DialogTitle</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>Type</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>Type</emph> represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:</paragraph>
+<section id="MsgBox_statement">
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<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>
<table id="tbl_051220170220345412">
<tablerow>
@@ -204,11 +202,12 @@
</tablecell>
</tablerow>
</table>
+</section>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
-<paragraph id="hd_id3150715" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
+<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>