diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-03 18:20:05 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-06 13:24:22 +0100 |
commit | c2c6256141838e757674882647cd91e8ee8026c6 (patch) | |
tree | 647cbabed855bb06b3a79adb79148c4a3431bfc4 | |
parent | cbb8898cd472519719eba62b5051c507f394e73b (diff) |
tdf#84675 Undocumented VBA function: MonthName
Change-Id: I3fa5e80dd94c281bdfd6e076f55e172c52be9ecb
Reviewed-on: https://gerrit.libreoffice.org/45757
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
(cherry picked from commit 9891e96d1d95c1921cba16c6339c15cf3613da0d)
Reviewed-on: https://gerrit.libreoffice.org/45945
-rw-r--r-- | AllLangHelp_sbasic.mk | 1 | ||||
-rw-r--r-- | source/auxiliary/sbasic.tree | 1 | ||||
-rw-r--r-- | source/text/sbasic/shared/03150002.xhp | 66 | ||||
-rw-r--r-- | source/text/sbasic/shared/special_vba_func.xhp | 1 |
4 files changed, 69 insertions, 0 deletions
diff --git a/AllLangHelp_sbasic.mk b/AllLangHelp_sbasic.mk index 5f8df59a0a..2ffab07cf7 100644 --- a/AllLangHelp_sbasic.mk +++ b/AllLangHelp_sbasic.mk @@ -340,6 +340,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sbasic,\ helpcontent2/source/text/sbasic/shared/03140012 \ helpcontent2/source/text/sbasic/shared/03150000 \ helpcontent2/source/text/sbasic/shared/03150001 \ + helpcontent2/source/text/sbasic/shared/03150002 \ helpcontent2/source/text/sbasic/shared/03160000 \ helpcontent2/source/text/sbasic/shared/03170000 \ helpcontent2/source/text/sbasic/shared/05060700 \ diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree index b43a18c896..6a3e8aeb93 100644 --- a/source/auxiliary/sbasic.tree +++ b/source/auxiliary/sbasic.tree @@ -200,6 +200,7 @@ <topic id="sbasic/text/sbasic/shared/03020411.xhp">MkDir Statement [Runtime]</topic> <topic id="sbasic/text/sbasic/shared/03070600.xhp">Mod-Operator [Runtime]</topic> <topic id="sbasic/text/sbasic/shared/03030104.xhp">Month Function [Runtime]</topic> +<topic id="sbasic/text/sbasic/shared/03150002.xhp">MonthName Function [Runtime - VBA]</topic> <topic id="sbasic/text/sbasic/shared/03010102.xhp">MsgBox Function [Runtime]</topic> <topic id="sbasic/text/sbasic/shared/03010101.xhp">MsgBox Statement [Runtime]</topic> <topic id="sbasic/text/sbasic/shared/03020412.xhp">Name Statement [Runtime]</topic> diff --git a/source/text/sbasic/shared/03150002.xhp b/source/text/sbasic/shared/03150002.xhp new file mode 100644 index 0000000000..e03cf9b2ed --- /dev/null +++ b/source/text/sbasic/shared/03150002.xhp @@ -0,0 +1,66 @@ +<?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="textsbasicshared03150002xml" indexer="include" status="PUBLISH"> + <title id="tit" xml-lang="en-US">MonthName Function [Runtime - VBA]</title> + <filename>/text/sbasic/shared/03150002.xhp</filename> + </topic> + </meta> + + <body> + <section id="MonthName"> + <bookmark xml-lang="en-US" branch="index" id="bm_id3150499"> + <bookmark_value>MonthName function</bookmark_value> + </bookmark> + + <paragraph id="hd_id3150499" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03150002.xhp" name="MonthName Function [Runtime - VBA]">MonthName Function [Runtime - VBA]</link></paragraph> + <paragraph id="par_id3151384" role="paragraph" xml-lang="en-US">The MonthName function returns the localized month name of a specified month number.</paragraph> + </section> + <embed href="text/sbasic/shared/00000003.xhp#vbasupport"/> + <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> + <bascode> + <paragraph id="par_id3143267" role="bascode" localize="false" xml-lang="en-US">MonthName(Month as Integer [,Abbreviate as Boolean])</paragraph> + </bascode> + <embed href="text/sbasic/shared/00000003.xhp#functvalue"/> + <paragraph id="par_id3150669" role="paragraph" localize="false" xml-lang="en-US">String</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> + <paragraph id="par_id240720170117391741" role="paragraph" xml-lang="en-US"><emph>Month</emph>: Value from 1 to 12, January to December, whose localized month name need to be returned.</paragraph> + <paragraph id="par_id24072017011739895" role="paragraph" xml-lang="en-US"><emph>Abbreviate</emph>: Optional. A Boolean value that indicates if the month name is to be abbreviated.</paragraph> + + <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 role="bascode" id="par_id731512155686932" xml-lang="en-US" localize="false">REM ***** BASIC *****</paragraph> + <paragraph role="bascode" id="par_id141512155672881" xml-lang="en-US" localize="false">Option VBASupport 1</paragraph> + <paragraph role="bascode" id="par_id741512155700026" xml-lang="en-US" localize="false">Sub Example_MonthName</paragraph> + <paragraph role="bascode" id="par_id321512155714044" xml-lang="en-US" localize="false"> Dim mBirthday as Integer</paragraph> + <paragraph role="bascode" id="par_id1001512155732764" xml-lang="en-US" localize="false"> mBirthday = 1</paragraph> + <paragraph role="bascode" id="par_id421512155749762" xml-lang="en-US" localize="false"> print mBirthday &" "& MonthName(mBirthday,False)</paragraph> + <paragraph role="bascode" id="par_id891512155760344" xml-lang="en-US" localize="false">End Sub</paragraph> + </bascode> + + <section id="relatedtopics"> + <embed href="text/sbasic/shared/00000003.xhp#VBATimeAndDate"/> + </section> +</body> + +</helpdocument> diff --git a/source/text/sbasic/shared/special_vba_func.xhp b/source/text/sbasic/shared/special_vba_func.xhp index 42bba51b60..003f3c5eb9 100644 --- a/source/text/sbasic/shared/special_vba_func.xhp +++ b/source/text/sbasic/shared/special_vba_func.xhp @@ -77,6 +77,7 @@ </bookmark> <paragraph id="par_id051820170356005357" role="heading" level="2" xml-lang="en-US">Date and time functions</paragraph> <embed href="text/sbasic/shared/03150000.xhp#FormatDateTime"/> +<embed href="text/sbasic/shared/03150002.xhp#MonthName"/> <embed href="text/sbasic/shared/03150001.xhp#WeekdayName"/> </section> |