[Libreoffice-commits] help.git: 2 commits - AllLangHelp_sbasic.mk source/auxiliary source/text

Olivier Hallot olivier.hallot at libreoffice.org
Mon Jul 24 11:20:52 UTC 2017


 AllLangHelp_sbasic.mk                          |    2 
 source/auxiliary/sbasic.tree                   |    2 
 source/text/sbasic/shared/03140010.xhp         |    6 +-
 source/text/sbasic/shared/03140011.xhp         |   72 ++++++++++++++++++++++++
 source/text/sbasic/shared/03140012.xhp         |   74 +++++++++++++++++++++++++
 source/text/sbasic/shared/special_vba_func.xhp |   13 ----
 6 files changed, 155 insertions(+), 14 deletions(-)

New commits:
commit aef2d0a3117abf45df98b11342799097ec36d796
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Mon Jul 24 01:48:32 2017 -0300

    tdf#108680 Help page for VBA function SYD
    
    Change-Id: Icec5d785a73b31313aaacd86252cae9cc9013043
    Reviewed-on: https://gerrit.libreoffice.org/40354
    Reviewed-by: Olivier Hallot <olivier.hallot at edx.srv.br>
    Tested-by: Olivier Hallot <olivier.hallot at edx.srv.br>

diff --git a/AllLangHelp_sbasic.mk b/AllLangHelp_sbasic.mk
index 10f5ad4e9..f1c388e8e 100644
--- a/AllLangHelp_sbasic.mk
+++ b/AllLangHelp_sbasic.mk
@@ -336,6 +336,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sbasic,\
     helpcontent2/source/text/sbasic/shared/03140009 \
     helpcontent2/source/text/sbasic/shared/03140010 \
     helpcontent2/source/text/sbasic/shared/03140011 \
+    helpcontent2/source/text/sbasic/shared/03140012 \
     helpcontent2/source/text/sbasic/shared/05060700 \
     helpcontent2/source/text/sbasic/shared/code-stubs \
     helpcontent2/source/text/sbasic/shared/keys \
diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree
index ae661528e..a0b31e2f8 100644
--- a/source/auxiliary/sbasic.tree
+++ b/source/auxiliary/sbasic.tree
@@ -246,6 +246,7 @@
 <topic id="sbasic/text/sbasic/shared/03120202.xhp">String Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03090409.xhp">Sub Statement [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03090410.xhp">Switch Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03140012.xhp">SYD Function [Runtime - VBA]</topic>
 <topic id="sbasic/text/sbasic/shared/03080104.xhp">Tan Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03030205.xhp">TimeSerial Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03030206.xhp">TimeValue Function [Runtime]</topic>
diff --git a/source/text/sbasic/shared/03140012.xhp b/source/text/sbasic/shared/03140012.xhp
new file mode 100644
index 000000000..a87685328
--- /dev/null
+++ b/source/text/sbasic/shared/03140012.xhp
@@ -0,0 +1,74 @@
+<?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="textsbasicshared03140012xml" indexer="include" status="PUBLISH">
+    <title id="tit" xml-lang="en-US">SYD Function [Runtime - VBA]</title>
+    <filename>/text/sbasic/shared/03140012.xhp</filename>
+  </topic>
+</meta>
+
+<body>
+
+
+<section id="syd">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3150499">
+  <bookmark_value>SYD function</bookmark_value>
+</bookmark>
+
+
+<paragraph id="hd_id3150499" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03140012.xhp" name="SYD Function [Runtime - VBA]">SYD Function [Runtime - VBA]</link></paragraph>
+<paragraph id="par_id3151384" role="paragraph" xml-lang="en-US">Returns the arithmetic-declining depreciation rate.</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">SYD (Cost as Double, Salvage as Double, Life as Double, Period as Double)</paragraph>
+</bascode>
+<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
+<paragraph id="par_id3150669" role="paragraph" localize="false" xml-lang="en-US">Double</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id240720170117391741" role="paragraph" xml-lang="en-US"><emph>Cost</emph> is the initial cost of an asset.</paragraph>
+<paragraph id="par_id24072017011739895" role="paragraph" xml-lang="en-US"><emph>Salvage</emph> is the value of an asset at the end of the depreciation.</paragraph>
+<paragraph id="par_id240720170117395610" role="paragraph" xml-lang="en-US"><emph>Life </emph>is the depreciation period determining the number of periods in the depreciation of the asset.</paragraph>
+<paragraph id="par_id240720170144224764" role="paragraph" xml-lang="en-US"><emph>Period</emph> is the period number for which you want to calculate the depreciation.</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 id="par_id240720170144228912" role="bascode" localize="false" xml-lang="en-US">REM ***** BASIC *****</paragraph>
+<paragraph id="par_id240720170144225359" role="bascode" localize="false" xml-lang="en-US">Option VBASupport 1</paragraph>
+<paragraph id="par_id240720170144227525" role="bascode" localize="false" xml-lang="en-US">Sub ExampleSYD</paragraph>
+<paragraph id="par_id240720170144225698" role="bascode" xml-lang="en-US">REM Calculate the yearly depreciation of an asset that cost $10,000 at</paragraph>
+<paragraph id="par_id240720170144223210" role="bascode" xml-lang="en-US">REM the start of year 1, and has a salvage value of $1,000 after 5 years.</paragraph>
+<paragraph id="par_id240720170144227162" role="bascode" localize="false" xml-lang="en-US">Dim syd_yr1 As Double</paragraph>
+<paragraph id="par_id240720170144223139" role="bascode" xml-lang="en-US">REM Calculate the depreciation during year 1</paragraph>
+<paragraph id="par_id240720170144228546" role="bascode" localize="false" xml-lang="en-US">syd_yr1 = SYD( 10000, 1000, 5, 1 )</paragraph>
+<paragraph id="par_id240720170144221476" role="bascode" xml-lang="en-US">print syd_yr1 ' syd_yr1 is now equal to 3000.</paragraph>
+<paragraph id="par_id240720170144221275" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+</bascode>
+
+<section id="relatedtopics">
+<paragraph id="par_id061420170153186192" role="paragraph" xml-lang="en-US"><link href="text/scalc/01/04060103.xhp#bm_id3152978">SYD function in CALC</link></paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#VBA-Financial"/>
+</section>
+</body>
+
+</helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/special_vba_func.xhp b/source/text/sbasic/shared/special_vba_func.xhp
index 730b360bb..a1d6aa105 100644
--- a/source/text/sbasic/shared/special_vba_func.xhp
+++ b/source/text/sbasic/shared/special_vba_func.xhp
@@ -66,14 +66,7 @@
 <embed href="text/sbasic/shared/03140009.xhp#pv"/>
 <embed href="text/sbasic/shared/03140010.xhp#rate"/>
 <embed href="text/sbasic/shared/03140011.xhp#sln"/>
-
-<list type="unordered">
-  <listitem>
-    <paragraph id="par_id051820170335294432" role="paragraph" localize="false" xml-lang="en-US">SYD</paragraph>
-  </listitem></list>
-<bookmark xml-lang="en-US" branch="index" id="bm_id051920170357347041">
-  <bookmark_value>VBA Functions;Date and Time Functions</bookmark_value>
-</bookmark>
+<embed href="text/sbasic/shared/03140012.xhp#syd"/>
 
 
 <paragraph id="par_id051820170356005357" role="heading" level="2" xml-lang="en-US">Date and time functions</paragraph>
commit aee97f023acc483b46ed41af4f7fabd796e8b4f0
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Mon Jul 24 01:30:46 2017 -0300

    tdf#108679 Help page for VBA function SLN
    
    Change-Id: Ida99588e30da477d8bc280492c5e90d52d24aee0
    Reviewed-on: https://gerrit.libreoffice.org/40353
    Reviewed-by: Olivier Hallot <olivier.hallot at edx.srv.br>
    Tested-by: Olivier Hallot <olivier.hallot at edx.srv.br>

diff --git a/AllLangHelp_sbasic.mk b/AllLangHelp_sbasic.mk
index d576d7aa4..10f5ad4e9 100644
--- a/AllLangHelp_sbasic.mk
+++ b/AllLangHelp_sbasic.mk
@@ -335,6 +335,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sbasic,\
     helpcontent2/source/text/sbasic/shared/03140008 \
     helpcontent2/source/text/sbasic/shared/03140009 \
     helpcontent2/source/text/sbasic/shared/03140010 \
+    helpcontent2/source/text/sbasic/shared/03140011 \
     helpcontent2/source/text/sbasic/shared/05060700 \
     helpcontent2/source/text/sbasic/shared/code-stubs \
     helpcontent2/source/text/sbasic/shared/keys \
diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree
index 26531c192..ae661528e 100644
--- a/source/auxiliary/sbasic.tree
+++ b/source/auxiliary/sbasic.tree
@@ -233,6 +233,7 @@
 <topic id="sbasic/text/sbasic/shared/03080701.xhp">Sgn Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03130500.xhp">Shell Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03080103.xhp">Sin Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03140011.xhp">SLN Function [Runtime - VBA]</topic>
 <topic id="sbasic/text/sbasic/shared/03120201.xhp">Space Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03120314.xhp">Split Function [Runtime]</topic>
 <topic id="sbasic/text/sbasic/shared/03080401.xhp">Sqr Function [Runtime]</topic>
diff --git a/source/text/sbasic/shared/03140010.xhp b/source/text/sbasic/shared/03140010.xhp
index 30767b726..a5663e175 100644
--- a/source/text/sbasic/shared/03140010.xhp
+++ b/source/text/sbasic/shared/03140010.xhp
@@ -40,7 +40,7 @@
 <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">Pmt( NPer as Double, Pmt as Double, PV as Double [FV as Variant], [Due as Variant], [Guess as Variant] )</paragraph>
+<paragraph id="par_id3143267" role="bascode" localize="false" xml-lang="en-US">Rate( NPer as Double, Pmt as Double, PV as Double [FV as Variant], [Due as Variant], [Guess as Variant] )</paragraph>
 </bascode>
 <embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
 <paragraph id="par_id3150669" role="paragraph" localize="false" xml-lang="en-US">Double</paragraph>
@@ -48,7 +48,7 @@
 <paragraph id="par_id061420170420248911" role="paragraph" xml-lang="en-US"><emph>NPer</emph> is the total number of periods, during which annuity is paid.</paragraph>
 <paragraph id="par_id061420170420246794" role="paragraph" xml-lang="en-US"><emph>Pmt</emph> is the regular payment made per period.</paragraph>
 <paragraph id="par_id061620170603217534" role="paragraph" xml-lang="en-US"><emph>PV</emph> is the present value of the loan / investment.</paragraph>
-<paragraph id="par_id061620170603217534" role="paragraph" xml-lang="en-US"><emph>FV</emph> (optional) is the future value of the loan / investment.</paragraph>
+<paragraph id="par_id061620171603217534" role="paragraph" xml-lang="en-US"><emph>FV</emph> (optional) is the future value of the loan / investment.</paragraph>
 <paragraph id="par_id061420170420241932" role="paragraph" xml-lang="en-US"><emph>Due</emph> (optional) defines whether the payment is due at the beginning or the end of a period.</paragraph>
 <paragraph id="par_id0614201704292615" role="paragraph" xml-lang="en-US">0 - the payment is due at the end of the period;</paragraph>
 <paragraph id="par_id061420170429263061" role="paragraph" xml-lang="en-US">1 - the payment is due at the beginning of the period.</paragraph>
@@ -74,4 +74,4 @@
 </section>
 </body>
 
-</helpdocument>
\ No newline at end of file
+</helpdocument>
diff --git a/source/text/sbasic/shared/03140011.xhp b/source/text/sbasic/shared/03140011.xhp
new file mode 100644
index 000000000..c69eb1554
--- /dev/null
+++ b/source/text/sbasic/shared/03140011.xhp
@@ -0,0 +1,72 @@
+<?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="textsbasicshared03140011xml" indexer="include" status="PUBLISH">
+    <title id="tit" xml-lang="en-US">SLN Function [Runtime - VBA]</title>
+    <filename>/text/sbasic/shared/03140011.xhp</filename>
+  </topic>
+</meta>
+
+<body>
+
+
+<section id="sln">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3150499">
+  <bookmark_value>SLN function</bookmark_value>
+</bookmark>
+
+
+<paragraph id="hd_id3150499" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03140011.xhp" name="SLN Function [Runtime - VBA]">SLN Function [Runtime - VBA]</link></paragraph>
+<paragraph id="par_id3151384" role="paragraph" xml-lang="en-US">Returns the straight-line depreciation of an asset for one period. The amount of the depreciation is constant during the depreciation period.</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">SLN (Cost as Double, Salvage as Double, Life as Double)</paragraph>
+</bascode>
+<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
+<paragraph id="par_id3150669" role="paragraph" localize="false" xml-lang="en-US">Double</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id240720170117391741" role="paragraph" xml-lang="en-US"><emph>Cost</emph> is the initial cost of an asset.</paragraph>
+<paragraph id="par_id24072017011739895" role="paragraph" xml-lang="en-US"><emph>Salvage</emph> is the value of an asset at the end of the depreciation.</paragraph>
+<paragraph id="par_id240720170117395610" role="paragraph" xml-lang="en-US"><emph>Life </emph>is the depreciation period determining the number of periods in the depreciation of the asset.</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 id="par_id24072017011739179" role="bascode" localize="false" xml-lang="en-US">REM ***** BASIC *****</paragraph>
+<paragraph id="par_id240720170117398470" role="bascode" localize="false" xml-lang="en-US">Option VBASupport 1</paragraph>
+<paragraph id="par_id240720170117391109" role="bascode" localize="false" xml-lang="en-US">Sub ExampleSLN</paragraph>
+<paragraph id="par_id24072017011739366" role="bascode" xml-lang="en-US">REM Calculate the yearly depreciation of an asset that cost $10,000 at</paragraph>
+<paragraph id="par_id240720170117398814" role="bascode" xml-lang="en-US">REM the start of year 1, and has a salvage value of $1,000 after 5 years.</paragraph>
+<paragraph id="par_id240720170117393993" role="bascode" localize="false" xml-lang="en-US">Dim y_dep As Double</paragraph>
+<paragraph id="par_id240720170117395151" role="bascode" localize="false" xml-lang="en-US">y_dep = SLN( 10000, 1000, 6 )</paragraph>
+<paragraph id="par_id240720170117391728" role="bascode" xml-lang="en-US">print y_dep ' returns 1500.</paragraph>
+<paragraph id="par_id240720170117394409" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+</bascode>
+
+<section id="relatedtopics">
+<paragraph id="par_id061420170153186192" role="paragraph" xml-lang="en-US"><link href="text/scalc/01/04060119.xhp#bm_id3148912">SLN function in CALC</link></paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#VBA-Financial"/>
+</section>
+</body>
+
+</helpdocument>
diff --git a/source/text/sbasic/shared/special_vba_func.xhp b/source/text/sbasic/shared/special_vba_func.xhp
index dd4998ba0..730b360bb 100644
--- a/source/text/sbasic/shared/special_vba_func.xhp
+++ b/source/text/sbasic/shared/special_vba_func.xhp
@@ -65,12 +65,10 @@
 <embed href="text/sbasic/shared/03140008.xhp#ppmt"/>
 <embed href="text/sbasic/shared/03140009.xhp#pv"/>
 <embed href="text/sbasic/shared/03140010.xhp#rate"/>
+<embed href="text/sbasic/shared/03140011.xhp#sln"/>
 
 <list type="unordered">
   <listitem>
-    <paragraph id="par_id051820170335295504" role="paragraph" localize="false" xml-lang="en-US">SLN</paragraph>
-  </listitem>
-  <listitem>
     <paragraph id="par_id051820170335294432" role="paragraph" localize="false" xml-lang="en-US">SYD</paragraph>
   </listitem></list>
 <bookmark xml-lang="en-US" branch="index" id="bm_id051920170357347041">


More information about the Libreoffice-commits mailing list