1<?xml version="1.0" encoding="UTF-8"?> 2 3<!--*********************************************************** 4 * 5 * Licensed to the Apache Software Foundation (ASF) under one 6 * or more contributor license agreements. See the NOTICE file 7 * distributed with this work for additional information 8 * regarding copyright ownership. The ASF licenses this file 9 * to you under the Apache License, Version 2.0 (the 10 * "License"); you may not use this file except in compliance 11 * with the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, 16 * software distributed under the License is distributed on an 17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 * KIND, either express or implied. See the License for the 19 * specific language governing permissions and limitations 20 * under the License. 21 * 22 ***********************************************************--> 23 24<helpdocument version="1.0"> 25<meta> 26<topic id="textscalc0104060112xml" indexer="include" status="PUBLISH"> 27<title id="tit" xml-lang="en-US">Add-in for Programming in $[officename] Calc</title> 28<filename>/text/scalc/01/04060112.xhp</filename> 29</topic> 30<comment>fixed #i30855#</comment> 31</meta> 32<body> 33<bookmark xml-lang="en-US" branch="index" id="bm_id3151076"> 34<bookmark_value>programming; add-ins</bookmark_value> 35<bookmark_value>shared libraries; programming</bookmark_value> 36<bookmark_value>external DLL functions</bookmark_value> 37<bookmark_value>functions; $[officename] Calc add-in DLL</bookmark_value> 38<bookmark_value>add-ins; for programming</bookmark_value> 39</bookmark><comment>mw made "external..." a one level entry and deleted one "functions;..." entry</comment> 40<paragraph role="heading" id="hd_id3151076" xml-lang="en-US" level="1" l10n="U" oldref="1">Add-in for Programming in $[officename] Calc</paragraph> 41<paragraph role="warning" id="par_id3147001" xml-lang="en-US" l10n="U" oldref="220">The method of extending Calc by Add-Ins that is described in the following is outdated. The interfaces are still valid and supported, to ensure compatibility with existing Add-Ins, but for programming new Add-Ins you should use the new <link href="text/shared/guide/integratinguno.xhp" name="API functions">API functions</link>.</paragraph> 42<paragraph role="paragraph" id="par_id3150361" xml-lang="en-US" l10n="U" oldref="2">$[officename] Calc can be expanded by Add-Ins, which are external programming modules providing additional functions for working with spreadsheets. These are listed in the <emph>Function Wizard</emph> in the <emph>Add-In</emph> category. If you would like to program an Add-In yourself, you can learn here which functions must be exported by the <switchinline select="sys"><caseinline select="UNIX">shared library 43</caseinline><defaultinline>external DLL</defaultinline></switchinline> so that the Add-In can be successfully attached.</paragraph> 44<paragraph role="paragraph" id="par_id3149211" xml-lang="en-US" l10n="CHG" oldref="3">$[officename] searches the Add-in folder defined in the configuration for a suitable <switchinline select="sys"><caseinline select="UNIX">shared library 45</caseinline><defaultinline>DLL</defaultinline></switchinline>. To be recognized by $[officename], the <switchinline select="sys"><caseinline select="UNIX">shared library 46</caseinline><defaultinline>DLL</defaultinline></switchinline> must have certain properties, as explained in the following. This information allows you to program your own Add-In for <emph>Function Wizard</emph> of $[officename] Calc.</paragraph> 47<section id="addinconcept"> 48<paragraph role="heading" id="hd_id3146981" xml-lang="en-US" level="2" l10n="U" oldref="4">The Add-In Concept</paragraph> 49<paragraph role="paragraph" id="par_id3156292" xml-lang="en-US" l10n="U" oldref="5">Each Add-In library provides several functions. Some functions are used for administrative purposes. You can choose almost any name for your own functions. However, they must also follow certain rules regarding parameter passing. The exact naming and calling conventions vary for different platforms.</paragraph> 50</section> 51<paragraph role="heading" id="hd_id3152890" xml-lang="en-US" level="3" l10n="U" oldref="6">Functions of <switchinline select="sys"><caseinline select="UNIX">Shared Library 52</caseinline><defaultinline>AddIn DLL</defaultinline></switchinline></paragraph> 53<paragraph role="paragraph" id="par_id3148837" xml-lang="en-US" l10n="U" oldref="7">At a minimum, the administrative functions <link href="text/scalc/01/04060112.xhp" name="GetFunctionCount">GetFunctionCount</link> and <link href="text/scalc/01/04060112.xhp" name="GetFunctionData">GetFunctionData</link> must exist. Using these, the functions as well as parameter types and return values can be determined. As return values, the Double and String types are supported. As parameters, additionally the cell areas <link href="text/scalc/01/04060112.xhp" name="Double Array">Double Array</link>, <link href="text/scalc/01/04060112.xhp" name="String Array">String Array</link>, and <link href="text/scalc/01/04060112.xhp" name="Cell Array">Cell Array</link> are supported.</paragraph> 54<paragraph role="paragraph" id="par_id3148604" xml-lang="en-US" l10n="U" oldref="8">Parameters are passed using references. Therefore, a change of these values is basically possible. However, this is not supported in $[officename] Calc because it does not make sense within spreadsheets.</paragraph> 55<paragraph role="paragraph" id="par_id3150112" xml-lang="en-US" l10n="U" oldref="9">Libraries can be reloaded during runtime and their contents can be analyzed by the administrative functions. For each function, information is available about count and type of parameters, internal and external function names and an administrative number.</paragraph> 56<paragraph role="paragraph" id="par_id3155269" xml-lang="en-US" l10n="U" oldref="10">The functions are called synchronously and return their results immediately. Real time functions (asynchronous functions) are also possible; however, they are not explained in detail because of their complexity.</paragraph> 57<paragraph role="heading" id="hd_id3145077" xml-lang="en-US" level="2" l10n="U" oldref="11">General information about the interface</paragraph> 58<paragraph role="paragraph" id="par_id3146776" xml-lang="en-US" l10n="U" oldref="12">The maximum number of parameters in an Add-In function attached to $[officename] Calc is 16: one return value and a maximum of 15 function input parameters.</paragraph> 59<paragraph role="paragraph" id="par_id3149899" xml-lang="en-US" l10n="U" oldref="13">The data types are defined as follows:</paragraph> 60<table id="tbl_id3159203"> 61<tablerow> 62<tablecell colspan="" rowspan=""> 63<paragraph role="paragraph" id="par_id3151302" xml-lang="en-US" l10n="U" oldref="14"> 64<emph>Data types</emph> 65</paragraph> 66</tablecell> 67<tablecell colspan="" rowspan=""> 68<paragraph role="paragraph" id="par_id3143222" xml-lang="en-US" l10n="U" oldref="15"> 69<emph>Definition</emph> 70</paragraph> 71</tablecell> 72</tablerow> 73<tablerow> 74<tablecell colspan="" rowspan=""> 75<paragraph role="paragraph" id="par_id3149384" xml-lang="en-US" l10n="U" oldref="16">CALLTYPE</paragraph> 76</tablecell> 77<tablecell colspan="" rowspan=""> 78<paragraph role="paragraph" id="par_id3146963" xml-lang="en-US" l10n="U" oldref="17">Under Windows: FAR PASCAL (_far _pascal)</paragraph> 79<paragraph role="paragraph" id="par_id3153809" xml-lang="en-US" l10n="U" oldref="18">Other: default (operating system specific default)</paragraph> 80</tablecell> 81</tablerow> 82<tablerow> 83<tablecell colspan="" rowspan=""> 84<paragraph role="paragraph" id="par_id3154734" xml-lang="en-US" l10n="U" oldref="19">USHORT</paragraph> 85</tablecell> 86<tablecell colspan="" rowspan=""> 87<paragraph role="paragraph" id="par_id3155760" xml-lang="en-US" l10n="U" oldref="20">2 Byte unsigned Integer</paragraph> 88</tablecell> 89</tablerow> 90<tablerow> 91<tablecell colspan="" rowspan=""> 92<paragraph role="paragraph" id="par_id3145320" xml-lang="en-US" l10n="U" oldref="21">DOUBLE</paragraph> 93</tablecell> 94<tablecell colspan="" rowspan=""> 95<paragraph role="paragraph" id="par_id3150956" xml-lang="en-US" l10n="U" oldref="22">8 byte platform-dependent format</paragraph> 96</tablecell> 97</tablerow> 98<tablerow> 99<tablecell colspan="" rowspan=""> 100<paragraph role="paragraph" id="par_id3146097" xml-lang="en-US" l10n="U" oldref="23">Paramtype</paragraph> 101</tablecell> 102<tablecell colspan="" rowspan=""> 103<paragraph role="paragraph" id="par_id3150432" xml-lang="en-US" l10n="U" oldref="24">Platform-dependent like int</paragraph> 104<paragraph role="paragraph" id="par_id3153955" xml-lang="en-US" l10n="U" oldref="25">PTR_DOUBLE =0 pointer to a double</paragraph> 105<paragraph role="paragraph" id="par_id3159262" xml-lang="en-US" l10n="U" oldref="26">PTR_STRING =1 pointer to a zero-terminated string</paragraph> 106<paragraph role="paragraph" id="par_id3148747" xml-lang="en-US" l10n="U" oldref="27">PTR_DOUBLE_ARR =2 pointer to a double array</paragraph> 107<paragraph role="paragraph" id="par_id3147406" xml-lang="en-US" l10n="U" oldref="28">PTR_STRING_ARR =3 pointer to a string array</paragraph> 108<paragraph role="paragraph" id="par_id3151392" xml-lang="en-US" l10n="U" oldref="29">PTR_CELL_ARR =4 pointer to a cell array</paragraph> 109<paragraph role="paragraph" id="par_id3153028" xml-lang="en-US" l10n="U" oldref="30">NONE =5</paragraph> 110</tablecell> 111</tablerow> 112</table> 113<paragraph role="heading" id="hd_id3156396" xml-lang="en-US" level="2" l10n="U" oldref="31"><switchinline select="sys"><caseinline select="UNIX">Shared Library 114</caseinline><defaultinline>DLL</defaultinline></switchinline> functions</paragraph> 115<paragraph role="paragraph" id="par_id3153019" xml-lang="en-US" l10n="U" oldref="32">Following you will find a description of those functions, which are called at the <switchinline select="sys"><caseinline select="UNIX">Shared Library 116</caseinline><defaultinline>external DLL</defaultinline></switchinline>.</paragraph> 117<paragraph role="paragraph" id="par_id3150038" xml-lang="en-US" l10n="U" oldref="33">For all <switchinline select="sys"><caseinline select="UNIX">Shared Library 118</caseinline><defaultinline>DLL</defaultinline></switchinline> functions, the following applies:</paragraph> 119<paragraph role="paragraph" id="par_id3157876" xml-lang="en-US" l10n="U" oldref="34">void CALLTYPE fn(out, in1, in2, ...)</paragraph> 120<paragraph role="paragraph" id="par_id3147616" xml-lang="en-US" l10n="U" oldref="35">Output: Resulting value</paragraph> 121<paragraph role="paragraph" id="par_id3159119" xml-lang="en-US" l10n="U" oldref="36">Input: Any number of types (double&, char*, double*, char**, Cell area), where the <link href="text/scalc/01/04060112.xhp" name="Cell area">Cell area</link> is an array of types double array, string array, or cell array.</paragraph> 122<paragraph role="heading" id="hd_id3150653" xml-lang="en-US" level="3" l10n="U" oldref="37">GetFunctionCount()</paragraph> 123<paragraph role="paragraph" id="par_id3152981" xml-lang="en-US" l10n="U" oldref="38">Returns the number of functions without the management functions of the reference parameter. Each function has a unique number between 0 and nCount-1. This number will be needed for the <link href="text/scalc/01/04060112.xhp" name="GetFunctionData">GetFunctionData</link> and <link href="text/scalc/01/04060112.xhp" name="GetParameterDescription">GetParameterDescription</link> functions later.</paragraph> 124<paragraph role="paragraph" id="par_id3150742" xml-lang="en-US" l10n="U" oldref="39"> 125<emph>Syntax</emph> 126</paragraph> 127<paragraph role="paragraph" id="par_id3148728" xml-lang="en-US" l10n="U" oldref="40">void CALLTYPE GetFunctionCount(USHORT& nCount)</paragraph> 128<paragraph role="paragraph" id="par_id3154677" xml-lang="en-US" l10n="U" oldref="41"> 129<emph>Parameter</emph> 130</paragraph> 131<paragraph role="paragraph" id="par_id3146940" xml-lang="en-US" l10n="U" oldref="42">USHORT &nCount:</paragraph> 132<paragraph role="paragraph" id="par_id3149893" xml-lang="en-US" l10n="U" oldref="43">Output: Reference to a variable, which is supposed to contain the number of Add-In functions. For example: If the Add-In provides 5 functions for $[officename] Calc, then nCount=5.</paragraph> 133<paragraph role="heading" id="hd_id3147476" xml-lang="en-US" level="3" l10n="U" oldref="44">GetFunctionData()</paragraph> 134<paragraph role="paragraph" id="par_id3154841" xml-lang="en-US" l10n="U" oldref="45">Determines all the important information about an Add-In function.</paragraph> 135<paragraph role="paragraph" id="par_id3148888" xml-lang="en-US" l10n="U" oldref="46"> 136<emph>Syntax</emph> 137</paragraph> 138<paragraph role="paragraph" id="par_id3148434" xml-lang="en-US" l10n="U" oldref="47">void CALLTYPE GetFunctionData(USHORT& nNo, char* pFuncName, USHORT& nParamCount, Paramtype* peType, char* pInternalName)</paragraph> 139<paragraph role="paragraph" id="par_id3149253" xml-lang="en-US" l10n="U" oldref="48"> 140<emph>Parameter</emph> 141</paragraph> 142<paragraph role="paragraph" id="par_id3149686" xml-lang="en-US" l10n="U" oldref="49">USHORT& nNo:</paragraph> 143<paragraph role="paragraph" id="par_id3149949" xml-lang="en-US" l10n="U" oldref="50">Input: Function number between 0 and nCount-1, inclusively.</paragraph> 144<paragraph role="paragraph" id="par_id3149546" xml-lang="en-US" l10n="U" oldref="51">char* pFuncName:</paragraph> 145<paragraph role="paragraph" id="par_id3148579" xml-lang="en-US" l10n="U" oldref="52">Output: Function name as seen by the programmer, as it is named in the <switchinline select="sys"><caseinline select="UNIX">Shared Library 146</caseinline><defaultinline>DLL</defaultinline></switchinline>. This name does not determine the name used in the <emph>Function Wizard</emph>.</paragraph> 147<paragraph role="paragraph" id="par_id3153935" xml-lang="en-US" l10n="U" oldref="53">USHORT& nParamCount:</paragraph> 148<paragraph role="paragraph" id="par_id3150142" xml-lang="en-US" l10n="U" oldref="54">Output: Number of parameters in AddIn function. This number must be greater than 0, because there is always a result value; the maximum value is 16.</paragraph> 149<paragraph role="paragraph" id="par_id3145143" xml-lang="en-US" l10n="U" oldref="55">Paramtype* peType:</paragraph> 150<paragraph role="paragraph" id="par_id3148750" xml-lang="en-US" l10n="U" oldref="56">Output: Pointer to an array of exactly 16 variables of type Paramtype. The first nParamCount entries are filled with the suitable type of parameter.</paragraph> 151<paragraph role="paragraph" id="par_id3153078" xml-lang="en-US" l10n="U" oldref="57">char* pInternalName:</paragraph> 152<paragraph role="paragraph" id="par_id3155261" xml-lang="en-US" l10n="U" oldref="58">Output: Function name as seen by the user, as it appears in the <emph>Function Wizard</emph>. May contain umlauts.</paragraph> 153<paragraph role="paragraph" id="par_id3153327" xml-lang="en-US" l10n="U" oldref="59">The pFuncName and pInternalName parameters are char arrays, which are implemented with size 256 in $[officename] Calc.</paragraph> 154<paragraph role="heading" id="hd_id3148567" xml-lang="en-US" level="3" l10n="U" oldref="60">GetParameterDescription()</paragraph> 155<paragraph role="paragraph" id="par_id3153000" xml-lang="en-US" l10n="U" oldref="61">Provides a brief description of the Add-In function and its parameters. As an option, this function can be used to show a function and parameter description in the <emph>Function Wizard</emph>.</paragraph> 156<paragraph role="paragraph" id="par_id3154501" xml-lang="en-US" l10n="U" oldref="62"> 157<emph>Syntax</emph> 158</paragraph> 159<paragraph role="paragraph" id="par_id3153564" xml-lang="en-US" l10n="U" oldref="63">void CALLTYPE GetParameterDescription(USHORT& nNo, USHORT& nParam, char* pName, char* pDesc)</paragraph> 160<paragraph role="paragraph" id="par_id3157995" xml-lang="en-US" l10n="U" oldref="64"> 161<emph>Parameter</emph> 162</paragraph> 163<paragraph role="paragraph" id="par_id3155925" xml-lang="en-US" l10n="U" oldref="65">USHORT& nNo:</paragraph> 164<paragraph role="paragraph" id="par_id3149883" xml-lang="en-US" l10n="U" oldref="66">Input: Number of the function in the library; between 0 and nCount-1.</paragraph> 165<paragraph role="paragraph" id="par_id3154326" xml-lang="en-US" l10n="U" oldref="67">USHORT& nParam:</paragraph> 166<paragraph role="paragraph" id="par_id3159139" xml-lang="en-US" l10n="U" oldref="68">Input: Indicates, for which parameter the description is provided; parameters start at 1. If nParam is 0, the description itself is supposed to be provided in pDesc; in this case, pName does not have any meaning.</paragraph> 167<paragraph role="paragraph" id="par_id3147374" xml-lang="en-US" l10n="U" oldref="69">char* pName:</paragraph> 168<paragraph role="paragraph" id="par_id3145245" xml-lang="en-US" l10n="U" oldref="70">Output: Takes up the parameter name or type, for example, the word "Number" or "String" or "Date", and so on. Implemented in $[officename] Calc as char[256].</paragraph> 169<paragraph role="paragraph" id="par_id3151020" xml-lang="en-US" l10n="U" oldref="71">char* pDesc:</paragraph> 170<paragraph role="paragraph" id="par_id3148389" xml-lang="en-US" l10n="U" oldref="72">Output: Takes up the description of the parameter, for example, "Value, at which the universe is to be calculated." Implemented in $[officename] Calc as char[256].</paragraph> 171<paragraph role="paragraph" id="par_id3145303" xml-lang="en-US" l10n="U" oldref="73">pName and pDesc are char arrays; implemented in $[officename] Calc with size 256. Please note that the space available in the <emph>Function Wizard</emph> is limited and that the 256 characters cannot be fully used.</paragraph> 172<paragraph role="heading" id="hd_id3148874" xml-lang="en-US" level="2" l10n="U" oldref="76">Cell areas</paragraph> 173<paragraph role="paragraph" id="par_id3150265" xml-lang="en-US" l10n="U" oldref="77">The following tables contain information about which data structures must be provided by an external program module in order to pass cell areas. $[officename] Calc distinguishes between three different arrays, depending on the data type.</paragraph> 174<paragraph role="heading" id="hd_id3156060" xml-lang="en-US" level="3" l10n="U" oldref="78">Double Array</paragraph> 175<paragraph role="paragraph" id="par_id3149540" xml-lang="en-US" l10n="U" oldref="79">As a parameter, a cell area with values of the Number/Double type can be passed. A double array in $[officename] Calc is defined as follows:</paragraph> 176<table id="tbl_id3150665"> 177<tablerow> 178<tablecell colspan="" rowspan=""> 179<paragraph role="paragraph" id="par_id3149388" xml-lang="en-US" l10n="U" oldref="80"> 180<emph>Offset</emph> 181</paragraph> 182</tablecell> 183<tablecell colspan="" rowspan=""> 184<paragraph role="paragraph" id="par_id3154636" xml-lang="en-US" l10n="U" oldref="81"> 185<emph>Name</emph> 186</paragraph> 187</tablecell> 188<tablecell colspan="" rowspan=""> 189<paragraph role="paragraph" id="par_id3153228" xml-lang="en-US" l10n="U" oldref="82"> 190<emph>Description</emph> 191</paragraph> 192</tablecell> 193</tablerow> 194<tablerow> 195<tablecell colspan="" rowspan=""> 196<paragraph role="paragraph" id="par_id3150685" xml-lang="en-US" l10n="U" oldref="83">0</paragraph> 197</tablecell> 198<tablecell colspan="" rowspan=""> 199<paragraph role="paragraph" id="par_id3154869" xml-lang="en-US" l10n="U" oldref="84">Col1</paragraph> 200</tablecell> 201<tablecell colspan="" rowspan=""> 202<paragraph role="paragraph" id="par_id3147541" xml-lang="en-US" l10n="U" oldref="85">Column number in the upper-left corner of the cell area. Numbering starts at 0.</paragraph> 203</tablecell> 204</tablerow> 205<tablerow> 206<tablecell colspan="" rowspan=""> 207<paragraph role="paragraph" id="par_id3149783" xml-lang="en-US" l10n="U" oldref="86">2</paragraph> 208</tablecell> 209<tablecell colspan="" rowspan=""> 210<paragraph role="paragraph" id="par_id3155986" xml-lang="en-US" l10n="U" oldref="87">Row1</paragraph> 211</tablecell> 212<tablecell colspan="" rowspan=""> 213<paragraph role="paragraph" id="par_id3147483" xml-lang="en-US" l10n="U" oldref="88">Row number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 214</tablecell> 215</tablerow> 216<tablerow> 217<tablecell colspan="" rowspan=""> 218<paragraph role="paragraph" id="par_id3153721" xml-lang="en-US" l10n="U" oldref="89">4</paragraph> 219</tablecell> 220<tablecell colspan="" rowspan=""> 221<paragraph role="paragraph" id="par_id3154317" xml-lang="en-US" l10n="U" oldref="90">Tab1</paragraph> 222</tablecell> 223<tablecell colspan="" rowspan=""> 224<paragraph role="paragraph" id="par_id3149820" xml-lang="en-US" l10n="U" oldref="91">Table number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 225</tablecell> 226</tablerow> 227<tablerow> 228<tablecell colspan="" rowspan=""> 229<paragraph role="paragraph" id="par_id3163820" xml-lang="en-US" l10n="U" oldref="92">6</paragraph> 230</tablecell> 231<tablecell colspan="" rowspan=""> 232<paragraph role="paragraph" id="par_id3149710" xml-lang="en-US" l10n="U" oldref="93">Col2</paragraph> 233</tablecell> 234<tablecell colspan="" rowspan=""> 235<paragraph role="paragraph" id="par_id3154819" xml-lang="en-US" l10n="U" oldref="94">Column number in the lower-right corner of the cell area. Numbering starts at 0.</paragraph> 236</tablecell> 237</tablerow> 238<tablerow> 239<tablecell colspan="" rowspan=""> 240<paragraph role="paragraph" id="par_id3145083" xml-lang="en-US" l10n="U" oldref="95">8</paragraph> 241</tablecell> 242<tablecell colspan="" rowspan=""> 243<paragraph role="paragraph" id="par_id3156310" xml-lang="en-US" l10n="U" oldref="96">Row2</paragraph> 244</tablecell> 245<tablecell colspan="" rowspan=""> 246<paragraph role="paragraph" id="par_id3150968" xml-lang="en-US" l10n="U" oldref="97">Row number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 247</tablecell> 248</tablerow> 249<tablerow> 250<tablecell colspan="" rowspan=""> 251<paragraph role="paragraph" id="par_id3156133" xml-lang="en-US" l10n="U" oldref="98">10</paragraph> 252</tablecell> 253<tablecell colspan="" rowspan=""> 254<paragraph role="paragraph" id="par_id3153218" xml-lang="en-US" l10n="U" oldref="99">Tab2</paragraph> 255</tablecell> 256<tablecell colspan="" rowspan=""> 257<paragraph role="paragraph" id="par_id3147086" xml-lang="en-US" l10n="U" oldref="100">Table number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 258</tablecell> 259</tablerow> 260<tablerow> 261<tablecell colspan="" rowspan=""> 262<paragraph role="paragraph" id="par_id3151270" xml-lang="en-US" l10n="U" oldref="101">12</paragraph> 263</tablecell> 264<tablecell colspan="" rowspan=""> 265<paragraph role="paragraph" id="par_id3152934" xml-lang="en-US" l10n="U" oldref="102">Count</paragraph> 266</tablecell> 267<tablecell colspan="" rowspan=""> 268<paragraph role="paragraph" id="par_id3145202" xml-lang="en-US" l10n="U" oldref="103">Number of the following elements. Empty cells are not counted or passed.</paragraph> 269</tablecell> 270</tablerow> 271<tablerow> 272<tablecell colspan="" rowspan=""> 273<paragraph role="paragraph" id="par_id3150879" xml-lang="en-US" l10n="U" oldref="104">14</paragraph> 274</tablecell> 275<tablecell colspan="" rowspan=""> 276<paragraph role="paragraph" id="par_id3156002" xml-lang="en-US" l10n="U" oldref="105">Col</paragraph> 277</tablecell> 278<tablecell colspan="" rowspan=""> 279<paragraph role="paragraph" id="par_id3147276" xml-lang="en-US" l10n="U" oldref="106">Column number of the element. Numbering starts at 0.</paragraph> 280</tablecell> 281</tablerow> 282<tablerow> 283<tablecell colspan="" rowspan=""> 284<paragraph role="paragraph" id="par_id3151295" xml-lang="en-US" l10n="U" oldref="107">16</paragraph> 285</tablecell> 286<tablecell colspan="" rowspan=""> 287<paragraph role="paragraph" id="par_id3150261" xml-lang="en-US" l10n="U" oldref="108">Row</paragraph> 288</tablecell> 289<tablecell colspan="" rowspan=""> 290<paragraph role="paragraph" id="par_id3155851" xml-lang="en-US" l10n="U" oldref="109">Row number of the element; numbering starts at 0.</paragraph> 291</tablecell> 292</tablerow> 293<tablerow> 294<tablecell colspan="" rowspan=""> 295<paragraph role="paragraph" id="par_id3153150" xml-lang="en-US" l10n="U" oldref="110">18</paragraph> 296</tablecell> 297<tablecell colspan="" rowspan=""> 298<paragraph role="paragraph" id="par_id3153758" xml-lang="en-US" l10n="U" oldref="111">Tab</paragraph> 299</tablecell> 300<tablecell colspan="" rowspan=""> 301<paragraph role="paragraph" id="par_id3150154" xml-lang="en-US" l10n="U" oldref="112">Table number of the element; numbering starts at 0.</paragraph> 302</tablecell> 303</tablerow> 304<tablerow> 305<tablecell colspan="" rowspan=""> 306<paragraph role="paragraph" id="par_id3149289" xml-lang="en-US" l10n="U" oldref="113">20</paragraph> 307</tablecell> 308<tablecell colspan="" rowspan=""> 309<paragraph role="paragraph" id="par_id3156010" xml-lang="en-US" l10n="U" oldref="114">Error</paragraph> 310</tablecell> 311<tablecell colspan="" rowspan=""> 312<paragraph role="paragraph" id="par_id3159181" xml-lang="en-US" l10n="U" oldref="115">Error number, where the value 0 is defined as "no error." If the element comes from a formula cell the error value is determined by the formula.</paragraph> 313</tablecell> 314</tablerow> 315<tablerow> 316<tablecell colspan="" rowspan=""> 317<paragraph role="paragraph" id="par_id3147493" xml-lang="en-US" l10n="U" oldref="116">22</paragraph> 318</tablecell> 319<tablecell colspan="" rowspan=""> 320<paragraph role="paragraph" id="par_id3149200" xml-lang="en-US" l10n="U" oldref="117">Value</paragraph> 321</tablecell> 322<tablecell colspan="" rowspan=""> 323<paragraph role="paragraph" id="par_id3151174" xml-lang="en-US" l10n="U" oldref="118">8 byte IEEE variable of type double/floating point</paragraph> 324</tablecell> 325</tablerow> 326<tablerow> 327<tablecell colspan="" rowspan=""> 328<paragraph role="paragraph" id="par_id3154688" xml-lang="en-US" l10n="U" oldref="119">30</paragraph> 329</tablecell> 330<tablecell colspan="" rowspan=""> 331<paragraph role="paragraph" id="par_id3159337" xml-lang="en-US" l10n="U" oldref="120">...</paragraph> 332</tablecell> 333<tablecell colspan="" rowspan=""> 334<paragraph role="paragraph" id="par_id3155388" xml-lang="en-US" l10n="U" oldref="121">Next element</paragraph> 335</tablecell> 336</tablerow> 337</table> 338<paragraph role="heading" id="hd_id3154935" xml-lang="en-US" level="3" l10n="U" oldref="122">String Array</paragraph> 339<paragraph role="paragraph" id="par_id3153105" xml-lang="en-US" l10n="U" oldref="123">A cell area, which contains values of data type Text and is passed as a string array. A string array in $[officename] Calc is defined as follows:</paragraph> 340<table id="tbl_id3146992"> 341<tablerow> 342<tablecell colspan="" rowspan=""> 343<paragraph role="paragraph" id="par_id3149908" xml-lang="en-US" l10n="U" oldref="124"> 344<emph>Offset</emph> 345</paragraph> 346</tablecell> 347<tablecell colspan="" rowspan=""> 348<paragraph role="paragraph" id="par_id3159165" xml-lang="en-US" l10n="U" oldref="125"> 349<emph>Name</emph> 350</paragraph> 351</tablecell> 352<tablecell colspan="" rowspan=""> 353<paragraph role="paragraph" id="par_id3159150" xml-lang="en-US" l10n="U" oldref="126"> 354<emph>Description</emph> 355</paragraph> 356</tablecell> 357</tablerow> 358<tablerow> 359<tablecell colspan="" rowspan=""> 360<paragraph role="paragraph" id="par_id3149769" xml-lang="en-US" l10n="U" oldref="127">0</paragraph> 361</tablecell> 362<tablecell colspan="" rowspan=""> 363<paragraph role="paragraph" id="par_id3150509" xml-lang="en-US" l10n="U" oldref="128">Col1</paragraph> 364</tablecell> 365<tablecell colspan="" rowspan=""> 366<paragraph role="paragraph" id="par_id3148447" xml-lang="en-US" l10n="U" oldref="129">Column number in the upper-left corner of the cell area. Numbering starts at 0.</paragraph> 367</tablecell> 368</tablerow> 369<tablerow> 370<tablecell colspan="" rowspan=""> 371<paragraph role="paragraph" id="par_id3145418" xml-lang="en-US" l10n="U" oldref="130">2</paragraph> 372</tablecell> 373<tablecell colspan="" rowspan=""> 374<paragraph role="paragraph" id="par_id3147512" xml-lang="en-US" l10n="U" oldref="131">Row1</paragraph> 375</tablecell> 376<tablecell colspan="" rowspan=""> 377<paragraph role="paragraph" id="par_id3147235" xml-lang="en-US" l10n="U" oldref="132">Row number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 378</tablecell> 379</tablerow> 380<tablerow> 381<tablecell colspan="" rowspan=""> 382<paragraph role="paragraph" id="par_id3155362" xml-lang="en-US" l10n="U" oldref="133">4</paragraph> 383</tablecell> 384<tablecell colspan="" rowspan=""> 385<paragraph role="paragraph" id="par_id3151051" xml-lang="en-US" l10n="U" oldref="134">Tab1</paragraph> 386</tablecell> 387<tablecell colspan="" rowspan=""> 388<paragraph role="paragraph" id="par_id3148923" xml-lang="en-US" l10n="U" oldref="135">Table number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 389</tablecell> 390</tablerow> 391<tablerow> 392<tablecell colspan="" rowspan=""> 393<paragraph role="paragraph" id="par_id3149158" xml-lang="en-US" l10n="U" oldref="136">6</paragraph> 394</tablecell> 395<tablecell colspan="" rowspan=""> 396<paragraph role="paragraph" id="par_id3166437" xml-lang="en-US" l10n="U" oldref="137">Col2</paragraph> 397</tablecell> 398<tablecell colspan="" rowspan=""> 399<paragraph role="paragraph" id="par_id3149788" xml-lang="en-US" l10n="U" oldref="138">Column number in the lower-right corner of the cell area. Numbering starts at 0.</paragraph> 400</tablecell> 401</tablerow> 402<tablerow> 403<tablecell colspan="" rowspan=""> 404<paragraph role="paragraph" id="par_id3166450" xml-lang="en-US" l10n="U" oldref="139">8</paragraph> 405</tablecell> 406<tablecell colspan="" rowspan=""> 407<paragraph role="paragraph" id="par_id3152877" xml-lang="en-US" l10n="U" oldref="140">Row2</paragraph> 408</tablecell> 409<tablecell colspan="" rowspan=""> 410<paragraph role="paragraph" id="par_id3152949" xml-lang="en-US" l10n="U" oldref="141">Row number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 411</tablecell> 412</tablerow> 413<tablerow> 414<tablecell colspan="" rowspan=""> 415<paragraph role="paragraph" id="par_id3159270" xml-lang="en-US" l10n="U" oldref="142">10</paragraph> 416</tablecell> 417<tablecell colspan="" rowspan=""> 418<paragraph role="paragraph" id="par_id3154107" xml-lang="en-US" l10n="U" oldref="143">Tab2</paragraph> 419</tablecell> 420<tablecell colspan="" rowspan=""> 421<paragraph role="paragraph" id="par_id3153747" xml-lang="en-US" l10n="U" oldref="144">Table number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 422</tablecell> 423</tablerow> 424<tablerow> 425<tablecell colspan="" rowspan=""> 426<paragraph role="paragraph" id="par_id3149924" xml-lang="en-US" l10n="U" oldref="145">12</paragraph> 427</tablecell> 428<tablecell colspan="" rowspan=""> 429<paragraph role="paragraph" id="par_id3154858" xml-lang="en-US" l10n="U" oldref="146">Count</paragraph> 430</tablecell> 431<tablecell colspan="" rowspan=""> 432<paragraph role="paragraph" id="par_id3148621" xml-lang="en-US" l10n="U" oldref="147">Number of the following elements. Empty cells are not counted or passed.</paragraph> 433</tablecell> 434</tablerow> 435<tablerow> 436<tablecell colspan="" rowspan=""> 437<paragraph role="paragraph" id="par_id3148467" xml-lang="en-US" l10n="U" oldref="148">14</paragraph> 438</tablecell> 439<tablecell colspan="" rowspan=""> 440<paragraph role="paragraph" id="par_id3151126" xml-lang="en-US" l10n="U" oldref="149">Col</paragraph> 441</tablecell> 442<tablecell colspan="" rowspan=""> 443<paragraph role="paragraph" id="par_id3154334" xml-lang="en-US" l10n="U" oldref="150">Column number of the element. Numbering starts at 0.</paragraph> 444</tablecell> 445</tablerow> 446<tablerow> 447<tablecell colspan="" rowspan=""> 448<paragraph role="paragraph" id="par_id3149416" xml-lang="en-US" l10n="U" oldref="151">16</paragraph> 449</tablecell> 450<tablecell colspan="" rowspan=""> 451<paragraph role="paragraph" id="par_id3150631" xml-lang="en-US" l10n="U" oldref="152">Row</paragraph> 452</tablecell> 453<tablecell colspan="" rowspan=""> 454<paragraph role="paragraph" id="par_id3150424" xml-lang="en-US" l10n="U" oldref="153">Row number of the element; numbering starts at 0.</paragraph> 455</tablecell> 456</tablerow> 457<tablerow> 458<tablecell colspan="" rowspan=""> 459<paragraph role="paragraph" id="par_id3154797" xml-lang="en-US" l10n="U" oldref="154">18</paragraph> 460</tablecell> 461<tablecell colspan="" rowspan=""> 462<paragraph role="paragraph" id="par_id3143274" xml-lang="en-US" l10n="U" oldref="155">Tab</paragraph> 463</tablecell> 464<tablecell colspan="" rowspan=""> 465<paragraph role="paragraph" id="par_id3149513" xml-lang="en-US" l10n="U" oldref="156">Table number of the element; numbering starts at 0.</paragraph> 466</tablecell> 467</tablerow> 468<tablerow> 469<tablecell colspan="" rowspan=""> 470<paragraph role="paragraph" id="par_id3145306" xml-lang="en-US" l10n="U" oldref="157">20</paragraph> 471</tablecell> 472<tablecell colspan="" rowspan=""> 473<paragraph role="paragraph" id="par_id3153948" xml-lang="en-US" l10n="U" oldref="158">Error</paragraph> 474</tablecell> 475<tablecell colspan="" rowspan=""> 476<paragraph role="paragraph" id="par_id3153534" xml-lang="en-US" l10n="U" oldref="159">Error number, where the value 0 is defined as "no error." If the element comes from a formula cell the error value is determined by the formula.</paragraph> 477</tablecell> 478</tablerow> 479<tablerow> 480<tablecell colspan="" rowspan=""> 481<paragraph role="paragraph" id="par_id3153311" xml-lang="en-US" l10n="U" oldref="160">22</paragraph> 482</tablecell> 483<tablecell colspan="" rowspan=""> 484<paragraph role="paragraph" id="par_id3148695" xml-lang="en-US" l10n="U" oldref="161">Len</paragraph> 485</tablecell> 486<tablecell colspan="" rowspan=""> 487<paragraph role="paragraph" id="par_id3152769" xml-lang="en-US" l10n="U" oldref="162">Length of the following string, including closing zero byte. If the length including closing zero byte equals an odd value a second zero byte is added to the string so that an even value is achieved. Therefore, Len is calculated using ((StrLen+2)&~1).</paragraph> 488</tablecell> 489</tablerow> 490<tablerow> 491<tablecell colspan="" rowspan=""> 492<paragraph role="paragraph" id="par_id3153772" xml-lang="en-US" l10n="U" oldref="163">24</paragraph> 493</tablecell> 494<tablecell colspan="" rowspan=""> 495<paragraph role="paragraph" id="par_id3153702" xml-lang="en-US" l10n="U" oldref="164">String</paragraph> 496</tablecell> 497<tablecell colspan="" rowspan=""> 498<paragraph role="paragraph" id="par_id3154474" xml-lang="en-US" l10n="U" oldref="165">String with closing zero byte</paragraph> 499</tablecell> 500</tablerow> 501<tablerow> 502<tablecell colspan="" rowspan=""> 503<paragraph role="paragraph" id="par_id3156269" xml-lang="en-US" l10n="U" oldref="166">24+Len</paragraph> 504</tablecell> 505<tablecell colspan="" rowspan=""> 506<paragraph role="paragraph" id="par_id3154825" xml-lang="en-US" l10n="U" oldref="167">...</paragraph> 507</tablecell> 508<tablecell colspan="" rowspan=""> 509<paragraph role="paragraph" id="par_id3147097" xml-lang="en-US" l10n="U" oldref="168">Next element</paragraph> 510</tablecell> 511</tablerow> 512</table> 513<paragraph role="heading" id="hd_id3159091" xml-lang="en-US" level="3" l10n="U" oldref="169">Cell Array</paragraph> 514<paragraph role="paragraph" id="par_id3156140" xml-lang="en-US" l10n="U" oldref="170">Cell arrays are used to call cell areas containing text as well as numbers. A cell array in $[officename] Calc is defined as follows:</paragraph> 515<table id="tbl_id3150942"> 516<tablerow> 517<tablecell colspan="" rowspan=""> 518<paragraph role="paragraph" id="par_id3154664" xml-lang="en-US" l10n="U" oldref="171"> 519<emph>Offset</emph> 520</paragraph> 521</tablecell> 522<tablecell colspan="" rowspan=""> 523<paragraph role="paragraph" id="par_id3154566" xml-lang="en-US" l10n="U" oldref="172"> 524<emph>Name</emph> 525</paragraph> 526</tablecell> 527<tablecell colspan="" rowspan=""> 528<paragraph role="paragraph" id="par_id3146073" xml-lang="en-US" l10n="U" oldref="173"> 529<emph>Description</emph> 530</paragraph> 531</tablecell> 532</tablerow> 533<tablerow> 534<tablecell colspan="" rowspan=""> 535<paragraph role="paragraph" id="par_id3154117" xml-lang="en-US" l10n="U" oldref="174">0</paragraph> 536</tablecell> 537<tablecell colspan="" rowspan=""> 538<paragraph role="paragraph" id="par_id3150988" xml-lang="en-US" l10n="U" oldref="175">Col1</paragraph> 539</tablecell> 540<tablecell colspan="" rowspan=""> 541<paragraph role="paragraph" id="par_id3146783" xml-lang="en-US" l10n="U" oldref="176">Column number in the upper-left corner of the cell area. Numbering starts at 0.</paragraph> 542</tablecell> 543</tablerow> 544<tablerow> 545<tablecell colspan="" rowspan=""> 546<paragraph role="paragraph" id="par_id3153666" xml-lang="en-US" l10n="U" oldref="177">2</paragraph> 547</tablecell> 548<tablecell colspan="" rowspan=""> 549<paragraph role="paragraph" id="par_id3149560" xml-lang="en-US" l10n="U" oldref="178">Row1</paragraph> 550</tablecell> 551<tablecell colspan="" rowspan=""> 552<paragraph role="paragraph" id="par_id3156156" xml-lang="en-US" l10n="U" oldref="179">Row number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 553</tablecell> 554</tablerow> 555<tablerow> 556<tablecell colspan="" rowspan=""> 557<paragraph role="paragraph" id="par_id3150408" xml-lang="en-US" l10n="U" oldref="180">4</paragraph> 558</tablecell> 559<tablecell colspan="" rowspan=""> 560<paragraph role="paragraph" id="par_id3150593" xml-lang="en-US" l10n="U" oldref="181">Tab1</paragraph> 561</tablecell> 562<tablecell colspan="" rowspan=""> 563<paragraph role="paragraph" id="par_id3150357" xml-lang="en-US" l10n="U" oldref="182">Table number in the upper-left corner of the cell area; numbering starts at 0.</paragraph> 564</tablecell> 565</tablerow> 566<tablerow> 567<tablecell colspan="" rowspan=""> 568<paragraph role="paragraph" id="par_id3146912" xml-lang="en-US" l10n="U" oldref="183">6</paragraph> 569</tablecell> 570<tablecell colspan="" rowspan=""> 571<paragraph role="paragraph" id="par_id3153352" xml-lang="en-US" l10n="U" oldref="184">Col2</paragraph> 572</tablecell> 573<tablecell colspan="" rowspan=""> 574<paragraph role="paragraph" id="par_id3155893" xml-lang="en-US" l10n="U" oldref="185">Column number in the lower-right corner of the cell area. Numbering starts at 0.</paragraph> 575</tablecell> 576</tablerow> 577<tablerow> 578<tablecell colspan="" rowspan=""> 579<paragraph role="paragraph" id="par_id3150827" xml-lang="en-US" l10n="U" oldref="186">8</paragraph> 580</tablecell> 581<tablecell colspan="" rowspan=""> 582<paragraph role="paragraph" id="par_id3148406" xml-lang="en-US" l10n="U" oldref="187">Row2</paragraph> 583</tablecell> 584<tablecell colspan="" rowspan=""> 585<paragraph role="paragraph" id="par_id3150673" xml-lang="en-US" l10n="U" oldref="188">Row number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 586</tablecell> 587</tablerow> 588<tablerow> 589<tablecell colspan="" rowspan=""> 590<paragraph role="paragraph" id="par_id3155864" xml-lang="en-US" l10n="U" oldref="189">10</paragraph> 591</tablecell> 592<tablecell colspan="" rowspan=""> 593<paragraph role="paragraph" id="par_id3153197" xml-lang="en-US" l10n="U" oldref="190">Tab2</paragraph> 594</tablecell> 595<tablecell colspan="" rowspan=""> 596<paragraph role="paragraph" id="par_id3149329" xml-lang="en-US" l10n="U" oldref="191">Table number in the lower-right corner of the cell area; numbering starts at 0.</paragraph> 597</tablecell> 598</tablerow> 599<tablerow> 600<tablecell colspan="" rowspan=""> 601<paragraph role="paragraph" id="par_id3147360" xml-lang="en-US" l10n="U" oldref="192">12</paragraph> 602</tablecell> 603<tablecell colspan="" rowspan=""> 604<paragraph role="paragraph" id="par_id3154520" xml-lang="en-US" l10n="U" oldref="193">Count</paragraph> 605</tablecell> 606<tablecell colspan="" rowspan=""> 607<paragraph role="paragraph" id="par_id3150647" xml-lang="en-US" l10n="U" oldref="194">Number of the following elements. Empty cells are not counted or passed.</paragraph> 608</tablecell> 609</tablerow> 610<tablerow> 611<tablecell colspan="" rowspan=""> 612<paragraph role="paragraph" id="par_id3149747" xml-lang="en-US" l10n="U" oldref="195">14</paragraph> 613</tablecell> 614<tablecell colspan="" rowspan=""> 615<paragraph role="paragraph" id="par_id3147579" xml-lang="en-US" l10n="U" oldref="196">Col</paragraph> 616</tablecell> 617<tablecell colspan="" rowspan=""> 618<paragraph role="paragraph" id="par_id3154188" xml-lang="en-US" l10n="U" oldref="197">Column number of the element. Numbering starts at 0.</paragraph> 619</tablecell> 620</tablerow> 621<tablerow> 622<tablecell colspan="" rowspan=""> 623<paragraph role="paragraph" id="par_id3159209" xml-lang="en-US" l10n="U" oldref="198">16</paragraph> 624</tablecell> 625<tablecell colspan="" rowspan=""> 626<paragraph role="paragraph" id="par_id3153265" xml-lang="en-US" l10n="U" oldref="199">Row</paragraph> 627</tablecell> 628<tablecell colspan="" rowspan=""> 629<paragraph role="paragraph" id="par_id3150095" xml-lang="en-US" l10n="U" oldref="200">Row number of the element; numbering starts at 0.</paragraph> 630</tablecell> 631</tablerow> 632<tablerow> 633<tablecell colspan="" rowspan=""> 634<paragraph role="paragraph" id="par_id3151276" xml-lang="en-US" l10n="U" oldref="201">18</paragraph> 635</tablecell> 636<tablecell colspan="" rowspan=""> 637<paragraph role="paragraph" id="par_id3149177" xml-lang="en-US" l10n="U" oldref="202">Tab</paragraph> 638</tablecell> 639<tablecell colspan="" rowspan=""> 640<paragraph role="paragraph" id="par_id3146925" xml-lang="en-US" l10n="U" oldref="203">Table number of the element; numbering starts at 0.</paragraph> 641</tablecell> 642</tablerow> 643<tablerow> 644<tablecell colspan="" rowspan=""> 645<paragraph role="paragraph" id="par_id3150488" xml-lang="en-US" l10n="U" oldref="204">20</paragraph> 646</tablecell> 647<tablecell colspan="" rowspan=""> 648<paragraph role="paragraph" id="par_id3149441" xml-lang="en-US" l10n="U" oldref="205">Error</paragraph> 649</tablecell> 650<tablecell colspan="" rowspan=""> 651<paragraph role="paragraph" id="par_id3156048" xml-lang="en-US" l10n="U" oldref="206">Error number, where the value 0 is defined as "no error." If the element comes from a formula cell the error value is determined by the formula.</paragraph> 652</tablecell> 653</tablerow> 654<tablerow> 655<tablecell colspan="" rowspan=""> 656<paragraph role="paragraph" id="par_id3163813" xml-lang="en-US" l10n="U" oldref="207">22</paragraph> 657</tablecell> 658<tablecell colspan="" rowspan=""> 659<paragraph role="paragraph" id="par_id3159102" xml-lang="en-US" l10n="U" oldref="208">Type</paragraph> 660</tablecell> 661<tablecell colspan="" rowspan=""> 662<paragraph role="paragraph" id="par_id3149581" xml-lang="en-US" l10n="U" oldref="209">Type of cell content, 0 == Double, 1 == String</paragraph> 663</tablecell> 664</tablerow> 665<tablerow> 666<tablecell colspan="" rowspan=""> 667<paragraph role="paragraph" id="par_id3155182" xml-lang="en-US" l10n="U" oldref="210">24</paragraph> 668</tablecell> 669<tablecell colspan="" rowspan=""> 670<paragraph role="paragraph" id="par_id3153291" xml-lang="en-US" l10n="U" oldref="211">Value or Len</paragraph> 671</tablecell> 672<tablecell colspan="" rowspan=""> 673<paragraph role="paragraph" id="par_id3148560" xml-lang="en-US" l10n="U" oldref="212">If type == 0: 8 byte IEEE variable of type double/floating point</paragraph> 674<paragraph role="paragraph" id="par_id3148901" xml-lang="en-US" l10n="U" oldref="213">If type == 1: Length of the following string, including closing zero byte. If the length including closing zero byte equals an odd value a second zero byte is added to the string so that an even value is achieved. Therefore, Len is calculated using ((StrLen+2)&~1).</paragraph> 675</tablecell> 676</tablerow> 677<tablerow> 678<tablecell colspan="" rowspan=""> 679<paragraph role="paragraph" id="par_id3145215" xml-lang="en-US" l10n="U" oldref="214">26 if type==1</paragraph> 680</tablecell> 681<tablecell colspan="" rowspan=""> 682<paragraph role="paragraph" id="par_id3155143" xml-lang="en-US" l10n="U" oldref="215">String</paragraph> 683</tablecell> 684<tablecell colspan="" rowspan=""> 685<paragraph role="paragraph" id="par_id3149298" xml-lang="en-US" l10n="U" oldref="216">If type == 1: String with closing zero byte</paragraph> 686</tablecell> 687</tablerow> 688<tablerow> 689<tablecell colspan="" rowspan=""> 690<paragraph role="paragraph" id="par_id3151322" xml-lang="en-US" l10n="U" oldref="217">32 or 26+Len</paragraph> 691</tablecell> 692<tablecell colspan="" rowspan=""> 693<paragraph role="paragraph" id="par_id3163722" xml-lang="en-US" l10n="U" oldref="218">...</paragraph> 694</tablecell> 695<tablecell colspan="" rowspan=""> 696<paragraph role="paragraph" id="par_id3151059" xml-lang="en-US" l10n="U" oldref="219">Next element</paragraph> 697</tablecell> 698</tablerow> 699</table> 700</body> 701</helpdocument> 702