diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/shared/03102900.xhp | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/source/text/sbasic/shared/03102900.xhp b/source/text/sbasic/shared/03102900.xhp index e237b38007..957e589c45 100644 --- a/source/text/sbasic/shared/03102900.xhp +++ b/source/text/sbasic/shared/03102900.xhp @@ -27,47 +27,44 @@ <body> - <section id="lbound"> <bookmark xml-lang="en-US" branch="index" id="bm_id3156027"> <bookmark_value>LBound function</bookmark_value> </bookmark> - -<paragraph id="hd_id3156027" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03102900.xhp" name="LBound Function">LBound Function</link></paragraph> +<h1 id="hd_id3156027"><link href="text/sbasic/shared/03102900.xhp" name="LBound Function">LBound Function</link></h1> <paragraph id="par_id3147226" role="paragraph" xml-lang="en-US">Returns the lower boundary of an array.</paragraph> </section> -<paragraph id="hd_id3148538" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> +<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> <bascode> -<paragraph id="par_id3150503" role="bascode" xml-lang="en-US">LBound (ArrayName [, Dimension])</paragraph> +<paragraph id="par_id3150503" role="code" xml-lang="en-US">LBound (ArrayName [, Dimension])</paragraph> </bascode> -<paragraph id="hd_id3150984" role="heading" level="2" xml-lang="en-US">Return value:</paragraph> -<paragraph id="par_id3153126" role="paragraph" xml-lang="en-US">Long</paragraph> +<embed href="text/sbasic/shared/00000003.xhp#functvalue"/> +<paragraph id="par_id3153126" localize="false" role="paragraph" xml-lang="en-US">Long</paragraph> -<paragraph id="hd_id3144500" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> +<embed href="text/sbasic/shared/00000003.xhp#functparameters"/> <paragraph id="par_id3145069" role="paragraph" xml-lang="en-US"> <emph>ArrayName:</emph> Name of the array for which you want to return the upper (<emph>Ubound</emph>) or the lower (<emph>LBound</emph>) boundary of the array dimension.</paragraph> <paragraph id="par_id3149457" role="paragraph" xml-lang="en-US"> <emph>[Dimension]:</emph> Integer that specifies which dimension to return the upper (<emph>Ubound</emph>) or the lower (<emph>LBound</emph>) boundary for. If a value is not specified, the first dimension is assumed.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> <embed href="text/sbasic/shared/00000003.xhp#err9"/> -<paragraph id="hd_id3145171" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/00000003.xhp#functexample"/> <bascode> -<paragraph id="par_idm1206770608" role="bascode" xml-lang="en-US">Sub VectorBounds</paragraph> +<paragraph id="par_idm1206770608" role="bascode" localize="false" xml-lang="en-US">Sub VectorBounds</paragraph> <paragraph id="par_idm1206769504" role="bascode" localize="false" xml-lang="en-US"> Dim v(10 To 20) As String</paragraph> -<paragraph id="par_idm1206768352" role="bascode" xml-lang="en-US"> Print LBound(v()) ' returns 10</paragraph> -<paragraph id="par_idm1206767200" role="bascode" localize="false" xml-lang="en-US"> Print UBound(v) ' returns 20</paragraph> -<paragraph id="par_idm1206766048" role="bascode" xml-lang="en-US">End Sub ' VectorBounds</paragraph> +<paragraph id="par_idm1206768352" role="bascode" xml-lang="en-US"> Print LBound(v()) ' returns 10</paragraph> +<paragraph id="par_idm1206767200" role="bascode" localize="false" xml-lang="en-US"> Print UBound(v) ' returns 20</paragraph> +<paragraph id="par_idm1206766048" role="bascode" localize="false" xml-lang="en-US">End Sub ' VectorBounds</paragraph> <paragraph id="par_idm1206764944" role="bascode" localize="false" xml-lang="en-US"> </paragraph> -<paragraph id="par_idm1206763792" role="bascode" xml-lang="en-US">Sub TableBounds</paragraph> +<paragraph id="par_idm1206763792" role="bascode" localize="false" xml-lang="en-US">Sub TableBounds</paragraph> <paragraph id="par_idm1206762640" role="bascode" localize="false" xml-lang="en-US"> Dim t(10 To 20,-5 To 70) As Currency</paragraph> -<paragraph id="par_id3145365" role="bascode" xml-lang="en-US"> Print LBound(t), UBound(t()) ' returns 10 20</paragraph> -<paragraph id="par_id3149665" role="bascode" xml-lang="en-US"> Print LBound(t(),2) ' returns - 5</paragraph> -<paragraph id="par_id3159154" role="bascode" xml-lang="en-US"> Print UBound(t,2) ' returns 70</paragraph> -<paragraph id="par_idm1206754912" role="bascode" xml-lang="en-US">End Sub ' TableBounds</paragraph> +<paragraph id="par_id3145365" role="bascode" localize="false" xml-lang="en-US"> Print LBound(t), UBound(t()) ' returns 10 20</paragraph> +<paragraph id="par_id3149665" role="bascode" localize="false" xml-lang="en-US"> Print LBound(t(),2) ' returns - 5</paragraph> +<paragraph id="par_id3159154" role="bascode" localize="false" xml-lang="en-US"> Print UBound(t,2) ' returns 70</paragraph> +<paragraph id="par_idm1206754912" role="bascode" localize="false" xml-lang="en-US">End Sub ' TableBounds</paragraph> </bascode> </body> - -</helpdocument>
\ No newline at end of file +</helpdocument> |