diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2021-04-28 13:54:43 +0200 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2021-04-28 19:08:53 +0200 |
commit | 914fe5ffbb1a3fde750cf37cbc44008994cf3b42 (patch) | |
tree | ba96973f7104e2e4cbc960db18933079ac3f1f31 /source | |
parent | 49937bb740e70e6a244f9f4e9a30b7541815e62e (diff) |
Improve link
Change-Id: I209a986ce8a6b7ff995724eec0de55393f518050
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114723
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/shared/01020100.xhp | 9 | ||||
-rw-r--r-- | source/text/sbasic/shared/03040000.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03102100.xhp | 2 |
3 files changed, 20 insertions, 15 deletions
diff --git a/source/text/sbasic/shared/01020100.xhp b/source/text/sbasic/shared/01020100.xhp index 6866a7429b..498c8b139c 100644 --- a/source/text/sbasic/shared/01020100.xhp +++ b/source/text/sbasic/shared/01020100.xhp @@ -224,8 +224,9 @@ <paragraph role="bascode" localize="false" id="bas_id731619553195384">myVar = 10</paragraph> <paragraph role="bascode" localize="false" id="bas_id211619553195648">MsgBox TypeName(myVar) ' Integer</paragraph> </bascode> -<note id="par_id141619553442668">A <emph>Variant</emph> variable is initialized with the <emph>Empty</emph> special data type. You can use the <link href="text/sbasic/shared/03102400.xhp" name="IsEmpty function">IsEmpty function</link> to test if a variable is an <emph>Empty Variant</emph>.</note> -<paragraph role="paragraph" id="par_id541619552755706">You can also use the keyword <emph>Any</emph> to declare a variable as a <emph>Variant</emph>. In Basic, variables declared as <emph>Any</emph> are treated exactly as <emph>Variant</emph> variables.</paragraph> +<note id="par_id141619553442668">A <emph>Variant</emph> variable is initialized with the <link href="text/sbasic/shared/03040000.xhp#objectconstants" name=" object constants">Empty</link> special data type. You can use the <link href="text/sbasic/shared/03102400.xhp" name="IsEmpty function">IsEmpty function</link> to test if a variable is an <emph>Empty Variant</emph>.</note> +<paragraph role="paragraph" id="par_id541619552755706">You can also use the keyword <emph>Any</emph> to declare a variable as a <emph>Variant</emph>. However, <emph>Any</emph> is deprecated and is available for backward compatibility.</paragraph> +<warning id="par_id711619622934043">Arguments with type <emph>Variant</emph> or <emph>Any</emph> passed in function calls are not checked for their types.</warning> <bascode> <paragraph role="bascode" id="bas_id141619552837486">Dim myVar As Any ' Variable "myVar" is a Variant</paragraph> </bascode> @@ -254,5 +255,9 @@ <bascode> <paragraph id="par_idm1341038256" role="bascode" localize="false" xml-lang="en-US">Const ConstName=Expression</paragraph> </bascode> + <section id="relatedtopics"> + <paragraph role="paragraph" id="par_id281619620439154" localize="false"><embedvar href="text/sbasic/shared/03040000.xhp#basicconstantsh1" markup="ignore"/></paragraph> + <paragraph role="paragraph" id="par_id641619620637722" localize="false"><embedvar href="text/sbasic/shared/03102100.xhp#Dimh1" markup="ignore"/></paragraph> +</section> </body> </helpdocument> diff --git a/source/text/sbasic/shared/03040000.xhp b/source/text/sbasic/shared/03040000.xhp index 0bcdb47e92..86c1507df4 100644 --- a/source/text/sbasic/shared/03040000.xhp +++ b/source/text/sbasic/shared/03040000.xhp @@ -30,7 +30,7 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id051720170831387233"> <bookmark_value>Basic constants</bookmark_value> </bookmark> - <paragraph id="hd_id051620171022255424" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03040000.xhp">Basic Constants</link></paragraph> + <h1 id="hd_id051620171022255424"><variable id="basicconstantsh1"><link href="text/sbasic/shared/03040000.xhp">Basic Constants</link></variable></h1> <paragraph id="par_id051620171022384640" role="paragraph" xml-lang="en-US"><ahelp hid=".">Constants used in Basic programs</ahelp></paragraph> </section> @@ -196,7 +196,7 @@ <paragraph id="par_id051620171114576576" role="bascode" localize="false">End Sub</paragraph> <paragraph id="par_id051620171114573781" role="bascode" localize="false">Sub ExampleNull</paragraph> <paragraph id="par_id051620171114584136" role="bascode" localize="false">Dim vVar As Variant</paragraph> - <paragraph id="par_id05162017111458231" role="bascode" localize="false" > MsgBox IsNull(vVar)</paragraph> + <paragraph id="par_id05162017111458231" role="bascode" localize="false"> MsgBox IsNull(vVar)</paragraph> <paragraph id="par_id051620171114581488" role="bascode" localize="false">End Sub</paragraph> <paragraph id="par_id051720170824102912" role="bascode" localize="false">Sub ExampleNothing</paragraph> <paragraph id="par_id051720170824104202" role="bascode" localize="false">Dim oDoc As Object</paragraph> @@ -225,7 +225,7 @@ <paragraph id="par_id891512312916493" role="tablehead" xml-lang="en-US">Hexadecimal (decimal) value</paragraph> </tablecell> <tablecell> - <paragraph id="par_id991512312965968" role="tablehead" xml-lang="en-US" >Description</paragraph> + <paragraph id="par_id991512312965968" role="tablehead" xml-lang="en-US">Description</paragraph> </tablecell> </tablerow> <tablerow> @@ -280,7 +280,7 @@ <paragraph id="par_id691512313750520" role="paragraph" localize="false">\x0D\x0A (13 10)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id961512313881937" role="paragraph" xml-lang="en-US" >CRLF - Carriage return and line feed</paragraph> + <paragraph id="par_id961512313881937" role="paragraph" xml-lang="en-US">CRLF - Carriage return and line feed</paragraph> </tablecell> </tablerow> <tablerow> @@ -291,7 +291,7 @@ <paragraph id="par_id341512313761295" role="paragraph" localize="false">\x0c (12)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id221512313889077" role="paragraph" xml-lang="en-US" >FF - Form feed</paragraph> + <paragraph id="par_id221512313889077" role="paragraph" xml-lang="en-US">FF - Form feed</paragraph> </tablecell> </tablerow> <tablerow> @@ -302,7 +302,7 @@ <paragraph id="par_id311512313777558" role="paragraph" localize="false">\x0A (10)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id621512313896169" role="paragraph" xml-lang="en-US" >LF - Line feed</paragraph> + <paragraph id="par_id621512313896169" role="paragraph" xml-lang="en-US">LF - Line feed</paragraph> </tablecell> </tablerow> <tablerow> @@ -310,11 +310,11 @@ <paragraph id="par_id191512313300610" role="paragraph" localize="false">vbNewLine</paragraph> </tablecell> <tablecell> - <paragraph id="par_id521512319135830" role="listitem" xml-lang="en-US">\x0D\x0A (13 10) for Windows</paragraph> - <paragraph id="par_id61512319163913" role="listitem" xml-lang="en-US">\x0A (10) for other systems</paragraph> + <paragraph id="par_id521512319135830" role="listitem" xml-lang="en-US">\x0D\x0A (13 10) for Windows</paragraph> + <paragraph id="par_id61512319163913" role="listitem" xml-lang="en-US">\x0A (10) for other systems</paragraph> </tablecell> <tablecell> - <paragraph id="par_id151512313904989" role="paragraph" xml-lang="en-US" >LF or CRLF </paragraph> + <paragraph id="par_id151512313904989" role="paragraph" xml-lang="en-US">LF or CRLF </paragraph> </tablecell> </tablerow> <tablerow> @@ -325,7 +325,7 @@ <paragraph id="par_id141512313800110" role="paragraph" localize="false">""</paragraph> </tablecell> <tablecell> - <paragraph id="par_id741512313911049" role="paragraph" xml-lang="en-US" >Null string</paragraph> + <paragraph id="par_id741512313911049" role="paragraph" xml-lang="en-US">Null string</paragraph> </tablecell> </tablerow> <tablerow> @@ -336,7 +336,7 @@ <paragraph id="par_id241512313810064" role="paragraph" localize="false">\x09 (9)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id951512313918356" role="paragraph" xml-lang="en-US" >HT - Horizontal tab</paragraph> + <paragraph id="par_id951512313918356" role="paragraph" xml-lang="en-US">HT - Horizontal tab</paragraph> </tablecell> </tablerow> <tablerow> @@ -347,7 +347,7 @@ <paragraph id="par_id991512313821414" role="paragraph" localize="false">\x0B (11)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id351512313924593" role="paragraph" xml-lang="en-US" >VT - Vertical tab</paragraph> + <paragraph id="par_id351512313924593" role="paragraph" xml-lang="en-US">VT - Vertical tab</paragraph> </tablecell> </tablerow> </table> diff --git a/source/text/sbasic/shared/03102100.xhp b/source/text/sbasic/shared/03102100.xhp index 7fc1e496f4..8413c080e5 100644 --- a/source/text/sbasic/shared/03102100.xhp +++ b/source/text/sbasic/shared/03102100.xhp @@ -34,7 +34,7 @@ <bookmark_value>dimensioning arrays</bookmark_value> </bookmark> -<h1 id="hd_id3149812" xml-lang="en-US"><link href="text/sbasic/shared/03102100.xhp" name="Dim Statement">Dim Statement</link></h1> +<h1 id="hd_id3149812" xml-lang="en-US"><variable id="Dimh1"><link href="text/sbasic/shared/03102100.xhp" name="Dim Statement">Dim Statement</link></variable></h1> <paragraph id="par_id3143271" role="paragraph">Declares variables or arrays.</paragraph> </section> |