diff options
author | Alain Romedenne <alain.romedenne@libreoffice.org> | 2022-10-28 19:15:22 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2022-11-07 01:13:39 +0100 |
commit | 3568ffd245094b1ee98eab3cb2e0be18646a7aa5 (patch) | |
tree | 51da2f09f4fb71e947dae420a7fd75271482b578 /source | |
parent | 4f1d8245e409f5df7ca88c83a573cb07f181d0a5 (diff) |
tdf141474 Typename, Vartype functions accept keyword arguments
- argument names updated to comply with VBA conventions
Change-Id: I2166e62d6df4e0f72aaa494e96f9a515b03e3ac7
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141919
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/shared/03010101.xhp | 2 | ||||
-rw-r--r-- | source/text/sbasic/shared/03040000.xhp | 3 | ||||
-rw-r--r-- | source/text/sbasic/shared/03100700.xhp | 2 | ||||
-rw-r--r-- | source/text/sbasic/shared/03103600.xhp | 298 |
4 files changed, 117 insertions, 188 deletions
diff --git a/source/text/sbasic/shared/03010101.xhp b/source/text/sbasic/shared/03010101.xhp index 9eed147d5b..8e5ae2946c 100644 --- a/source/text/sbasic/shared/03010101.xhp +++ b/source/text/sbasic/shared/03010101.xhp @@ -31,7 +31,7 @@ <bookmark_value>MsgBox statement</bookmark_value> </bookmark> -<h1 id="hd_id3154927" xml-lang="en-US"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement</link></h1> +<h1 id="hd_id3154927" xml-lang="en-US"><variable id="msgbox_h1"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement</link></variable></h1> <paragraph id="par_id3148947" role="paragraph" xml-lang="en-US">Displays a dialog box containing a message.</paragraph> </section> diff --git a/source/text/sbasic/shared/03040000.xhp b/source/text/sbasic/shared/03040000.xhp index 33dbd5af54..d577f9b6dc 100644 --- a/source/text/sbasic/shared/03040000.xhp +++ b/source/text/sbasic/shared/03040000.xhp @@ -214,7 +214,7 @@ <h2 id="hd_id881634911199058">GetAttr Named Constants</h2> <embed href="text/sbasic/shared/03020409.xhp#GetAttr_constants"/> - <h2 id="hd_id611634911996367">VarType Named Constants</h2> + <h2 id="hd_id611634911996367">Data Type Named Constants</h2> <embed href="text/sbasic/shared/03103600.xhp#VarType_constants"/> <section id="addvbaconstants"> @@ -613,6 +613,5 @@ </tablerow> </table> </section> - </body> </helpdocument> diff --git a/source/text/sbasic/shared/03100700.xhp b/source/text/sbasic/shared/03100700.xhp index 14d00c83b1..7e8ceacd06 100644 --- a/source/text/sbasic/shared/03100700.xhp +++ b/source/text/sbasic/shared/03100700.xhp @@ -32,7 +32,7 @@ <bookmark_value>Const statement</bookmark_value> </bookmark> -<paragraph id="hd_id3146958" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03100700.xhp" name="Const Statement">Const Statement</link></paragraph> +<h1 id="hd_id3146958" xml-lang="en-US"><variable id="const_h1"><link href="text/sbasic/shared/03100700.xhp" name="Const Statement">Const Statement</link></variable></h1> <paragraph id="par_id3154143" role="paragraph" xml-lang="en-US">Defines one or more identifiers as constants.</paragraph> </section> <paragraph id="par_id3147264" role="paragraph" xml-lang="en-US">A constant is a variable that helps to improve the readability of a program. Constants are not defined as a specific type of variable, but rather are used as placeholders in the code. You can only define a constant once and it cannot be modified.</paragraph> diff --git a/source/text/sbasic/shared/03103600.xhp b/source/text/sbasic/shared/03103600.xhp index 6f4d3e3452..cea6827072 100644 --- a/source/text/sbasic/shared/03103600.xhp +++ b/source/text/sbasic/shared/03103600.xhp @@ -33,216 +33,129 @@ <bookmark_value>Basic Variable Type constants</bookmark_value> </bookmark> <h1 id="hd_id3143267"><link href="text/sbasic/shared/03103600.xhp" name="TypeName Function; VarType Function">TypeName Function; VarType Function</link></h1> -<paragraph id="par_id3159157" role="paragraph" xml-lang="en-US">Returns a string (TypeName) or a numeric value (VarType) that contains information for a variable.</paragraph> +<paragraph id="par_id3159157" role="paragraph" xml-lang="en-US">Returns text or a numeric value that contain type information for a variable.</paragraph> </section> <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> <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 (Varname As Variant) As String</paragraph> + <paragraph id="par_id3155342" role="bascode" xml-lang="en-US">VarType (Varname As Variant) As Integer</paragraph> </bascode> <embed href="text/sbasic/shared/00000003.xhp#functvalue"/> -<paragraph id="par_id3148947" localize="false" role="paragraph">String; Integer</paragraph> +<list type="unordered"> + <listitem> + <paragraph id="par_id591667555032629" role="listitem">Text for <literal>TypeName</literal> suffixed with '()' for arrays.</paragraph> + </listitem> + <listitem> + <paragraph id="par_id371667555034757" role="listitem">Integer for <literal>VarType</literal>. <literal>8192</literal> is added to the returned value for arrays.</paragraph> + </listitem> +</list> <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> -<paragraph id="par_id3148664" role="paragraph" xml-lang="en-US"> <emph>Variable:</emph> The variable that you want to determine the type of. You can use the following values:</paragraph> +<paragraph id="par_id3148664" role="paragraph" xml-lang="en-US"> <emph>Varname</emph>: The variable name that you want to determine the type of.</paragraph> +<paragraph role="paragraph" id="par_id461667489910930">The following values are returned:</paragraph> <section id="VarType_constants"> <table id="tbl_id3153362"> <tablerow> <tablecell> - <paragraph id="par_id3145171" role="tablehead" xml-lang="en-US">Keyword</paragraph> + <paragraph id="par_id3145171" role="tablehead" xml-lang="en-US">TypeName<br/>values</paragraph> </tablecell> <tablecell> - <paragraph id="par_id051620170608269696" role="tablehead" xml-lang="en-US">Named constant</paragraph> + <paragraph id="par_id051620170608269696" role="tablehead" xml-lang="en-US">Named<br/>constant</paragraph> </tablecell> <tablecell> - <paragraph id="par_id3156212" role="tablehead" xml-lang="en-US" localize="false">VarType</paragraph> + <paragraph id="par_id3156212" role="tablehead" xml-lang="en-US" localize="false">VarType<br/>values</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" 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> - </tablecell> - <tablecell> - <paragraph id="par_id3148645" role="paragraph" xml-lang="en-US">Boolean variable</paragraph> - </tablecell> - </tablerow> <tablerow> - <tablecell> - <paragraph id="par_id3151042" role="paragraph" localize="false" xml-lang="en-US">Byte</paragraph> - </tablecell> - <tablecell> - <paragraph id="par_id061620170609229026" role="paragraph" localize="false" xml-lang="en-US"> </paragraph> - </tablecell> - <tablecell> - <paragraph id="par_id3253367" role="paragraph" localize="false" xml-lang="en-US">17</paragraph> - </tablecell> - <tablecell> - <paragraph id="par_id3158645" role="paragraph" xml-lang="en-US">Byte variable</paragraph> - </tablecell> + <tablecell colspan="2"><paragraph id="par_id401667566896518" role="paragraph" localize="false">…()</paragraph></tablecell> + <tablecell><paragraph id="par_id561667566907413" role="paragraph" localize="false">8192</paragraph></tablecell> + <tablecell><paragraph id="par_id501667566908366" role="paragraph" xml-lang="en-US"><literal>Array</literal> of variables</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3155411" role="paragraph" xml-lang="en-US">Date variable</paragraph> - </tablecell> + <tablecell colspan="2"><paragraph id="par_id3151041" role="paragraph" localize="false">Boolean</paragraph></tablecell> + <tablecell><paragraph id="par_id3153367" role="paragraph" localize="false">11</paragraph></tablecell> + <tablecell><paragraph id="par_id3148645" role="paragraph" xml-lang="en-US"><literal>Boolean</literal> variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> + <tablecell colspan="2"><paragraph id="par_id3151042" role="paragraph" localize="false">Byte</paragraph></tablecell> + <tablecell><paragraph id="par_id3253367" role="paragraph" localize="false">17</paragraph></tablecell> + <tablecell><paragraph id="par_id3158645" role="paragraph" xml-lang="en-US"><literal>Byte</literal> 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> - </tablecell> - <tablecell> - <paragraph id="par_id3148616" role="paragraph" xml-lang="en-US">Double floating point variable</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3153138" role="paragraph" localize="false">Date</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608329367" role="paragraph" localize="false">V_DATE</paragraph></tablecell> + <tablecell><paragraph id="par_id3153363" role="paragraph" localize="false">7</paragraph></tablecell> + <tablecell><paragraph id="par_id3155411" role="paragraph" xml-lang="en-US"><literal>Date</literal> variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3154490" role="paragraph" xml-lang="en-US">Integer variable</paragraph> - </tablecell> + <tablecell><paragraph id="par_id051620170608331783" role="paragraph" localize="false">Currency</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608333476" role="paragraph" localize="false">V_CURRENCY</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608333808" role="paragraph" localize="false">6</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608331416" role="paragraph" xml-lang="en-US"><literal>Currency</literal> variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3151318" role="paragraph" xml-lang="en-US">Long integer variable</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3146975" role="paragraph" localize="false">Double</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608337319" role="paragraph" localize="false">V_DOUBLE</paragraph></tablecell> + <tablecell><paragraph id="par_id3150486" role="paragraph" localize="false">5</paragraph></tablecell> + <tablecell><paragraph id="par_id3148616" role="paragraph" xml-lang="en-US">Double-precision floating-point variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3150323" role="paragraph" xml-lang="en-US">Object variable</paragraph> - </tablecell> + <tablecell colspan="2"><paragraph id="par_id401657666896518" role="paragraph" localize="false">Error</paragraph></tablecell> + <tablecell><paragraph id="par_id566617566907413" role="paragraph" localize="false">11</paragraph></tablecell> + <tablecell><paragraph id="par_id501666576908366" role="paragraph" xml-lang="en-US">Error type variable</paragraph></tablecell> </tablerow> + <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3147341" role="paragraph" xml-lang="en-US">Single floating-point variable</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3148457" role="paragraph" localize="false">Integer</paragraph></tablecell> + <tablecell><paragraph id="par_id05162017060833922" role="paragraph" localize="false">V_INTEGER</paragraph></tablecell> + <tablecell><paragraph id="par_id3145647" role="paragraph" localize="false">2</paragraph></tablecell> + <tablecell><paragraph id="par_id3154490" role="paragraph" xml-lang="en-US"><literal>Integer</literal> variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3146313" role="paragraph" xml-lang="en-US">String variable</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3149960" role="paragraph" localize="false">Long</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608332124" role="paragraph" localize="false">V_LONG</paragraph></tablecell> + <tablecell><paragraph id="par_id3154513" role="paragraph" localize="false">3</paragraph></tablecell> + <tablecell><paragraph id="par_id3151318" role="paragraph" xml-lang="en-US"><literal>Long</literal> integer variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3145789" role="paragraph" xml-lang="en-US">Variant variable (can contain all types specified by the definition)</paragraph> - </tablecell> + <tablecell colspan="2"><paragraph id="par_id3146972" role="paragraph" localize="false">Object</paragraph></tablecell> + <tablecell><paragraph id="par_id3154482" role="paragraph" localize="false">9</paragraph></tablecell> + <tablecell><paragraph id="par_id3150323" role="paragraph" xml-lang="en-US"><literal>Object</literal> variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3151278" role="paragraph" xml-lang="en-US">Variable is not initialized</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3148405" role="paragraph" localize="false">Single</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608337392" role="paragraph" localize="false">V_SINGLE</paragraph></tablecell> + <tablecell><paragraph id="par_id3149020" role="paragraph" localize="false">4</paragraph></tablecell> + <tablecell><paragraph id="par_id3147341" role="paragraph" xml-lang="en-US">Single-precision floating-point variable</paragraph></tablecell> </tablerow> <tablerow> - <tablecell> - <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> - </tablecell> - <tablecell> - <paragraph id="par_id3145131" role="paragraph" xml-lang="en-US">No valid data</paragraph> - </tablecell> + <tablecell><paragraph id="par_id3155901" role="paragraph" localize="false">String</paragraph></tablecell> + <tablecell><paragraph id="par_id05162017060833587" role="paragraph" localize="false">V_STRING</paragraph></tablecell> + <tablecell><paragraph id="par_id3155960" role="paragraph" localize="false">8</paragraph></tablecell> + <tablecell><paragraph id="par_id3146313" role="paragraph" xml-lang="en-US"><literal>String</literal> variable</paragraph></tablecell> + </tablerow> + <tablerow> + <tablecell colspan="2"><paragraph id="par_id3145149" role="paragraph" localize="false">Variant</paragraph></tablecell> + <tablecell><paragraph id="par_id3154021" role="paragraph" localize="false">12</paragraph></tablecell> + <tablecell><paragraph id="par_id3145789" role="paragraph" xml-lang="en-US"><literal>Variant</literal> variable (can contain all types specified by the definition)</paragraph></tablecell> + </tablerow> + <tablerow> + <tablecell><paragraph id="par_id3148630" role="paragraph" localize="false">Empty</paragraph></tablecell> + <tablecell><paragraph id="par_id051620170608331395" role="paragraph" localize="false">V_EMPTY</paragraph></tablecell> + <tablecell><paragraph id="par_id3152584" role="paragraph" localize="false">0</paragraph></tablecell> + <tablecell><paragraph id="par_id3151278" role="paragraph" xml-lang="en-US">Uninitialized <literal>Variant</literal> variable</paragraph></tablecell> + </tablerow> + <tablerow> + <tablecell><paragraph id="par_id3154576" role="paragraph" localize="false">Null</paragraph></tablecell> + <tablecell><paragraph id="par_id05162017060833692" role="paragraph" localize="false">V_NULL</paragraph></tablecell> + <tablecell><paragraph id="par_id3166424" role="paragraph" localize="false">1</paragraph></tablecell> + <tablecell><paragraph id="par_id3145131" role="paragraph" xml-lang="en-US">No valid data</paragraph></tablecell> </tablerow> </table> </section> @@ -251,25 +164,42 @@ <embed href="text/sbasic/shared/00000003.xhp#err5"/> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> <bascode> -<paragraph id="par_idm1340870000" role="bascode" localize="false" xml-lang="en-US">Sub ExampleType</paragraph> -<paragraph id="par_idm1340868768" role="bascode" localize="false" xml-lang="en-US">Dim iVar As Integer</paragraph> -<paragraph id="par_idm1340867536" role="bascode" localize="false" xml-lang="en-US">Dim sVar As String</paragraph> -<paragraph id="par_idm1340866304" role="bascode" localize="false" xml-lang="en-US">Dim siVar As Single</paragraph> -<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_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> + <paragraph id="par_idm1340870070" role="bascode" localize="false">Sub TypeName_VarType_example</paragraph> + <paragraph id="par_idm1340868768" role="bascode" localize="false"> Const __Object=9, __Error=10, __Boolean=11, __Variant=12, __Byte=17, _</paragraph> + <paragraph id="par_idm1340863840" role="bascode" localize="false"> __Array = 8192, aText = "Lorem ipsum dolor sit amet, consectetur …"</paragraph> + <paragraph id="par_idm1340862608" role="bascode" localize="false"> Dim int16 As Integer, int32() As Long ' V_INTEGER, V_LONG</paragraph> + <paragraph id="par_id051620170608333887" role="bascode" localize="false"> Dim flt32!, flt64() As Double ' V_SINGLE, V_DOUBLE</paragraph> + <paragraph id="par_id051620170608333925" role="bascode" localize="false"> Dim curr@, dat3 As Date ' V_CURRENCY, V_DATE</paragraph> + <paragraph role="bascode" id="bas_id871667494989338" localize="false"> Dim strng() As String, objct() As Object ' V_STRING, …</paragraph> + <paragraph role="bascode" id="bas_id971667494996761" localize="false"> Dim bool As Boolean, unkwn(), byt3 As Byte ' …, V_EMPTY, …</paragraph> + <paragraph role="bascode" id="bas_id971667949496761" localize="false"> Dim table(-3 To 5)</paragraph> + <paragraph id="par_idm1340861376" role="bascode" localize="false"> MsgBox _</paragraph> + <paragraph id="par_idm1340860032" role="bascode" localize="false"> TypeName(int16) &" "& Vartype(int16) &" "& V_INTEGER &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id841667495736985" localize="false"> TypeName(int32) &" "& Vartype(int32) &" "& V_LONG+__Array &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id621667495663321" localize="false"> TypeName(flt32) &" "& VarType(flt32) &" "& V_SINGLE &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id661667495665110" localize="false"> TypeName(flt64) &" "& VarType(flt64) &" "& V_DOUBLE+__Array &" "& Chr(13) &_</paragraph> + <paragraph id="par_idm1340858736" role="bascode" localize="false"> TypeName(dat3) &" "& VarType(dat3) &" "& V_DATE &" "& Chr(13) &_</paragraph> + <paragraph id="par_idm1340857424" role="bascode" localize="false"> TypeName(curr) &" "& VarType(curr) &" "& V_CURRENCY &" "& Chr(13) &_</paragraph> + <paragraph id="par_idm1340856128" role="bascode" localize="false"> TypeName(atext) &" "& VarType(aText) &" "& V_STRING &" "& Chr(13) &_</paragraph> + <paragraph id="par_id051620170608339345" role="bascode" localize="false"> TypeName(strng) &" "& VarType(strng) &" "& V_STRING+__Array &" "& Chr(13) &_</paragraph> + <paragraph id="par_id051620170608347372" role="bascode" localize="false"> TypeName(objct) &" "& VarType(objct) &" "& __Object+__Array &" "& Chr(13) &_</paragraph> + <paragraph id="par_id051620160708347372" role="bascode" localize="false"> TypeName(unkwn) &" "& VarType(unkwn) &" "& V_EMPTY &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id41667495466465" localize="false"> TypeName(bool) &" "& VarType(bool) &" "& __Boolean &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id781667495510795" localize="false"> TypeName(varnt) &" "& VarType(varnt) &" "& V_EMPTY &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id161867491557562" localize="false"> TypeName(table) &" "& VarType(table) &" "&__Variant+__Array &" "& Chr(13) &_</paragraph> + <paragraph role="bascode" id="bas_id181667495517562" localize="false"> TypeName(byt3) &" "& VarType(byt3) &" "& __Byte _</paragraph> +<paragraph id="par_id3148817" role="bascode" xml-lang="en-US"> ,, "Data types in $[officename] Basic"</paragraph> + <paragraph role="bascode" id="bas_id321667571151683" localize="false"> Msgbox "TypeName(table): "&TypeName(table) &Chr(13)& _</paragraph> + <paragraph role="bascode" id="bas_id731667571152620" localize="false"> "VarType(table)="&Vartype(table) _</paragraph> + <paragraph role="bascode" id="bas_id191667571153141" xml-lang="en-US"> ,,"Array of Variant values"</paragraph> + <paragraph id="par_idm1340952896" role="bascode" localize="false">End Sub ' TypeName_VarType_example</paragraph> </bascode> -</body> -</helpdocument> +<section id="relatedtopics"> + <embed href="text/sbasic/shared/03100700.xhp#const_h1"/> + <embed href="text/sbasic/shared/03102100.xhp#Dimh1"/> + <embed href="text/sbasic/shared/03010101.xhp#msgbox_h1"/> +</section> + +</body> +</helpdocument>
\ No newline at end of file |