diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-05-16 18:20:38 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-05-19 15:49:35 +0200 |
commit | bc9c15f996e91256162d8585adf970123f6dd559 (patch) | |
tree | 6974bd307f3200696ede3435c0f5c8fa49376cff | |
parent | a84bab2f268706f603f32670317599dc6c0ac23d (diff) |
tdf#84675 (part2) Document hidden BASIC constants
Constants for TypeName/Vartype
add tablehead style
Change-Id: Ic613e1552af96df4a57d461600e26c11d5b289c2
Reviewed-on: https://gerrit.libreoffice.org/37692
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
(cherry picked from commit 115035ec9e29cc0db7837a52cd7ee8527526d6b1)
Reviewed-on: https://gerrit.libreoffice.org/37771
-rw-r--r-- | source/text/sbasic/shared/03103600.xhp | 96 |
1 files changed, 75 insertions, 21 deletions
diff --git a/source/text/sbasic/shared/03103600.xhp b/source/text/sbasic/shared/03103600.xhp index 33a0d2c5a4..bb1da9b399 100644 --- a/source/text/sbasic/shared/03103600.xhp +++ b/source/text/sbasic/shared/03103600.xhp @@ -41,7 +41,7 @@ <paragraph id="hd_id3153825" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> <bascode> -<paragraph id="par_id3155341" role="bascode" xml-lang="en-US">TypeName (Variable)VarType (Variable)</paragraph> +<paragraph id="par_id3155341" role="bascode" xml-lang="en-US">TypeName (Variable) / VarType (Variable)</paragraph> </bascode> <paragraph id="hd_id3145610" role="heading" level="2" xml-lang="en-US">Return value:</paragraph> @@ -53,18 +53,24 @@ <table id="tbl_id3153362"> <tablerow> <tablecell> - <paragraph id="par_id3145171" role="paragraph" xml-lang="en-US">key word</paragraph> + <paragraph id="par_id3145171" role="tablehead" xml-lang="en-US">key word</paragraph> </tablecell> <tablecell> - <paragraph id="par_id3156212" role="paragraph" xml-lang="en-US">VarType</paragraph> + <paragraph id="par_id051620170608269696" role="tablehead" xml-lang="en-US">Named constant </paragraph> </tablecell> <tablecell> - <paragraph id="par_id3154684" role="paragraph" xml-lang="en-US">Variable type</paragraph> + <paragraph id="par_id3156212" role="tablehead" xml-lang="en-US">VarType</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id3154684" role="tablehead" xml-lang="en-US">Variable type</paragraph> </tablecell> </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3151041" role="paragraph" xml-lang="en-US">Boolean</paragraph> + <paragraph id="par_id3151041" role="paragraph" localize="false" xml-lang="en-US">Boolean</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170609229026" role="paragraph" localize="false" xml-lang="en-US"> </paragraph> </tablecell> <tablecell> <paragraph id="par_id3153367" role="paragraph" localize="false" xml-lang="en-US">11</paragraph> @@ -75,7 +81,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3153138" role="paragraph" xml-lang="en-US">Date</paragraph> + <paragraph id="par_id3153138" role="paragraph" localize="false" xml-lang="en-US">Date</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608329367" role="paragraph" localize="false" xml-lang="en-US">V_DATE</paragraph> </tablecell> <tablecell> <paragraph id="par_id3153363" role="paragraph" localize="false" xml-lang="en-US">7</paragraph> @@ -86,7 +95,24 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3146975" role="paragraph" xml-lang="en-US">Double</paragraph> + <paragraph id="par_id051620170608331783" role="paragraph" localize="false" xml-lang="en-US">Currency</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608333476" role="paragraph" localize="false" xml-lang="en-US">V_CURRENCY</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608333808" role="paragraph" localize="false" xml-lang="en-US">6</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608331416" role="paragraph" xml-lang="en-US">Currency variable</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id3146975" role="paragraph" localize="false" xml-lang="en-US">Double</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608337319" role="paragraph" localize="false" xml-lang="en-US">V_DOUBLE</paragraph> </tablecell> <tablecell> <paragraph id="par_id3150486" role="paragraph" localize="false" xml-lang="en-US">5</paragraph> @@ -97,7 +123,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3148457" role="paragraph" xml-lang="en-US">Integer</paragraph> + <paragraph id="par_id3148457" role="paragraph" localize="false" xml-lang="en-US">Integer</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id05162017060833922" role="paragraph" localize="false" xml-lang="en-US">V_INTEGER</paragraph> </tablecell> <tablecell> <paragraph id="par_id3145647" role="paragraph" localize="false" xml-lang="en-US">2</paragraph> @@ -108,7 +137,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3149960" role="paragraph" xml-lang="en-US">Long</paragraph> + <paragraph id="par_id3149960" role="paragraph" localize="false" xml-lang="en-US">Long</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608332124" role="paragraph" localize="false" xml-lang="en-US">V_LONG</paragraph> </tablecell> <tablecell> <paragraph id="par_id3154513" role="paragraph" localize="false" xml-lang="en-US">3</paragraph> @@ -119,7 +151,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3146972" role="paragraph" xml-lang="en-US">Object</paragraph> + <paragraph id="par_id3146972" role="paragraph" localize="false" xml-lang="en-US">Object</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170609224777" role="paragraph" localize="false" xml-lang="en-US"> </paragraph> </tablecell> <tablecell> <paragraph id="par_id3154482" role="paragraph" localize="false" xml-lang="en-US">9</paragraph> @@ -130,7 +165,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3148405" role="paragraph" xml-lang="en-US">Single</paragraph> + <paragraph id="par_id3148405" role="paragraph" localize="false" xml-lang="en-US">Single</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608337392" role="paragraph" localize="false" xml-lang="en-US">V_SINGLE</paragraph> </tablecell> <tablecell> <paragraph id="par_id3149020" role="paragraph" localize="false" xml-lang="en-US">4</paragraph> @@ -141,7 +179,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3155901" role="paragraph" xml-lang="en-US">String</paragraph> + <paragraph id="par_id3155901" role="paragraph" localize="false" xml-lang="en-US">String</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id05162017060833587" role="paragraph" localize="false" xml-lang="en-US">V_STRING</paragraph> </tablecell> <tablecell> <paragraph id="par_id3155960" role="paragraph" localize="false" xml-lang="en-US">8</paragraph> @@ -152,7 +193,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3145149" role="paragraph" xml-lang="en-US">Variant</paragraph> + <paragraph id="par_id3145149" role="paragraph" localize="false" xml-lang="en-US">Variant</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170609222468" role="paragraph" localize="false" xml-lang="en-US"> </paragraph> </tablecell> <tablecell> <paragraph id="par_id3154021" role="paragraph" localize="false" xml-lang="en-US">12</paragraph> @@ -163,7 +207,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3148630" role="paragraph" xml-lang="en-US">Empty</paragraph> + <paragraph id="par_id3148630" role="paragraph" localize="false" xml-lang="en-US">Empty</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id051620170608331395" role="paragraph" localize="false" xml-lang="en-US">V_EMPTY</paragraph> </tablecell> <tablecell> <paragraph id="par_id3152584" role="paragraph" localize="false" xml-lang="en-US">0</paragraph> @@ -174,7 +221,10 @@ </tablerow> <tablerow> <tablecell> - <paragraph id="par_id3154576" role="paragraph" xml-lang="en-US">Null</paragraph> + <paragraph id="par_id3154576" role="paragraph" localize="false" xml-lang="en-US">Null</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id05162017060833692" role="paragraph" localize="false" xml-lang="en-US">V_NULL</paragraph> </tablecell> <tablecell> <paragraph id="par_id3166424" role="paragraph" localize="false" xml-lang="en-US">1</paragraph> @@ -197,12 +247,16 @@ <paragraph id="par_idm1340865072" role="bascode" localize="false" xml-lang="en-US">Dim dVar As Double</paragraph> <paragraph id="par_idm1340863840" role="bascode" localize="false" xml-lang="en-US">Dim bVar As Boolean</paragraph> <paragraph id="par_idm1340862608" role="bascode" localize="false" xml-lang="en-US">Dim lVar As Long</paragraph> -<paragraph id="par_idm1340861376" role="bascode" localize="false" xml-lang="en-US"> MsgBox TypeName(iVar) & " " & VarType(iVar) & Chr(13) &_</paragraph> -<paragraph id="par_idm1340860032" role="bascode" localize="false" xml-lang="en-US"> TypeName(sVar) & " " & VarType(sVar) & Chr(13) &_</paragraph> -<paragraph id="par_idm1340858736" role="bascode" localize="false" xml-lang="en-US"> TypeName(siVar) & " " & VarType(siVar) & Chr(13) &_</paragraph> -<paragraph id="par_idm1340857424" role="bascode" localize="false" xml-lang="en-US"> TypeName(dVar) & " " & VarType(dVar) & Chr(13) &_</paragraph> -<paragraph id="par_idm1340856128" role="bascode" localize="false" xml-lang="en-US"> TypeName(bVar) & " " & VarType(bVar) & Chr(13) &_</paragraph> -<paragraph id="par_id3148817" role="bascode" xml-lang="en-US"> TypeName(lVar) & " " & VarType(lVar),0,"Some types In $[officename] Basic"</paragraph> +<paragraph id="par_id051620170608333887" role="bascode" localize="false" xml-lang="en-US">Dim cVar as Currency</paragraph> +<paragraph id="par_id051620170608333925" role="bascode" localize="false" xml-lang="en-US">Dim tVar as Date</paragraph> +<paragraph id="par_idm1340861376" role="bascode" localize="false" xml-lang="en-US"> MsgBox TypeName(iVar) & " " & VarType(iVar) & Chr(13) &_</paragraph> +<paragraph id="par_idm1340860032" role="bascode" localize="false" xml-lang="en-US"> TypeName(sVar) & " " & VarType(sVar) & Chr(13) &_</paragraph> +<paragraph id="par_idm1340858736" role="bascode" localize="false" xml-lang="en-US"> TypeName(siVar) & " " & VarType(siVar) & Chr(13) &_</paragraph> +<paragraph id="par_idm1340857424" role="bascode" localize="false" xml-lang="en-US"> TypeName(dVar) & " " & VarType(dVar) & Chr(13) &_</paragraph> +<paragraph id="par_idm1340856128" role="bascode" localize="false" xml-lang="en-US"> TypeName(bVar) & " " & VarType(bVar) & Chr(13) &_</paragraph> +<paragraph id="par_id051620170608339345" role="bascode" localize="false" xml-lang="en-US"> TypeName(cVar) & " " & VarType(cVar) & Chr(13) &_</paragraph> +<paragraph id="par_id051620170608347372" role="bascode" localize="false" xml-lang="en-US"> TypeName(tVar) & " " & VarType(tVar) & Chr(13) &_</paragraph> +<paragraph id="par_id3148817" role="bascode" xml-lang="en-US"> TypeName(lVar) & " " & VarType(lVar),0,"Some types In $[officename] Basic"</paragraph> <paragraph id="par_idm1340852896" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> </body> |