From d019e26d52e1a8850a9ab6fed71e28c659ca75f5 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 26 Nov 2004 13:55:36 +0000 Subject: INTEGRATION: CWS helpcontentbeta (1.1.2); FILE MERGED 2004/09/16 11:45:21 fpe 1.1.2.1: Regular Update --- .../source/text/sbasic/shared/03030102.xhp | 54 +++++++------- .../source/text/sbasic/shared/03030103.xhp | 53 +++++++------- .../source/text/sbasic/shared/03030104.xhp | 54 +++++++------- .../source/text/sbasic/shared/03030105.xhp | 85 +++++++++++----------- 4 files changed, 128 insertions(+), 118 deletions(-) diff --git a/helpcontent2/source/text/sbasic/shared/03030102.xhp b/helpcontent2/source/text/sbasic/shared/03030102.xhp index 18221cc211..0d1a3cb6c7 100755 --- a/helpcontent2/source/text/sbasic/shared/03030102.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030102.xhp @@ -52,39 +52,41 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -DateValue Function [Runtime] +DateValue Function [Runtime] /text/sbasic/shared/03030102.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- DateValue;functionDateValue Function [Runtime] - Returns a number from a date string. The date string is a complete date in a single numeric value. You can also use this serial number to determine the difference between two dates. -
- Syntax: - DateValue [(date)] - Return value: - Long - Parameters: - Date: String expression that contains the date that you want to calculate. The date can be specified in almost any format. - You can use this function to convert a date that occurs between December 1, 1582 and December 31, 9999 into a single integer value. You can then use this value to calculate the difference between two dates. If the date argument lies outside the acceptable range, $[officename] Basic returns an error message. - In contrast to the DateSerial function that passes years, months, and days as separate numeric values, the DateValue function passes the date using the format "month.[,]day.[,]year". - - - - Example: - Sub ExampleDateValue - msgbox DateValue("12/02/1997") - end sub - - +
+DateValue function + +DateValue Function [Runtime] +Returns a number from a date string. The date string is a complete date in a single numeric value. You can also use this serial number to determine the difference between two dates. +
+Syntax: +DateValue [(date)] +Return value: +Long +Parameters: + +Date: String expression that contains the date that you want to calculate. The date can be specified in almost any format. +You can use this function to convert a date that occurs between December 1, 1582 and December 31, 9999 into a single integer value. You can then use this value to calculate the difference between two dates. If the date argument lies outside the acceptable range, $[officename] Basic returns an error message. +In contrast to the DateSerial function that passes years, months, and days as separate numeric values, the DateValue function passes the date using the format "month.[,]day.[,]year". + + + +Example: +Sub ExampleDateValue +msgbox DateValue("12/02/1997") +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03030103.xhp b/helpcontent2/source/text/sbasic/shared/03030103.xhp index 0676360453..0188b6e4d4 100755 --- a/helpcontent2/source/text/sbasic/shared/03030103.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030103.xhp @@ -52,38 +52,41 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Day Function [Runtime] +Day Function [Runtime] /text/sbasic/shared/03030103.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Day;functionDay Function [Runtime] - Returns a value that represents the day of the month based on a serial date number generated by DateSerial or DateValue. -
- Syntax: - Day (Number) - Return value: - Integer - Parameters: - Number: A numeric expression that contains a serial date number from which you can determine the day of the month. - This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the DateSerial or the DateValue function. For example, the expression - Print Day (DateSerial(1994, 12, 20)) - returns the value 20. - - - Example: - sub ExampleDay - Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month" - end sub - +
+Day function + +Day Function [Runtime] +Returns a value that represents the day of the month based on a serial date number generated by DateSerial or DateValue. +
+Syntax: +Day (Number) +Return value: +Integer +Parameters: + +Number: A numeric expression that contains a serial date number from which you can determine the day of the month. +This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the DateSerial or the DateValue function. For example, the expression +Print Day (DateSerial(1994, 12, 20)) +returns the value 20. + + +Example: +sub ExampleDay +Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month" +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03030104.xhp b/helpcontent2/source/text/sbasic/shared/03030104.xhp index 42fe7c452d..31a6a554d0 100755 --- a/helpcontent2/source/text/sbasic/shared/03030104.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030104.xhp @@ -52,39 +52,41 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Month Function [Runtime] +Month Function [Runtime] /text/sbasic/shared/03030104.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Month;functionMonth Function [Runtime] - Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function. -
- Syntax: - Month (Number) - Return value: - Integer - Parameters: - Number: Numeric expression that contains the serial date number that is used to determine the month of the year. - This function is the opposite of the DateSerial function. It returns the month in the year that corresponds to the serial date that is generated by DateSerial or DateValue. For example, the expression - Print Month(DateSerial(1994, 12, 20)) - returns the value 12. - - - Example: - Sub ExampleMonth - MsgBox "" & Month(Now) ,64,"The current month" - End sub - - +
+Month function + +Month Function [Runtime] +Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function. +
+Syntax: +Month (Number) +Return value: +Integer +Parameters: + +Number: Numeric expression that contains the serial date number that is used to determine the month of the year. +This function is the opposite of the DateSerial function. It returns the month in the year that corresponds to the serial date that is generated by DateSerial or DateValue. For example, the expression +Print Month(DateSerial(1994, 12, 20)) +returns the value 12. + + +Example: +Sub ExampleMonth +MsgBox "" & Month(Now) ,64,"The current month" +End sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03030105.xhp b/helpcontent2/source/text/sbasic/shared/03030105.xhp index ae189f8ffa..ff6b25addf 100755 --- a/helpcontent2/source/text/sbasic/shared/03030105.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030105.xhp @@ -52,54 +52,57 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -WeekDay Function [Runtime] +WeekDay Function [Runtime] /text/sbasic/shared/03030105.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- WeekDay;functionWeekDay Function [Runtime] - Returns the number corresponding to the weekday represented by a serial date number that is generated by the DateSerial or the DateValue function. -
- Syntax: - WeekDay (Number) - Return value: - Integer - Parameters: - Number: Integer expression that contains the serial date number that is used to calculate the day of the week (1-7). - The following example determines the day of the week using the WeekDay function when you enter a date. - - - Example: - Sub ExampleWeekDay - Dim sDay As String - REM Return and display the day of the week - Select Case WeekDay( Now ) - case 1 - sDay="Sunday" - case 2 - sDay="Monday" - case 3 - sDay="Tuesday" - case 4 - sDay="Wednesday" - case 5 - sDay="Thursday" - case 6 - sDay="Friday" - case 7 - sDay="Saturday" - End Select - msgbox "" + sDay,64,"Today is" - End Sub - +
+WeekDay function + +WeekDay Function [Runtime] +Returns the number corresponding to the weekday represented by a serial date number that is generated by the DateSerial or the DateValue function. +
+Syntax: +WeekDay (Number) +Return value: +Integer +Parameters: + +Number: Integer expression that contains the serial date number that is used to calculate the day of the week (1-7). +The following example determines the day of the week using the WeekDay function when you enter a date. + + +Example: +Sub ExampleWeekDay +Dim sDay As String +REM Return and display the day of the week +Select Case WeekDay( Now ) +case 1 +sDay="Sunday" +case 2 +sDay="Monday" +case 3 +sDay="Tuesday" +case 4 +sDay="Wednesday" +case 5 +sDay="Thursday" +case 6 +sDay="Friday" +case 7 +sDay="Saturday" +End Select +msgbox "" + sDay,64,"Today is" +End Sub +
-- cgit v1.2.3