This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push: new 5688d2cadb Remove 'oldref' entries (work in progress) 5688d2cadb is described below commit 5688d2cadbfe3b0e77a515ac387bbd24bed36c5d Author: mseidel <msei...@apache.org> AuthorDate: Sat Nov 30 13:34:07 2024 +0100 Remove 'oldref' entries (work in progress) --- .../source/text/sbasic/shared/03020305.xhp | 18 +++++----- .../source/text/sbasic/shared/03030201.xhp | 32 +++++++++--------- .../source/text/sbasic/shared/03070400.xhp | 38 ++++++++++------------ .../source/text/sbasic/shared/03090407.xhp | 29 ++++++++--------- .../source/text/sbasic/shared/03100300.xhp | 29 ++++++++--------- 5 files changed, 69 insertions(+), 77 deletions(-) diff --git a/main/helpcontent2/source/text/sbasic/shared/03020305.xhp b/main/helpcontent2/source/text/sbasic/shared/03020305.xhp index c914aa9cab..35a2a79708 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03020305.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03020305.xhp @@ -32,18 +32,16 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3159413"> <bookmark_value>Seek statement</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3159413" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03020305.xhp" name="Seek Statement [Runtime]">Seek Statement [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3153381" xml-lang="en-US" l10n="CHG" oldref="2">Sets the position for the next writing or reading in a file that was opened with the Open statement.<comment>UFI: see #61751</comment></paragraph> +<paragraph role="heading" id="hd_id3159413" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03020305.xhp" name="Seek Statement [Runtime]">Seek Statement [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3153381" xml-lang="en-US" l10n="CHG">Sets the position for the next writing or reading in a file that was opened with the Open statement.<comment>UFI: see #61751</comment></paragraph> <paragraph role="paragraph" id="par_id2100589" xml-lang="en-US" l10n="NEW">For random access files, the Seek statement sets the number of the next record to be accessed.</paragraph> <paragraph role="paragraph" id="par_id5444807" xml-lang="en-US" l10n="NEW">For all other files, the Seek statement sets the byte position at which the next operation is to occur.</paragraph> -<paragraph role="paragraph" id="par_id3156280" xml-lang="en-US" l10n="U" oldref="5">See also: <link href="text/sbasic/shared/03020103.xhp" name="Open">Open</link>, <link href="text/sbasic/shared/03020304.xhp" name="Seek">Seek</link>.</paragraph> -<paragraph role="heading" id="hd_id3145785" xml-lang="en-US" level="2" l10n="U" oldref="6">Syntax:</paragraph> -<paragraph role="code" id="par_id3145273" xml-lang="en-US" l10n="CHG" oldref="7">Seek[#FileNumber], Position (As Long)</paragraph> -<paragraph role="heading" id="hd_id3154321" xml-lang="en-US" level="2" l10n="U" oldref="8">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3153952" xml-lang="en-US" l10n="CHG" oldref="9"> -<emph>FileNumber:</emph> The data channel number used in the Open statement.</paragraph> -<paragraph role="paragraph" id="par_id3145366" xml-lang="en-US" l10n="U" oldref="10"> -<emph>Position:</emph> Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.</paragraph> +<paragraph role="paragraph" id="par_id3156280" xml-lang="en-US" l10n="U">See also: <link href="text/sbasic/shared/03020103.xhp" name="Open">Open</link>, <link href="text/sbasic/shared/03020304.xhp" name="Seek">Seek</link>.</paragraph> +<paragraph role="heading" id="hd_id3145785" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="code" id="par_id3145273" xml-lang="en-US" l10n="CHG">Seek[#FileNumber], Position (As Long)</paragraph> +<paragraph role="heading" id="hd_id3154321" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3153952" xml-lang="en-US" l10n="CHG"><emph>FileNumber:</emph> The data channel number used in the Open statement.</paragraph> +<paragraph role="paragraph" id="par_id3145366" xml-lang="en-US" l10n="U"><emph>Position:</emph> Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> <embed href="text/sbasic/shared/00000003.xhp#err52"/> diff --git a/main/helpcontent2/source/text/sbasic/shared/03030201.xhp b/main/helpcontent2/source/text/sbasic/shared/03030201.xhp index b74da6f389..168a925bbf 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03030201.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03030201.xhp @@ -33,25 +33,23 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3156042"> <bookmark_value>Hour function</bookmark_value> </bookmark> -<paragraph xml-lang="en-US" id="hd_id3156042" role="heading" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030201.xhp" name="Hour Function [Runtime]">Hour Function [Runtime]</link></paragraph> -<paragraph xml-lang="en-US" id="par_id3149346" role="paragraph" l10n="U" oldref="2">Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3156042" role="heading" level="1" l10n="U"><link href="text/sbasic/shared/03030201.xhp" name="Hour Function [Runtime]">Hour Function [Runtime]</link></paragraph> +<paragraph xml-lang="en-US" id="par_id3149346" role="paragraph" l10n="U">Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function.</paragraph> </section> -<paragraph xml-lang="en-US" id="hd_id3147574" role="heading" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph xml-lang="en-US" id="par_id3147264" role="paragraph" l10n="U" oldref="4">Hour (Number)</paragraph> -<paragraph xml-lang="en-US" id="hd_id3145069" role="heading" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph xml-lang="en-US" id="par_id3149670" role="paragraph" l10n="U" oldref="6">Integer</paragraph> -<paragraph xml-lang="en-US" id="hd_id3150359" role="heading" level="2" l10n="U" oldref="7">Parameters:</paragraph> -<paragraph xml-lang="en-US" id="par_id3154366" role="paragraph" l10n="U" oldref="8"> -<emph>Number:</emph> Numeric expression that contains the serial time value that is used to return the hour value.</paragraph> -<paragraph xml-lang="en-US" id="par_id3154909" role="paragraph" l10n="U" oldref="9">This function is the opposite of the <emph>TimeSerial</emph> function. It returns an integer value that represents the hour from a time value that is generated by the <emph>TimeSerial</emph> or the <emph>TimeValue</emph> function. For example, the expression</paragraph> -<paragraph xml-lang="en-US" id="par_id3163798" role="paragraph" l10n="CHG" oldref="10">Print Hour(TimeSerial(12,30,41))</paragraph> -<paragraph xml-lang="en-US" id="par_id3155132" role="paragraph" l10n="U" oldref="11">returns the value 12.</paragraph> +<paragraph xml-lang="en-US" id="hd_id3147574" role="heading" level="2" l10n="U">Syntax:</paragraph> +<paragraph xml-lang="en-US" id="par_id3147264" role="paragraph" l10n="U">Hour (Number)</paragraph> +<paragraph xml-lang="en-US" id="hd_id3145069" role="heading" level="2" l10n="U">Return value:</paragraph> +<paragraph xml-lang="en-US" id="par_id3149670" role="paragraph" l10n="U">Integer</paragraph> +<paragraph xml-lang="en-US" id="hd_id3150359" role="heading" level="2" l10n="U">Parameters:</paragraph> +<paragraph xml-lang="en-US" id="par_id3154366" role="paragraph" l10n="U"><emph>Number:</emph> Numeric expression that contains the serial time value that is used to return the hour value.</paragraph> +<paragraph xml-lang="en-US" id="par_id3154909" role="paragraph" l10n="U">This function is the opposite of the <emph>TimeSerial</emph> function. It returns an integer value that represents the hour from a time value that is generated by the <emph>TimeSerial</emph> or the <emph>TimeValue</emph> function. For example, the expression</paragraph> +<paragraph xml-lang="en-US" id="par_id3163798" role="paragraph" l10n="CHG">Print Hour(TimeSerial(12,30,41))</paragraph> +<paragraph xml-lang="en-US" id="par_id3155132" role="paragraph" l10n="U">returns the value 12.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph xml-lang="en-US" id="hd_id3147348" role="heading" level="2" l10n="U" -oldref="12">Example:</paragraph> -<paragraph xml-lang="en-US" id="par_id3146985" role="paragraph" l10n="U" oldref="13">Sub ExampleHour</paragraph> -<paragraph xml-lang="en-US" id="par_id3156441" role="paragraph" l10n="U" oldref="14">Print "The current hour is " & Hour( Now )</paragraph> -<paragraph xml-lang="en-US" id="par_id3153145" role="paragraph" l10n="U" oldref="15">End Sub</paragraph> +<paragraph xml-lang="en-US" id="hd_id3147348" role="heading" level="2" l10n="U">Example:</paragraph> +<paragraph xml-lang="en-US" id="par_id3146985" role="paragraph" l10n="U">Sub ExampleHour</paragraph> +<paragraph xml-lang="en-US" id="par_id3156441" role="paragraph" l10n="U">Print "The current hour is " & Hour( Now )</paragraph> +<paragraph xml-lang="en-US" id="par_id3153145" role="paragraph" l10n="U">End Sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03070400.xhp b/main/helpcontent2/source/text/sbasic/shared/03070400.xhp index c8ee685c80..4f14d73f7c 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03070400.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03070400.xhp @@ -33,26 +33,24 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3150669"> <bookmark_value>"/" 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/03070400.xhp">"/" Operator [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3149670" xml-lang="en-US" l10n="U" oldref="2">Divides two values.</paragraph> +<paragraph role="heading" id="hd_id3150669" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03070400.xhp">"/" Operator [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3149670" xml-lang="en-US" l10n="U">Divides 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_id3153360" xml-lang="en-US" l10n="U" oldref="4">Result = Expression1 / Expression2</paragraph> -<paragraph role="heading" id="hd_id3150359" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3154141" xml-lang="en-US" l10n="U" oldref="6"> -<emph>Result:</emph> Any numerical value that contains the result of the division.</paragraph> -<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U" oldref="7"> -<emph>Expression1, Expression2:</emph> Any numerical expressions that you want to divide.</paragraph> -<paragraph role="heading" id="hd_id3154684" xml-lang="en-US" level="2" l10n="U" oldref="8">Example:</paragraph> -<paragraph role="paragraph" id="par_id3145786" xml-lang="en-US" l10n="U" oldref="9">Sub ExampleDivision1</paragraph> -<paragraph role="paragraph" id="par_id3153768" xml-lang="en-US" l10n="U" oldref="10">Print 5 / 5</paragraph> -<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U" oldref="11">End sub</paragraph> -<paragraph role="paragraph" id="par_id3149484" xml-lang="en-US" l10n="U" oldref="13">Sub ExampleDivision2</paragraph> -<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U" oldref="14">Dim iValue1 as Integer</paragraph> -<paragraph role="paragraph" id="par_id3146119" xml-lang="en-US" l10n="U" oldref="15">Dim iValue2 as Integer</paragraph> -<paragraph role="paragraph" id="par_id3150011" xml-lang="en-US" l10n="U" oldref="16">iValue1 = 5</paragraph> -<paragraph role="paragraph" id="par_id3153726" xml-lang="en-US" l10n="U" oldref="17">iValue2 = 10</paragraph> -<paragraph role="paragraph" id="par_id3151117" xml-lang="en-US" l10n="U" oldref="18">Print iValue1 / iValue2</paragraph> -<paragraph role="paragraph" id="par_id3146975" 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_id3153360" xml-lang="en-US" l10n="U">Result = Expression1 / Expression2</paragraph> +<paragraph role="heading" id="hd_id3150359" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3154141" xml-lang="en-US" l10n="U"><emph>Result:</emph> Any numerical value that contains the result of the division.</paragraph> +<paragraph role="paragraph" id="par_id3150448" xml-lang="en-US" l10n="U"><emph>Expression1, Expression2:</emph> Any numerical expressions that you want to divide.</paragraph> +<paragraph role="heading" id="hd_id3154684" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3145786" xml-lang="en-US" l10n="U">Sub ExampleDivision1</paragraph> +<paragraph role="paragraph" id="par_id3153768" xml-lang="en-US" l10n="U">Print 5 / 5</paragraph> +<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US" l10n="U">End sub</paragraph> +<paragraph role="paragraph" id="par_id3149484" xml-lang="en-US" l10n="U">Sub ExampleDivision2</paragraph> +<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U">Dim iValue1 as Integer</paragraph> +<paragraph role="paragraph" id="par_id3146119" xml-lang="en-US" l10n="U">Dim iValue2 as Integer</paragraph> +<paragraph role="paragraph" id="par_id3150011" xml-lang="en-US" l10n="U">iValue1 = 5</paragraph> +<paragraph role="paragraph" id="par_id3153726" xml-lang="en-US" l10n="U">iValue2 = 10</paragraph> +<paragraph role="paragraph" id="par_id3151117" xml-lang="en-US" l10n="U">Print iValue1 / iValue2</paragraph> +<paragraph role="paragraph" id="par_id3146975" xml-lang="en-US" l10n="U">End Sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03090407.xhp b/main/helpcontent2/source/text/sbasic/shared/03090407.xhp index d8bff00031..34c8a85470 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03090407.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03090407.xhp @@ -34,22 +34,21 @@ <bookmark_value>Rem statement</bookmark_value> <bookmark_value>comments;Rem statement</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3154347" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03090407.xhp" name="Rem Statement [Runtime]">Rem Statement [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3153525" xml-lang="en-US" l10n="U" oldref="2">Specifies that a program line is a comment.</paragraph> +<paragraph role="heading" id="hd_id3154347" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03090407.xhp" name="Rem Statement [Runtime]">Rem Statement [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3153525" xml-lang="en-US" l10n="U">Specifies that a program line is a comment.</paragraph> </section> -<paragraph role="heading" id="hd_id3153360" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3154141" xml-lang="en-US" l10n="U" oldref="4">Rem Text</paragraph> -<paragraph role="heading" id="hd_id3151042" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3150869" xml-lang="en-US" l10n="U" oldref="6"> -<emph>Text:</emph> Any text that serves as a comment.</paragraph> -<paragraph role="tip" id="par_id3147318" xml-lang="en-US" l10n="U" oldref="7">You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.</paragraph> +<paragraph role="heading" id="hd_id3153360" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3154141" xml-lang="en-US" l10n="U">Rem Text</paragraph> +<paragraph role="heading" id="hd_id3151042" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3150869" xml-lang="en-US" l10n="U"><emph>Text:</emph> Any text that serves as a comment.</paragraph> +<paragraph role="tip" id="par_id3147318" xml-lang="en-US" l10n="U">You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.</paragraph> <paragraph role="note" id="par_id6187017" xml-lang="en-US" l10n="NEW">You can use a space followed by the underline character _ as the last two characters of a line to continue the logical line on the next line. To continue comment lines, you must enter "Option Compatible" in the same Basic module.</paragraph> -<paragraph role="heading" id="hd_id3150012" xml-lang="en-US" level="2" l10n="U" oldref="8">Example:</paragraph> -<paragraph role="paragraph" id="par_id3152939" xml-lang="en-US" l10n="U" oldref="9">Sub ExampleMid</paragraph> -<paragraph role="paragraph" id="par_id3153142" xml-lang="en-US" l10n="U" oldref="10">DIM sVar As String</paragraph> -<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U" oldref="11">sVar = "Las Vegas"</paragraph> -<paragraph role="paragraph" id="par_id3146984" xml-lang="en-US" l10n="U" oldref="12">Print Mid(sVar,3,5) REM Returns "s Veg"</paragraph> -<paragraph role="paragraph" id="par_id3153140" xml-lang="en-US" l10n="U" oldref="13">REM Nothing occurs here</paragraph> -<paragraph role="paragraph" id="par_id3152596" xml-lang="en-US" l10n="U" oldref="14">end sub</paragraph> +<paragraph role="heading" id="hd_id3150012" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3152939" xml-lang="en-US" l10n="U">Sub ExampleMid</paragraph> +<paragraph role="paragraph" id="par_id3153142" xml-lang="en-US" l10n="U">DIM sVar As String</paragraph> +<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US" l10n="U">sVar = "Las Vegas"</paragraph> +<paragraph role="paragraph" id="par_id3146984" xml-lang="en-US" l10n="U">Print Mid(sVar,3,5) REM Returns "s Veg"</paragraph> +<paragraph role="paragraph" id="par_id3153140" xml-lang="en-US" l10n="U">REM Nothing occurs here</paragraph> +<paragraph role="paragraph" id="par_id3152596" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument> diff --git a/main/helpcontent2/source/text/sbasic/shared/03100300.xhp b/main/helpcontent2/source/text/sbasic/shared/03100300.xhp index fc3de4201d..ea784ca961 100644 --- a/main/helpcontent2/source/text/sbasic/shared/03100300.xhp +++ b/main/helpcontent2/source/text/sbasic/shared/03100300.xhp @@ -33,23 +33,22 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3150772"> <bookmark_value>CDate function</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3150772" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03100300.xhp" name="CDate Function [Runtime]">CDate Function [Runtime]</link></paragraph> -<paragraph role="paragraph" id="par_id3150986" xml-lang="en-US" l10n="U" oldref="2">Converts any string or numeric expression to a date value.</paragraph> +<paragraph role="heading" id="hd_id3150772" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03100300.xhp" name="CDate Function [Runtime]">CDate Function [Runtime]</link></paragraph> +<paragraph role="paragraph" id="par_id3150986" xml-lang="en-US" l10n="U">Converts any string or numeric expression to a date value.</paragraph> </section> -<paragraph role="heading" id="hd_id3148944" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3148947" xml-lang="en-US" l10n="U" oldref="4">CDate (Expression)</paragraph> -<paragraph role="heading" id="hd_id3148552" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph> -<paragraph role="paragraph" id="par_id3159414" xml-lang="en-US" l10n="U" oldref="6">Date</paragraph> -<paragraph role="heading" id="hd_id3153525" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3150359" xml-lang="en-US" l10n="U" oldref="8"> -<emph>Expression:</emph> Any string or numeric expression that you want to convert.</paragraph> -<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="U" oldref="9">When you convert a string expression, the date and time must be entered in the format MM.DD.YYYY HH.MM.SS, as defined by the <emph>DateValue</emph> and <emph>TimeValue</emph> function conventions. In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time.</paragraph> +<paragraph role="heading" id="hd_id3148944" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> +<paragraph role="paragraph" id="par_id3148947" xml-lang="en-US" l10n="U">CDate (Expression)</paragraph> +<paragraph role="heading" id="hd_id3148552" xml-lang="en-US" level="2" l10n="U">Return value:</paragraph> +<paragraph role="paragraph" id="par_id3159414" xml-lang="en-US" l10n="U">Date</paragraph> +<paragraph role="heading" id="hd_id3153525" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> +<paragraph role="paragraph" id="par_id3150359" xml-lang="en-US" l10n="U"><emph>Expression:</emph> Any string or numeric expression that you want to convert.</paragraph> +<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US" l10n="U">When you convert a string expression, the date and time must be entered in the format MM.DD.YYYY HH.MM.SS, as defined by the <emph>DateValue</emph> and <emph>TimeValue</emph> function conventions. In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3156422" 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="11">sub ExampleCDate</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U" oldref="12">MsgBox cDate(1000.25) REM 09.26.1902 06:00:00</paragraph> -<paragraph role="paragraph" id="par_id3155133" xml-lang="en-US" l10n="U" oldref="13">MsgBox cDate(1001.26) REM 09.27.1902 06:14:24</paragraph> -<paragraph role="paragraph" id="par_id3153140" xml-lang="en-US" l10n="U" oldref="14">end sub</paragraph> +<paragraph role="heading" id="hd_id3156422" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> +<paragraph role="paragraph" id="par_id3153969" xml-lang="en-US" l10n="U">sub ExampleCDate</paragraph> +<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U">MsgBox cDate(1000.25) REM 09.26.1902 06:00:00</paragraph> +<paragraph role="paragraph" id="par_id3155133" xml-lang="en-US" l10n="U">MsgBox cDate(1001.26) REM 09.27.1902 06:14:24</paragraph> +<paragraph role="paragraph" id="par_id3153140" xml-lang="en-US" l10n="U">end sub</paragraph> </body> </helpdocument>