This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push: new c26d815ba8 Remove 'oldref' entries (work in progress) c26d815ba8 is described below commit c26d815ba85c17830151954800fb57b0dd8415fa Author: mseidel <msei...@apache.org> AuthorDate: Wed Dec 4 21:34:57 2024 +0100 Remove 'oldref' entries (work in progress) (cherry picked from commit 663b5dcc06c81f168e541194402bca997270c862) --- .../source/text/sbasic/shared/03010301.xhp | 35 +++++++++---------- .../source/text/sbasic/shared/03010302.xhp | 35 +++++++++---------- .../source/text/sbasic/shared/03030104.xhp | 31 ++++++++--------- .../source/text/sbasic/shared/03030204.xhp | 31 ++++++++--------- .../source/text/sbasic/shared/03070200.xhp | 38 ++++++++++---------- .../source/text/sbasic/shared/03070600.xhp | 38 ++++++++++---------- .../source/text/sbasic/shared/03090401.xhp | 36 +++++++++---------- .../source/text/sbasic/shared/03090405.xhp | 31 ++++++++--------- .../source/text/sbasic/shared/03100500.xhp | 31 ++++++++--------- .../source/text/sbasic/shared/03101700.xhp | 40 ++++++++++------------ 10 files changed, 165 insertions(+), 181 deletions(-) diff --git a/main/helpcontent2/source/text/sbasic/shared/03010301.xhp b/main/helpcontent2/source/text/sbasic/shared/03010301.xhp index f8d85da109..7ceec73b36 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03010301.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03010301.xhp @@ -33,26 +33,25 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3149180"> <bookmark_value>Blue function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3149180" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03010301.xhp" name="Blue Function [Runtime]">Blue Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3156343" xml-lang="en-US" l10n="U" oldref="2">Returns the blue component of the specified color code.</paragraph> +<paragraph role="heading" id="hd_id3149180" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03010301.xhp" name="Blue Function [Runtime]">Blue Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3156343" xml-lang="en-US" l10n="U">Returns the blue component of the specified color code.</paragraph> </section> -<paragraph role="heading" id="hd_id3149670" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="code" id="par_id3149457" xml-lang="en-US" l10n="U" oldref="4">Blue (Color As Long)</paragraph> -<paragraph role="heading" id="hd_id3149656" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3156423" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameter:</paragraph> -<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Color value</emph>: Long integer expression that specifies any <link href="text/sbasic/shared/00000003.xhp#farbcodes" name="color code">color code</link> for which to return the blue component.</paragraph> +<paragraph role="heading" id="hd_id3149670" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="code" id="par_id3149457" xml-lang="en-US" l10n="U">Blue (Color As Long)</paragraph> +<paragraph role="heading" id="hd_id3149656" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3156423" xml-lang="en-US" level="2" l10n="U">Parameter:</paragraph> +<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U"><emph>Color value</emph>: Long integer expression that specifies any <link href="text/sbasic/shared/00000003.xhp#farbcodes" name="color code">color code</link> for which to return the blue component.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3153091" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph> -<paragraph role="code" id="par_id3153143" xml-lang="en-US" l10n="U" oldref="10">Sub ExampleColor</paragraph> -<paragraph role="code" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="11">Dim lVar As Long</paragraph> -<paragraph role="code" id="par_id3148576" xml-lang="en-US" l10n="U" oldref="12">lVar = rgb(128,0,200)</paragraph> -<paragraph role="code" id="par_id3154012" xml-lang="en-US" l10n="U" oldref="13">MsgBox "The color " & lVar & " consists of:" & Chr(13) &_</paragraph> -<paragraph role="code" id="par_id3148645" xml-lang="en-US" l10n="U" oldref="14">"red= " & Red(lVar) & Chr(13)&_</paragraph> -<paragraph role="code" id="par_id3159155" xml-lang="en-US" l10n="U" oldref="15">"green= " & Green(lVar) & Chr(13)&_</paragraph> -<paragraph role="code" id="par_id3147319" xml-lang="en-US" l10n="U" oldref="16">"blue= " & Blue(lVar) & Chr(13) , 64,"colors"</paragraph> -<paragraph role="code" id="par_id3147434" xml-lang="en-US" l10n="U" oldref="17">End Sub</paragraph> +<paragraph role="heading" id="hd_id3153091" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="code" id="par_id3153143" xml-lang="en-US" l10n="U">Sub ExampleColor</paragraph> +<paragraph role="code" id="par_id3149664" xml-lang="en-US" l10n="U">Dim lVar As Long</paragraph> +<paragraph role="code" id="par_id3148576" xml-lang="en-US" l10n="U">lVar = rgb(128,0,200)</paragraph> +<paragraph role="code" id="par_id3154012" xml-lang="en-US" l10n="U">MsgBox "The color " & lVar & " consists of:" & Chr(13) &_</paragraph> +<paragraph role="code" id="par_id3148645" xml-lang="en-US" l10n="U">"red= " & Red(lVar) & Chr(13)&_</paragraph> +<paragraph role="code" id="par_id3159155" xml-lang="en-US" l10n="U">"green= " & Green(lVar) & Chr(13)&_</paragraph> +<paragraph role="code" id="par_id3147319" xml-lang="en-US" l10n="U">"blue= " & Blue(lVar) & Chr(13) , 64,"colors"</paragraph> +<paragraph role="code" id="par_id3147434" xml-lang="en-US" l10n="U">End Sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03010302.xhp b/main/helpcontent2/source/text/sbasic/shared/03010302.xhp index e6d1ec84c2..4a439708b0 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03010302.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03010302.xhp @@ -33,26 +33,25 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3148947"> <bookmark_value>Green function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3148947" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03010302.xhp" name="Green Function [Runtime]">Green Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3153361" xml-lang="en-US" l10n="U" oldref="2">Returns the Green component of the given color code.</paragraph> +<paragraph role="heading" id="hd_id3148947" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03010302.xhp" name="Green Function [Runtime]">Green Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3153361" xml-lang="en-US" l10n="U">Returns the Green component of the given color code.</paragraph> </section> -<paragraph role="heading" id="hd_id3154140" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="code" id="par_id3153969" xml-lang="en-US" l10n="U" oldref="4">Green (Color As Long)</paragraph> -<paragraph role="heading" id="hd_id3154124" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3153194" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3154909" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameter:</paragraph> -<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Color</emph>: Long integer expression that specifies a <link href="text/sbasic/shared/00000003.xhp#farbcodes" name="color code">color code</link> for which to return the Green component.</paragraph> +<paragraph role="heading" id="hd_id3154140" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="code" id="par_id3153969" xml-lang="en-US" l10n="U">Green (Color As Long)</paragraph> +<paragraph role="heading" id="hd_id3154124" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3153194" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3154909" xml-lang="en-US" level="2" l10n="U">Parameter:</paragraph> +<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U"><emph>Color</emph>: Long integer expression that specifies a <link href="text/sbasic/shared/00000003.xhp#farbcodes" name="color code">color code</link> for which to return the Green component.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3149664" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph> -<paragraph role="code" id="par_id3156442" xml-lang="en-US" l10n="U" oldref="10">Sub ExampleColor</paragraph> -<paragraph role="code" id="par_id3146974" xml-lang="en-US" l10n="U" oldref="11">Dim lVar As Long</paragraph> -<paragraph role="code" id="par_id3145750" xml-lang="en-US" l10n="U" oldref="12">lVar = rgb(128,0,200)</paragraph> -<paragraph role="code" id="par_id3151117" xml-lang="en-US" l10n="U" oldref="13">msgbox "The color " & lVar & " contains the components:" & Chr(13) &_</paragraph> -<paragraph role="code" id="par_id3153951" xml-lang="en-US" l10n="U" oldref="14">"red = " & red(lVar) & Chr(13)&_</paragraph> -<paragraph role="code" id="par_id3152462" xml-lang="en-US" l10n="U" oldref="15">"green = " & green(lVar) & Chr(13)&_</paragraph> -<paragraph role="code" id="par_id3154730" xml-lang="en-US" l10n="U" oldref="16">"blue = " & blue(lVar) & Chr(13) , 64,"colors"</paragraph> -<paragraph role="code" id="par_id3144764" xml-lang="en-US" l10n="U" oldref="17">end sub</paragraph> +<paragraph role="heading" id="hd_id3149664" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="code" id="par_id3156442" xml-lang="en-US" l10n="U">Sub ExampleColor</paragraph> +<paragraph role="code" id="par_id3146974" xml-lang="en-US" l10n="U">Dim lVar As Long</paragraph> +<paragraph role="code" id="par_id3145750" xml-lang="en-US" l10n="U">lVar = rgb(128,0,200)</paragraph> +<paragraph role="code" id="par_id3151117" xml-lang="en-US" l10n="U">msgbox "The color " & lVar & " contains the components:" & Chr(13) &_</paragraph> +<paragraph role="code" id="par_id3153951" xml-lang="en-US" l10n="U">"red = " & red(lVar) & Chr(13)&_</paragraph> +<paragraph role="code" id="par_id3152462" xml-lang="en-US" l10n="U">"green = " & green(lVar) & Chr(13)&_</paragraph> +<paragraph role="code" id="par_id3154730" xml-lang="en-US" l10n="U">"blue = " & blue(lVar) & Chr(13) , 64,"colors"</paragraph> +<paragraph role="code" id="par_id3144764" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03030104.xhp b/main/helpcontent2/source/text/sbasic/shared/03030104.xhp index ab1282728c..8c2781e290 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03030104.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03030104.xhp @@ -33,24 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3153127"> <bookmark_value>Month function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3153127" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030104.xhp" name="Month Function [Runtime]">Month Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3148550" xml-lang="en-US" l10n="U" oldref="2">Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function.</paragraph> +<paragraph role="heading" id="hd_id3153127" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03030104.xhp" name="Month Function [Runtime]">Month Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3148550" xml-lang="en-US" l10n="U">Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function.</paragraph> </section> -<paragraph role="heading" id="hd_id3145068" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3150398" xml-lang="en-US" l10n="U" oldref="4">Month (Number)</paragraph> -<paragraph role="heading" id="hd_id3154366" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3154125" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3150768" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3156423" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Number:</emph> Numeric expression that contains the serial date number that is used to determine the month of the year.</paragraph> -<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U" oldref="9">This function is the opposite of the <emph>DateSerial</emph> function. It returns the month in the year that corresponds to the serial date that is generated by <emph>DateSerial</emph> or <emph>DateValue</emph>. For example, the expression</paragraph> -<paragraph role="paragraph" id="par_id3147426" xml-lang="en-US" l10n="U" oldref="10">Print Month(DateSerial(1994, 12, 20))</paragraph> -<paragraph role="paragraph" id="par_id3145366" xml-lang="en-US" l10n="U" oldref="11">returns the value 12.</paragraph> +<paragraph role="heading" id="hd_id3145068" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3150398" xml-lang="en-US" l10n="U">Month (Number)</paragraph> +<paragraph role="heading" id="hd_id3154366" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3154125" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3150768" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3156423" xml-lang="en-US" l10n="U"><emph>Number:</emph> Numeric expression that contains the serial date number that is used to determine the month of the year.</paragraph> +<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U">This function is the opposite of the <emph>DateSerial</emph> function. It returns the month in the year that corresponds to the serial date that is generated by <emph>DateSerial</emph> or <emph>DateValue</emph>. For example, the expression</paragraph> +<paragraph role="paragraph" id="par_id3147426" xml-lang="en-US" l10n="U">Print Month(DateSerial(1994, 12, 20))</paragraph> +<paragraph role="paragraph" id="par_id3145366" xml-lang="en-US" l10n="U">returns the value 12.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3146923" xml-lang="en-US" level="2" l10n="U" oldref="12">Example:</paragraph> -<paragraph role="paragraph" id="par_id3156442" xml-lang="en-US" l10n="U" oldref="13">Sub ExampleMonth</paragraph> -<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="14">MsgBox "" & Month(Now) ,64,"The current month"</paragraph> -<paragraph role="paragraph" id="par_id3150012" xml-lang="en-US" l10n="U" oldref="15">End sub</paragraph> +<paragraph role="heading" id="hd_id3146923" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3156442" xml-lang="en-US" l10n="U">Sub ExampleMonth</paragraph> +<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U">MsgBox "" & Month(Now) ,64,"The current month"</paragraph> +<paragraph role="paragraph" id="par_id3150012" xml-lang="en-US" l10n="U">End sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03030204.xhp b/main/helpcontent2/source/text/sbasic/shared/03030204.xhp index 441ab84871..e9b3e8391f 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03030204.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03030204.xhp @@ -33,24 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3153346"> <bookmark_value>Second function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3153346" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030204.xhp" name="Second Function [Runtime]">Second Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3156023" xml-lang="en-US" l10n="U" oldref="2">Returns an integer that represents the seconds of the serial time number that is generated by the TimeSerial or the TimeValue function.</paragraph> +<paragraph role="heading" id="hd_id3153346" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03030204.xhp" name="Second Function [Runtime]">Second Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3156023" xml-lang="en-US" l10n="U">Returns an integer that represents the seconds of the serial time number that is generated by the TimeSerial or the TimeValue function.</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_id3146795" xml-lang="en-US" l10n="U" oldref="4">Second (Number)</paragraph> -<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3154140" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3156280" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3154124" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Number:</emph> Numeric expression that contains the serial time number that is used to calculate the number of seconds.</paragraph> -<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="U" oldref="9">This function is the opposite of the <emph>TimeSerial</emph> function. It returns the seconds of a serial time value that is generated by the <emph>TimeSerial</emph> or <emph>TimeValue</emph> functions. For example, the expression:</paragraph> -<paragraph role="paragraph" id="par_id3153951" xml-lang="en-US" l10n="U" oldref="10">Print Second(TimeSerial(12,30,41))</paragraph> -<paragraph role="paragraph" id="par_id3151117" xml-lang="en-US" l10n="U" oldref="11">returns the value 41.</paragraph> +<paragraph role="heading" id="hd_id3147264" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3146795" xml-lang="en-US" l10n="U">Second (Number)</paragraph> +<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3154140" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3156280" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3154124" xml-lang="en-US" l10n="U"><emph>Number:</emph> Numeric expression that contains the serial time number that is used to calculate the number of seconds.</paragraph> +<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="U">This function is the opposite of the <emph>TimeSerial</emph> function. It returns the seconds of a serial time value that is generated by the <emph>TimeSerial</emph> or <emph>TimeValue</emph> functions. For example, the expression:</paragraph> +<paragraph role="paragraph" id="par_id3153951" xml-lang="en-US" l10n="U">Print Second(TimeSerial(12,30,41))</paragraph> +<paragraph role="paragraph" id="par_id3151117" xml-lang="en-US" l10n="U">returns the value 41.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3147426" xml-lang="en-US" level="2" l10n="U" oldref="12">Example:</paragraph> -<paragraph role="paragraph" id="par_id3154012" xml-lang="en-US" l10n="U" oldref="13">Sub ExampleSecond</paragraph> -<paragraph role="paragraph" id="par_id3156441" xml-lang="en-US" l10n="U" oldref="14">MsgBox "The exact second of the current time is "& Second( Now )</paragraph> -<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U" oldref="15">End sub</paragraph> +<paragraph role="heading" id="hd_id3147426" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3154012" xml-lang="en-US" l10n="U">Sub ExampleSecond</paragraph> +<paragraph role="paragraph" id="par_id3156441" xml-lang="en-US" l10n="U">MsgBox "The exact second of the current time is "& Second( Now )</paragraph> +<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U">End sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03070200.xhp b/main/helpcontent2/source/text/sbasic/shared/03070200.xhp index 00f604f0f1..21edb00998 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03070200.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03070200.xhp @@ -33,26 +33,24 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3147573"> <bookmark_value>"*" operator (mathematical)</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3147573" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03070200.xhp">"*" Operator [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3154347" xml-lang="en-US" l10n="U" oldref="2">Multiplies two values.</paragraph> +<paragraph role="heading" id="hd_id3147573" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03070200.xhp">"*" Operator [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3154347" xml-lang="en-US" l10n="U">Multiplies two values.</paragraph> </section> -<paragraph role="heading" id="hd_id3148946" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U" oldref="4">Result = Expression1 * Expression2</paragraph> -<paragraph role="heading" id="hd_id3150400" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U" oldref="6"> -<emph>Result:</emph> Any numeric expression that records the result of a multiplication.</paragraph> -<paragraph role="paragraph" id="par_id3154685" xml-lang="en-US" l10n="U" oldref="7"> -<emph>Expression1, Expression2:</emph> Any numeric expressions that you want to multiply.</paragraph> -<paragraph role="heading" id="hd_id3153968" xml-lang="en-US" level="2" l10n="U" oldref="8">Example:</paragraph> -<paragraph role="paragraph" id="par_id3155132" xml-lang="en-US" l10n="U" oldref="9">Sub ExampleMultiplication1</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U" oldref="10">Print 5 * 5</paragraph> -<paragraph role="paragraph" id="par_id3153091" xml-lang="en-US" l10n="U" oldref="11">End sub</paragraph> -<paragraph role="paragraph" id="par_id3149667" xml-lang="en-US" l10n="U" oldref="13">Sub ExampleMultiplication2</paragraph> -<paragraph role="paragraph" id="par_id3151113" xml-lang="en-US" l10n="U" oldref="14">Dim iValue1 as Integer</paragraph> -<paragraph role="paragraph" id="par_id3147434" xml-lang="en-US" l10n="U" oldref="15">Dim iValue2 as Integer</paragraph> -<paragraph role="paragraph" id="par_id3153727" xml-lang="en-US" l10n="U" oldref="16">iValue1 = 5</paragraph> -<paragraph role="paragraph" id="par_id3147348" xml-lang="en-US" l10n="U" oldref="17">iValue2 = 10</paragraph> -<paragraph role="paragraph" id="par_id3149261" xml-lang="en-US" l10n="U" oldref="18">Print iValue1 * iValue2</paragraph> -<paragraph role="paragraph" id="par_id3148646" xml-lang="en-US" l10n="U" oldref="19">End Sub</paragraph> +<paragraph role="heading" id="hd_id3148946" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U">Result = Expression1 * Expression2</paragraph> +<paragraph role="heading" id="hd_id3150400" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U"><emph>Result:</emph> Any numeric expression that records the result of a multiplication.</paragraph> +<paragraph role="paragraph" id="par_id3154685" xml-lang="en-US" l10n="U"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to multiply.</paragraph> +<paragraph role="heading" id="hd_id3153968" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3155132" xml-lang="en-US" l10n="U">Sub ExampleMultiplication1</paragraph> +<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U">Print 5 * 5</paragraph> +<paragraph role="paragraph" id="par_id3153091" xml-lang="en-US" l10n="U">End sub</paragraph> +<paragraph role="paragraph" id="par_id3149667" xml-lang="en-US" l10n="U">Sub ExampleMultiplication2</paragraph> +<paragraph role="paragraph" id="par_id3151113" xml-lang="en-US" l10n="U">Dim iValue1 as Integer</paragraph> +<paragraph role="paragraph" id="par_id3147434" xml-lang="en-US" l10n="U">Dim iValue2 as Integer</paragraph> +<paragraph role="paragraph" id="par_id3153727" xml-lang="en-US" l10n="U">iValue1 = 5</paragraph> +<paragraph role="paragraph" id="par_id3147348" xml-lang="en-US" l10n="U">iValue2 = 10</paragraph> +<paragraph role="paragraph" id="par_id3149261" xml-lang="en-US" l10n="U">Print iValue1 * iValue2</paragraph> +<paragraph role="paragraph" id="par_id3148646" xml-lang="en-US" l10n="U">End Sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03070600.xhp b/main/helpcontent2/source/text/sbasic/shared/03070600.xhp index 59e71d76ee..0d26481a4c 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03070600.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03070600.xhp @@ -33,26 +33,24 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3150669"> <bookmark_value>MOD operator (mathematical)</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3150669" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03070600.xhp" name="Mod-Operator [Runtime]">Mod Operator [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3148686" xml-lang="en-US" l10n="U" oldref="2">Returns the integer remainder of a division.</paragraph> +<paragraph role="heading" id="hd_id3150669" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03070600.xhp" name="Mod-Operator [Runtime]">Mod Operator [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3148686" xml-lang="en-US" l10n="U">Returns the integer remainder of a division.</paragraph> </section> -<paragraph role="heading" id="hd_id3146795" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US" l10n="U" oldref="4">Result = Expression1 MOD Expression2</paragraph> -<paragraph role="heading" id="hd_id3149657" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3153380" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3154365" 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>Result:</emph> Any numeric variable that contains the result of the MOD operation.</paragraph> -<paragraph role="paragraph" id="par_id3151042" xml-lang="en-US" l10n="U" oldref="9"> -<emph>Expression1, Expression2:</emph> Any numeric expressions that you want to divide.</paragraph> -<paragraph role="heading" id="hd_id3147287" xml-lang="en-US" level="2" l10n="U" oldref="10">Example:</paragraph> -<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US" l10n="U" oldref="11">sub ExampleMod</paragraph> -<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U" oldref="12">print 10 mod 2.5 REM returns 0</paragraph> -<paragraph role="paragraph" id="par_id3146922" xml-lang="en-US" l10n="U" oldref="13">print 10 / 2.5 REM returns 4</paragraph> -<paragraph role="paragraph" id="par_id3145273" xml-lang="en-US" l10n="U" oldref="14">print 10 mod 5 REM returns 0</paragraph> -<paragraph role="paragraph" id="par_id3150011" xml-lang="en-US" l10n="U" oldref="15">print 10 / 5 REM returns 2</paragraph> -<paragraph role="paragraph" id="par_id3149483" xml-lang="en-US" l10n="U" oldref="16">print 5 mod 10 REM returns 5</paragraph> -<paragraph role="paragraph" id="par_id3151114" xml-lang="en-US" l10n="U" oldref="17">print 5 / 10 REM returns 0.5</paragraph> -<paragraph role="paragraph" id="par_id3154013" xml-lang="en-US" l10n="U" oldref="18">end sub</paragraph> +<paragraph role="heading" id="hd_id3146795" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US" l10n="U">Result = Expression1 MOD Expression2</paragraph> +<paragraph role="heading" id="hd_id3149657" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3153380" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3154365" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3145172" xml-lang="en-US" l10n="U"><emph>Result:</emph> Any numeric variable that contains the result of the MOD operation.</paragraph> +<paragraph role="paragraph" id="par_id3151042" xml-lang="en-US" l10n="U"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to divide.</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 ExampleMod</paragraph> +<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U">print 10 mod 2.5 REM returns 0</paragraph> +<paragraph role="paragraph" id="par_id3146922" xml-lang="en-US" l10n="U">print 10 / 2.5 REM returns 4</paragraph> +<paragraph role="paragraph" id="par_id3145273" xml-lang="en-US" l10n="U">print 10 mod 5 REM returns 0</paragraph> +<paragraph role="paragraph" id="par_id3150011" xml-lang="en-US" l10n="U">print 10 / 5 REM returns 2</paragraph> +<paragraph role="paragraph" id="par_id3149483" xml-lang="en-US" l10n="U">print 5 mod 10 REM returns 5</paragraph> +<paragraph role="paragraph" id="par_id3151114" xml-lang="en-US" l10n="U">print 5 / 10 REM returns 0.5</paragraph> +<paragraph role="paragraph" id="par_id3154013" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03090401.xhp b/main/helpcontent2/source/text/sbasic/shared/03090401.xhp index 3c89ece91f..45935c59ea 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03090401.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03090401.xhp @@ -33,25 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3154422"> <bookmark_value>Call statement</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3154422" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03090401.xhp" name="Call Statement [Runtime]">Call Statement [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3153394" xml-lang="en-US" l10n="U" oldref="2">Transfers the control of the program to a subroutine, a function, or a DLL procedure.</paragraph> +<paragraph role="heading" id="hd_id3154422" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03090401.xhp" name="Call Statement [Runtime]">Call Statement [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3153394" xml-lang="en-US" l10n="U">Transfers the control of the program to a subroutine, a function, or a DLL procedure.</paragraph> </section> -<paragraph role="heading" id="hd_id3153345" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3150984" xml-lang="en-US" l10n="U" oldref="4">[Call] Name [Parameter]</paragraph> -<paragraph role="heading" id="hd_id3150771" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3148473" xml-lang="en-US" l10n="U" oldref="6"> -<emph>Name:</emph> Name of the subroutine, the function, or the DLL that you want to call</paragraph> -<paragraph role="paragraph" id="par_id3148946" xml-lang="en-US" l10n="U" oldref="7"> -<emph>Parameter:</emph> Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.</paragraph> -<paragraph role="note" id="par_id3154216" xml-lang="en-US" l10n="U" oldref="8">A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the <emph>Declare-Statement</emph>.</paragraph> -<paragraph role="heading" id="hd_id3125865" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U" oldref="12">Sub ExampleCall</paragraph> -<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U" oldref="13">Dim sVar As String</paragraph> -<paragraph role="paragraph" id="par_id3147317" xml-lang="en-US" l10n="U" oldref="14">sVar = "Office"</paragraph> -<paragraph role="paragraph" id="par_id3145273" xml-lang="en-US" l10n="U" oldref="15">Call f_callFun sVar</paragraph> -<paragraph role="paragraph" id="par_id3147435" xml-lang="en-US" l10n="U" oldref="16">end Sub</paragraph> -<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U" oldref="18">Sub f_callFun (sText as String)</paragraph> -<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U" oldref="19">Msgbox sText</paragraph> -<paragraph role="paragraph" id="par_id3148646" xml-lang="en-US" l10n="U" oldref="20">end sub</paragraph> +<paragraph role="heading" id="hd_id3153345" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3150984" xml-lang="en-US" l10n="U">[Call] Name [Parameter]</paragraph> +<paragraph role="heading" id="hd_id3150771" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3148473" xml-lang="en-US" l10n="U"><emph>Name:</emph> Name of the subroutine, the function, or the DLL that you want to call</paragraph> +<paragraph role="paragraph" id="par_id3148946" xml-lang="en-US" l10n="U"><emph>Parameter:</emph> Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.</paragraph> +<paragraph role="note" id="par_id3154216" xml-lang="en-US" l10n="U">A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the <emph>Declare-Statement</emph>.</paragraph> +<paragraph role="heading" id="hd_id3125865" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U">Sub ExampleCall</paragraph> +<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U">Dim sVar As String</paragraph> +<paragraph role="paragraph" id="par_id3147317" xml-lang="en-US" l10n="U">sVar = "Office"</paragraph> +<paragraph role="paragraph" id="par_id3145273" xml-lang="en-US" l10n="U">Call f_callFun sVar</paragraph> +<paragraph role="paragraph" id="par_id3147435" xml-lang="en-US" l10n="U">end Sub</paragraph> +<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U">Sub f_callFun (sText as String)</paragraph> +<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U">Msgbox sText</paragraph> +<paragraph role="paragraph" id="par_id3148646" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03090405.xhp b/main/helpcontent2/source/text/sbasic/shared/03090405.xhp index 8fb3d88387..fd3897bda7 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03090405.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03090405.xhp @@ -33,24 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3143270"> <bookmark_value>FreeLibrary function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3143270" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03090405.xhp" name="FreeLibrary Function [Runtime]">FreeLibrary Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3147559" xml-lang="en-US" l10n="U" oldref="2">Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: <link href="text/sbasic/shared/03090403.xhp" name="Declare">Declare</link></paragraph> +<paragraph role="heading" id="hd_id3143270" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03090405.xhp" name="FreeLibrary Function [Runtime]">FreeLibrary Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3147559" xml-lang="en-US" l10n="U">Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: <link href="text/sbasic/shared/03090403.xhp" name="Declare">Declare</link></paragraph> </section> -<paragraph role="heading" id="hd_id3148550" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3153361" xml-lang="en-US" l10n="U" oldref="4">FreeLibrary (LibName As String)</paragraph> -<paragraph role="heading" id="hd_id3153380" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3154138" xml-lang="en-US" l10n="U" oldref="6"> -<emph>LibName:</emph> String expression that specifies the name of the DLL.</paragraph> -<paragraph role="note" id="par_id3146923" xml-lang="en-US" l10n="U" oldref="7">FreeLibrary can only release DLLs that are loaded during Basic runtime.</paragraph> +<paragraph role="heading" id="hd_id3148550" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3153361" xml-lang="en-US" l10n="U">FreeLibrary (LibName As String)</paragraph> +<paragraph role="heading" id="hd_id3153380" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3154138" xml-lang="en-US" l10n="U"><emph>LibName:</emph> String expression that specifies the name of the DLL.</paragraph> +<paragraph role="note" id="par_id3146923" xml-lang="en-US" l10n="U">FreeLibrary can only release DLLs that are loaded during Basic runtime.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3153363" xml-lang="en-US" level="2" l10n="U" oldref="8">Example:</paragraph> -<paragraph role="paragraph" id="par_id3155855" xml-lang="en-US" l10n="U" oldref="9">Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( long )</paragraph> -<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="11">Sub ExampleDeclare</paragraph> -<paragraph role="paragraph" id="par_id3148618" xml-lang="en-US" l10n="U" oldref="12">Dim lValue As Long</paragraph> -<paragraph role="paragraph" id="par_id3147350" xml-lang="en-US" l10n="U" oldref="13">lValue = 5000</paragraph> -<paragraph role="paragraph" id="par_id3148648" xml-lang="en-US" l10n="U" oldref="14">MyMessageBeep( lValue )</paragraph> -<paragraph role="paragraph" id="par_id3145750" xml-lang="en-US" l10n="U" oldref="15">FreeLibrary("user32.dll" )</paragraph> -<paragraph role="paragraph" id="par_id3149412" xml-lang="en-US" l10n="U" oldref="16">End Sub</paragraph> +<paragraph role="heading" id="hd_id3153363" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3155855" xml-lang="en-US" l10n="U">Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( long )</paragraph> +<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U">Sub ExampleDeclare</paragraph> +<paragraph role="paragraph" id="par_id3148618" xml-lang="en-US" l10n="U">Dim lValue As Long</paragraph> +<paragraph role="paragraph" id="par_id3147350" xml-lang="en-US" l10n="U">lValue = 5000</paragraph> +<paragraph role="paragraph" id="par_id3148648" xml-lang="en-US" l10n="U">MyMessageBeep( lValue )</paragraph> +<paragraph role="paragraph" id="par_id3145750" xml-lang="en-US" l10n="U">FreeLibrary("user32.dll" )</paragraph> +<paragraph role="paragraph" id="par_id3149412" xml-lang="en-US" l10n="U">End Sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03100500.xhp b/main/helpcontent2/source/text/sbasic/shared/03100500.xhp index bf4824704e..c2f6fdec9b 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03100500.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03100500.xhp @@ -33,24 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3149346"> <bookmark_value>CInt function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3149346" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03100500.xhp" name="CInt Function [Runtime]">CInt Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3155419" xml-lang="en-US" l10n="U" oldref="2">Converts any string or numeric expression to an integer.</paragraph> +<paragraph role="heading" id="hd_id3149346" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03100500.xhp" name="CInt Function [Runtime]">CInt Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3155419" xml-lang="en-US" l10n="U">Converts any string or numeric expression to an integer.</paragraph> </section> -<paragraph role="heading" id="hd_id3147573" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3154142" xml-lang="en-US" l10n="U" oldref="4">CInt (Expression)</paragraph> -<paragraph role="heading" id="hd_id3147531" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US" l10n="U" oldref="6">Integer</paragraph> -<paragraph role="heading" id="hd_id3145069" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3159414" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Expression:</emph> Any numeric expression that you want to convert. If the <emph>Expression</emph> exceeds the value range between -32768 and 32767, $[officename] Basic reports an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph> -<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U" oldref="9">This function always rounds the fractional part of a number to the nearest integer.</paragraph> +<paragraph role="heading" id="hd_id3147573" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3154142" xml-lang="en-US" l10n="U">CInt (Expression)</paragraph> +<paragraph role="heading" id="hd_id3147531" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US" l10n="U">Integer</paragraph> +<paragraph role="heading" id="hd_id3145069" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3159414" xml-lang="en-US" l10n="U"><emph>Expression:</emph> Any numeric expression that you want to convert. If the <emph>Expression</emph> exceeds the value range between -32768 and 32767, $[officename] Basic reports an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph> +<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U">This function always rounds the fractional part of a number to the nearest integer.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3145419" xml-lang="en-US" level="2" l10n="U" oldref="10">Example:</paragraph> -<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U" oldref="11">Sub ExampleCountryConvert</paragraph> -<paragraph role="paragraph" id="par_id3156423" xml-lang="en-US" l10n="U" oldref="12">Msgbox CDbl(1234.5678)</paragraph> -<paragraph role="paragraph" id="par_id3150869" xml-lang="en-US" l10n="U" oldref="13">Msgbox CInt(1234.5678)</paragraph> -<paragraph role="paragraph" id="par_id3153768" xml-lang="en-US" l10n="U" oldref="14">Msgbox CLng(1234.5678)</paragraph> -<paragraph role="paragraph" id="par_id3145786" xml-lang="en-US" l10n="U" oldref="15">end sub</paragraph> +<paragraph role="heading" id="hd_id3145419" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U">Sub ExampleCountryConvert</paragraph> +<paragraph role="paragraph" id="par_id3156423" xml-lang="en-US" l10n="U">Msgbox CDbl(1234.5678)</paragraph> +<paragraph role="paragraph" id="par_id3150869" xml-lang="en-US" l10n="U">Msgbox CInt(1234.5678)</paragraph> +<paragraph role="paragraph" id="par_id3153768" xml-lang="en-US" l10n="U">Msgbox CLng(1234.5678)</paragraph> +<paragraph role="paragraph" id="par_id3145786" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03101700.xhp b/main/helpcontent2/source/text/sbasic/shared/03101700.xhp index cd7087cf76..c558a7da5a 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03101700.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03101700.xhp @@ -33,28 +33,24 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3149811"> <bookmark_value>DefObj statement</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3149811" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03101700.xhp" name="DefObj Statement [Runtime]">DefObj Statement [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3147573" xml-lang="en-US" l10n="U" oldref="2">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> +<paragraph role="heading" id="hd_id3149811" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03101700.xhp" name="DefObj Statement [Runtime]">DefObj Statement [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3147573" xml-lang="en-US" l10n="U">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> -<paragraph role="heading" id="hd_id3150504" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3147530" xml-lang="en-US" l10n="U" oldref="4">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -<paragraph role="heading" id="hd_id3153896" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3148552" xml-lang="en-US" l10n="U" oldref="6"> -<emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph> -<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U" oldref="7"> -<emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph role="paragraph" id="par_id3148798" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Keyword:</emph> Default variable type</paragraph> -<paragraph role="paragraph" id="par_id3150769" xml-lang="en-US" l10n="U" oldref="9"> -<emph>DefObj:</emph> Object</paragraph> -<paragraph role="heading" id="hd_id3156212" xml-lang="en-US" level="2" l10n="U" oldref="10">Example:</paragraph> -<paragraph role="paragraph" id="par_id3153969" xml-lang="en-US" l10n="U" oldref="12">REM Prefix definitions for variable types:</paragraph> -<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US" l10n="U" oldref="13">DefBool b</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U" oldref="14">DefDate t</paragraph> -<paragraph role="paragraph" id="par_id3150440" xml-lang="en-US" l10n="U" oldref="15">DefDbL d</paragraph> -<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U" oldref="16">DefInt i</paragraph> -<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U" oldref="17">DefLng l</paragraph> -<paragraph role="paragraph" id="par_id3149481" xml-lang="en-US" l10n="U" oldref="18">DefObj o</paragraph> -<paragraph role="paragraph" id="par_id3152886" xml-lang="en-US" l10n="U" oldref="19">DefVar v</paragraph> +<paragraph role="heading" id="hd_id3150504" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3147530" xml-lang="en-US" l10n="U">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> +<paragraph role="heading" id="hd_id3153896" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3148552" xml-lang="en-US" l10n="U"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph> +<paragraph role="paragraph" id="par_id3150358" xml-lang="en-US" l10n="U"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> +<paragraph role="paragraph" id="par_id3148798" xml-lang="en-US" l10n="U"><emph>Keyword:</emph> Default variable type</paragraph> +<paragraph role="paragraph" id="par_id3150769" xml-lang="en-US" l10n="U"><emph>DefObj:</emph> Object</paragraph> +<paragraph role="heading" id="hd_id3156212" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3153969" xml-lang="en-US" l10n="U">REM Prefix definitions for variable types:</paragraph> +<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US" l10n="U">DefBool b</paragraph> +<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U">DefDate t</paragraph> +<paragraph role="paragraph" id="par_id3150440" xml-lang="en-US" l10n="U">DefDbL d</paragraph> +<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U">DefInt i</paragraph> +<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U">DefLng l</paragraph> +<paragraph role="paragraph" id="par_id3149481" xml-lang="en-US" l10n="U">DefObj o</paragraph> +<paragraph role="paragraph" id="par_id3152886" xml-lang="en-US" l10n="U">DefVar v</paragraph> </body> </helpdocument>