Skip to content

Commit

Permalink
Remove 'oldref' entries (work in progress)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e4a970)
  • Loading branch information
Pilot-Pirx committed Feb 17, 2024
1 parent 9080e0e commit 0eff433
Show file tree
Hide file tree
Showing 48 changed files with 350 additions and 367 deletions.
18 changes: 9 additions & 9 deletions main/helpcontent2/source/text/sbasic/shared/01/06130500.xhp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
<bookmark_value>libraries; adding</bookmark_value>
<bookmark_value>inserting;Basic libraries</bookmark_value>
</bookmark><comment>mw changed "adding;" to "inserting;"</comment>
<paragraph xml-lang="en-US" id="hd_id3150502" role="heading" level="1" l10n="U" oldref="1">Append libraries</paragraph>
<paragraph xml-lang="en-US" id="par_id3154840" role="paragraph" l10n="U" oldref="2"><ahelp hid=".">Locate that <item type="productname">%PRODUCTNAME</item> Basic library that you want to add to the current list, and then click Open.</ahelp></paragraph>
<paragraph xml-lang="en-US" id="hd_id3150502" role="heading" level="1" l10n="U">Append libraries</paragraph>
<paragraph xml-lang="en-US" id="par_id3154840" role="paragraph" l10n="U"><ahelp hid=".">Locate that <item type="productname">%PRODUCTNAME</item> Basic library that you want to add to the current list, and then click Open.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/BASCTL_HID_BASICIDE_LIBSDLG_TREE" id="bm_id3109850" localize="false"/>
<paragraph xml-lang="en-US" id="hd_id3149119" role="heading" level="2" l10n="U" oldref="3">File name:</paragraph>
<paragraph xml-lang="en-US" id="par_id3147102" role="paragraph" l10n="U" oldref="4"><ahelp hid="HID_BASICIDE_LIBSDLG_TREE">Enter a name or the path to the library that you want to append.</ahelp> You can also select a library from the list.</paragraph>
<paragraph xml-lang="en-US" id="hd_id3147291" role="heading" level="2" l10n="U" oldref="5">Options</paragraph>
<paragraph xml-lang="en-US" id="hd_id3147226" role="heading" level="3" l10n="U" oldref="7">Insert as reference (read-only)</paragraph>
<paragraph xml-lang="en-US" id="par_id3155892" role="paragraph" l10n="U" oldref="8"><ahelp hid="BASCTL_CHECKBOX_RID_DLG_LIBS_RID_CB_REF">Adds the selected library as a read-only file. The library is reloaded each time you start <item type="productname">%PRODUCTNAME</item>.</ahelp></paragraph>
<paragraph xml-lang="en-US" id="hd_id3145071" role="heading" level="3" l10n="U" oldref="9">Replace existing libraries</paragraph>
<paragraph xml-lang="en-US" id="par_id3149812" role="paragraph" l10n="U" oldref="10"><ahelp hid="BASCTL_CHECKBOX_RID_DLG_LIBS_RID_CB_REPL">Replaces a library that has the same name with the current library.</ahelp></paragraph>
<paragraph xml-lang="en-US" id="hd_id3149119" role="heading" level="2" l10n="U">File name:</paragraph>
<paragraph xml-lang="en-US" id="par_id3147102" role="paragraph" l10n="U"><ahelp hid="HID_BASICIDE_LIBSDLG_TREE">Enter a name or the path to the library that you want to append.</ahelp> You can also select a library from the list.</paragraph>
<paragraph xml-lang="en-US" id="hd_id3147291" role="heading" level="2" l10n="U">Options</paragraph>
<paragraph xml-lang="en-US" id="hd_id3147226" role="heading" level="3" l10n="U">Insert as reference (read-only)</paragraph>
<paragraph xml-lang="en-US" id="par_id3155892" role="paragraph" l10n="U"><ahelp hid="BASCTL_CHECKBOX_RID_DLG_LIBS_RID_CB_REF">Adds the selected library as a read-only file. The library is reloaded each time you start <item type="productname">%PRODUCTNAME</item>.</ahelp></paragraph>
<paragraph xml-lang="en-US" id="hd_id3145071" role="heading" level="3" l10n="U">Replace existing libraries</paragraph>
<paragraph xml-lang="en-US" id="par_id3149812" role="paragraph" l10n="U"><ahelp hid="BASCTL_CHECKBOX_RID_DLG_LIBS_RID_CB_REPL">Replaces a library that has the same name with the current library.</ahelp></paragraph>
</body>
</helpdocument>
29 changes: 13 additions & 16 deletions main/helpcontent2/source/text/sbasic/shared/03070500.xhp
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,19 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3145315">
<bookmark_value>"^" operator (mathematical)</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3145315" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03070500.xhp">"^" Operator [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3149670" xml-lang="en-US" l10n="U" oldref="2">Raises a number to a power.</paragraph>
<paragraph role="heading" id="hd_id3145315" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03070500.xhp">"^" Operator [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3149670" xml-lang="en-US" l10n="U">Raises a number to a power.</paragraph>
</section>
<paragraph role="heading" id="hd_id3147264" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3149656" xml-lang="en-US" l10n="U" oldref="4">Result = Expression ^ Exponent</paragraph>
<paragraph role="heading" id="hd_id3151211" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3153192" xml-lang="en-US" l10n="U" oldref="6">
<emph>Result:</emph> Any numerical expression that contains the result of the number raised to a power.</paragraph>
<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U" oldref="7">
<emph>Expression:</emph> Numerical value that you want to raise to a power.</paragraph>
<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U" oldref="8">
<emph>Exponent:</emph> The value of the power that you want to raise the expression to.</paragraph>
<paragraph role="heading" id="hd_id3147287" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U" oldref="10">Sub Example</paragraph>
<paragraph role="paragraph" id="par_id3152886" xml-lang="en-US" l10n="U" oldref="11">Print ( 12.345 ^ 23 )</paragraph>
<paragraph role="paragraph" id="par_id3146984" xml-lang="en-US" l10n="U" oldref="12">Print Exp ( 23 * Log( 12.345 ) ) REM Raises by forming a logarithm</paragraph>
<paragraph role="paragraph" id="par_id3148618" xml-lang="en-US" l10n="U" oldref="13">End Sub</paragraph>
<paragraph role="heading" id="hd_id3147264" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3149656" xml-lang="en-US" l10n="U">Result = Expression ^ Exponent</paragraph>
<paragraph role="heading" id="hd_id3151211" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3153192" xml-lang="en-US" l10n="U"><emph>Result:</emph> Any numerical expression that contains the result of the number raised to a power.</paragraph>
<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U"><emph>Expression:</emph> Numerical value that you want to raise to a power.</paragraph>
<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U"><emph>Exponent:</emph> The value of the power that you want to raise the expression to.</paragraph>
<paragraph role="heading" id="hd_id3147287" xml-lang="en-US" level="2" l10n="U">Example:</paragraph>
<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U">Sub Example</paragraph>
<paragraph role="paragraph" id="par_id3152886" xml-lang="en-US" l10n="U">Print ( 12.345 ^ 23 )</paragraph>
<paragraph role="paragraph" id="par_id3146984" xml-lang="en-US" l10n="U">Print Exp ( 23 * Log( 12.345 ) ) REM Raises by forming a logarithm</paragraph>
<paragraph role="paragraph" id="par_id3148618" xml-lang="en-US" l10n="U">End Sub</paragraph>
</body>
</helpdocument>
29 changes: 14 additions & 15 deletions main/helpcontent2/source/text/sbasic/shared/03080502.xhp
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,22 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3153345">
<bookmark_value>Int function</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3153345" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03080502.xhp" name="Int Function [Runtime]">Int Function [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3155420" xml-lang="en-US" l10n="U" oldref="2">Returns the integer portion of a number.</paragraph>
<paragraph role="heading" id="hd_id3153345" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03080502.xhp" name="Int Function [Runtime]">Int Function [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3155420" xml-lang="en-US" l10n="U">Returns the integer portion of a number.</paragraph>
</section>
<paragraph role="heading" id="hd_id3147559" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3146795" xml-lang="en-US" l10n="U" oldref="4">Int (Number)</paragraph>
<paragraph role="heading" id="hd_id3149670" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
<paragraph role="paragraph" id="par_id3150400" xml-lang="en-US" l10n="U" oldref="6">Double</paragraph>
<paragraph role="heading" id="hd_id3149656" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3148797" xml-lang="en-US" l10n="CHG" oldref="8">
<emph>Number:</emph> Any valid numeric expression.</paragraph>
<paragraph role="heading" id="hd_id3147559" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3146795" xml-lang="en-US" l10n="U">Int (Number)</paragraph>
<paragraph role="heading" id="hd_id3149670" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph>
<paragraph role="paragraph" id="par_id3150400" xml-lang="en-US" l10n="U">Double</paragraph>
<paragraph role="heading" id="hd_id3149656" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3148797" xml-lang="en-US" l10n="CHG"><emph>Number:</emph> Any valid numeric expression.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<paragraph role="heading" id="hd_id3148672" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
<paragraph role="paragraph" id="par_id3156214" xml-lang="en-US" l10n="U" oldref="10">sub ExampleINT</paragraph>
<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="CHG" oldref="11">Print Int(3.99) REM returns the value 3</paragraph>
<paragraph role="paragraph" id="par_id3145787" xml-lang="en-US" l10n="CHG" oldref="12">Print Int(0) REM returns the value 0</paragraph>
<paragraph role="paragraph" id="par_id3153143" xml-lang="en-US" l10n="CHG" oldref="13">Print Int(-3.14159) REM returns the value -4</paragraph>
<paragraph role="paragraph" id="par_id3152578" xml-lang="en-US" l10n="U" oldref="14">end sub</paragraph>
<paragraph role="heading" id="hd_id3148672" xml-lang="en-US" level="2" l10n="U">Example:</paragraph>
<paragraph role="paragraph" id="par_id3156214" xml-lang="en-US" l10n="U">sub ExampleINT</paragraph>
<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="CHG">Print Int(3.99) REM returns the value 3</paragraph>
<paragraph role="paragraph" id="par_id3145787" xml-lang="en-US" l10n="CHG">Print Int(0) REM returns the value 0</paragraph>
<paragraph role="paragraph" id="par_id3153143" xml-lang="en-US" l10n="CHG">Print Int(-3.14159) REM returns the value -4</paragraph>
<paragraph role="paragraph" id="par_id3152578" xml-lang="en-US" l10n="U">end sub</paragraph>
</body>
</helpdocument>
27 changes: 13 additions & 14 deletions main/helpcontent2/source/text/sbasic/shared/03102200.xhp
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,21 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3154346">
<bookmark_value>IsArray function</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3154346" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03102200.xhp" name="IsArray Function [Runtime]">IsArray Function [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3159413" xml-lang="en-US" l10n="U" oldref="2">Determines if a variable is a data field in an array.</paragraph>
<paragraph role="heading" id="hd_id3154346" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03102200.xhp" name="IsArray Function [Runtime]">IsArray Function [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3159413" xml-lang="en-US" l10n="U">Determines if a variable is a data field in an array.</paragraph>
</section>
<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3153379" xml-lang="en-US" l10n="U" oldref="4">IsArray (Var)</paragraph>
<paragraph role="heading" id="hd_id3154365" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
<paragraph role="paragraph" id="par_id3154685" xml-lang="en-US" l10n="U" oldref="6">Bool</paragraph>
<paragraph role="heading" id="hd_id3153969" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3145172" xml-lang="en-US" l10n="U" oldref="8">
<emph>Var:</emph> Any variable that you want to test if it is declared as an array. If the variable is an array, then the function returns <emph>True</emph>, otherwise <emph>False</emph> is returned.</paragraph>
<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3153379" xml-lang="en-US" l10n="U">IsArray (Var)</paragraph>
<paragraph role="heading" id="hd_id3154365" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph>
<paragraph role="paragraph" id="par_id3154685" xml-lang="en-US" l10n="U">Bool</paragraph>
<paragraph role="heading" id="hd_id3153969" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph>
<paragraph role="paragraph" id="par_id3145172" xml-lang="en-US" l10n="U"><emph>Var:</emph> Any variable that you want to test if it is declared as an array. If the variable is an array, then the function returns <emph>True</emph>, otherwise <emph>False</emph> is returned.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<paragraph role="heading" id="hd_id3155131" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
<paragraph role="paragraph" id="par_id3153365" xml-lang="en-US" l10n="U" oldref="10">Sub ExampleIsArray</paragraph>
<paragraph role="paragraph" id="par_id3150487" xml-lang="en-US" l10n="U" oldref="11">Dim sDatf(10) as String</paragraph>
<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U" oldref="12">print isarray(sdatf())</paragraph>
<paragraph role="paragraph" id="par_id3153727" xml-lang="en-US" l10n="U" oldref="13">end Sub</paragraph>
<paragraph role="heading" id="hd_id3155131" xml-lang="en-US" level="2" l10n="U">Example:</paragraph>
<paragraph role="paragraph" id="par_id3153365" xml-lang="en-US" l10n="U">Sub ExampleIsArray</paragraph>
<paragraph role="paragraph" id="par_id3150487" xml-lang="en-US" l10n="U">Dim sDatf(10) as String</paragraph>
<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U">print isarray(sdatf())</paragraph>
<paragraph role="paragraph" id="par_id3153727" xml-lang="en-US" l10n="U">end Sub</paragraph>
</body>
</helpdocument>
30 changes: 15 additions & 15 deletions main/helpcontent2/source/text/sbasic/shared/03103300.xhp
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3145090">
<bookmark_value>Option Explicit statement</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3145090" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03103300.xhp" name="Option Explicit Statement [Runtime]">Option Explicit Statement [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3148538" xml-lang="en-US" l10n="U" oldref="2">Specifies that every variable in the program code must be explicitly declared with the Dim statement.</paragraph>
<paragraph role="heading" id="hd_id3145090" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03103300.xhp" name="Option Explicit Statement [Runtime]">Option Explicit Statement [Runtime]</link></paragraph>
<paragraph role="paragraph" id="par_id3148538" xml-lang="en-US" l10n="U">Specifies that every variable in the program code must be explicitly declared with the Dim statement.</paragraph>
</section>
<paragraph role="heading" id="hd_id3149763" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3149514" xml-lang="en-US" l10n="U" oldref="4">Option Explicit</paragraph>
<paragraph role="heading" id="hd_id3145315" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph>
<paragraph role="warning" id="par_id3145172" xml-lang="en-US" l10n="U" oldref="6">This statement must be added before the executable program code in a module.</paragraph>
<paragraph role="heading" id="hd_id3125864" xml-lang="en-US" level="2" l10n="U" oldref="7">Example:</paragraph>
<paragraph role="paragraph" id="par_id3154217" xml-lang="en-US" l10n="U" oldref="8">Option Explicit</paragraph>
<paragraph role="paragraph" id="par_id3156214" xml-lang="en-US" l10n="U" oldref="9">Sub ExampleExplicit</paragraph>
<paragraph role="paragraph" id="par_id3153193" xml-lang="en-US" l10n="U" oldref="10">Dim sVar As String</paragraph>
<paragraph role="paragraph" id="par_id3159252" xml-lang="en-US" l10n="U" oldref="11">sVar = "Las Vegas"</paragraph>
<paragraph role="paragraph" id="par_id3145787" xml-lang="en-US" l10n="U" oldref="12">For i% = 1 to 10 REM This results in a run-time error</paragraph>
<paragraph role="paragraph" id="par_id3152598" xml-lang="en-US" l10n="U" oldref="13">REM</paragraph>
<paragraph role="paragraph" id="par_id3145749" xml-lang="en-US" l10n="U" oldref="14">Next i%</paragraph>
<paragraph role="paragraph" id="par_id3150010" xml-lang="en-US" l10n="U" oldref="15">End Sub</paragraph>
<paragraph role="heading" id="hd_id3149763" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph>
<paragraph role="paragraph" id="par_id3149514" xml-lang="en-US" l10n="U">Option Explicit</paragraph>
<paragraph role="heading" id="hd_id3145315" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph>
<paragraph role="warning" id="par_id3145172" xml-lang="en-US" l10n="U">This statement must be added before the executable program code in a module.</paragraph>
<paragraph role="heading" id="hd_id3125864" xml-lang="en-US" level="2" l10n="U">Example:</paragraph>
<paragraph role="paragraph" id="par_id3154217" xml-lang="en-US" l10n="U">Option Explicit</paragraph>
<paragraph role="paragraph" id="par_id3156214" xml-lang="en-US" l10n="U">Sub ExampleExplicit</paragraph>
<paragraph role="paragraph" id="par_id3153193" xml-lang="en-US" l10n="U">Dim sVar As String</paragraph>
<paragraph role="paragraph" id="par_id3159252" xml-lang="en-US" l10n="U">sVar = "Las Vegas"</paragraph>
<paragraph role="paragraph" id="par_id3145787" xml-lang="en-US" l10n="U">For i% = 1 to 10 REM This results in a run-time error</paragraph>
<paragraph role="paragraph" id="par_id3152598" xml-lang="en-US" l10n="U">REM</paragraph>
<paragraph role="paragraph" id="par_id3145749" xml-lang="en-US" l10n="U">Next i%</paragraph>
<paragraph role="paragraph" id="par_id3150010" xml-lang="en-US" l10n="U">End Sub</paragraph>
</body>
</helpdocument>
Loading

0 comments on commit 0eff433

Please sign in to comment.