diff options
Diffstat (limited to 'helpcontent2/source/text/sbasic/shared/03030104.xhp')
-rw-r--r-- | helpcontent2/source/text/sbasic/shared/03030104.xhp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/helpcontent2/source/text/sbasic/shared/03030104.xhp b/helpcontent2/source/text/sbasic/shared/03030104.xhp index 989f0af76..6addc4672 100644 --- a/helpcontent2/source/text/sbasic/shared/03030104.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030104.xhp @@ -54,13 +54,17 @@ <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> +<bascode> +<paragraph role="bascode" id="par_id3147426" xml-lang="en-US" localize="false">Print Month(DateSerial(1994, 12, 20))</paragraph> +</bascode> <paragraph role="paragraph" id="par_id3145366" xml-lang="en-US" l10n="U" oldref="11">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> +<bascode> +<paragraph role="bascode" id="par_id3156442" xml-lang="en-US" localize="false">Sub ExampleMonth</paragraph> +<paragraph role="bascode" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="14"> MsgBox "" & Month(Now) ,64,"The current month"</paragraph> +<paragraph role="bascode" id="par_id3150012" xml-lang="en-US" localize="false">End Sub</paragraph> +</bascode> </body> </helpdocument> |