diff options
Diffstat (limited to 'helpcontent2/source/text/sbasic/shared/03030106.xhp')
-rw-r--r-- | helpcontent2/source/text/sbasic/shared/03030106.xhp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/helpcontent2/source/text/sbasic/shared/03030106.xhp b/helpcontent2/source/text/sbasic/shared/03030106.xhp index e1690c69b..544c63fdf 100644 --- a/helpcontent2/source/text/sbasic/shared/03030106.xhp +++ b/helpcontent2/source/text/sbasic/shared/03030106.xhp @@ -54,13 +54,17 @@ <paragraph role="paragraph" id="par_id3163712" xml-lang="en-US" l10n="U" oldref="8"> <emph>Number:</emph> Integer expression that contains the serial date number that is used to calculate the year.</paragraph> <paragraph role="paragraph" id="par_id3152596" xml-lang="en-US" l10n="U" oldref="9">This function is the opposite of the <emph>DateSerial </emph>function, and returns the year of a serial date. For example, the expression:</paragraph> -<paragraph role="paragraph" id="par_id3154319" xml-lang="en-US" l10n="U" oldref="10">Print Year(DateSerial(1994, 12, 20))</paragraph> +<bascode> +<paragraph role="bascode" id="par_id3154319" xml-lang="en-US" localize="false">Print Year(DateSerial(1994, 12, 20))</paragraph> +</bascode> <paragraph role="paragraph" id="par_id3149483" xml-lang="en-US" l10n="U" oldref="11">returns the value 1994.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> <paragraph role="heading" id="hd_id3146985" xml-lang="en-US" level="2" l10n="U" oldref="12">Example:</paragraph> -<paragraph role="paragraph" id="par_id3153952" xml-lang="en-US" l10n="U" oldref="13">Sub ExampleYear</paragraph> -<paragraph role="paragraph" id="par_id3153363" xml-lang="en-US" l10n="U" oldref="14">MsgBox "" & Year(Now) ,64,"Current year"</paragraph> -<paragraph role="paragraph" id="par_id3145274" xml-lang="en-US" l10n="U" oldref="15">End sub</paragraph> +<bascode> +<paragraph role="bascode" id="par_id3153952" xml-lang="en-US" localize="false">Sub ExampleYear</paragraph> +<paragraph role="bascode" id="par_id3153363" xml-lang="en-US" l10n="U" oldref="14"> MsgBox "" & Year(Now) ,64,"Current year"</paragraph> +<paragraph role="bascode" id="par_id3145274" xml-lang="en-US" localize="false">End Sub</paragraph> +</bascode> </body> </helpdocument> |