1<?xml version="1.0" encoding="UTF-8"?> 2 3 4<!--*********************************************************** 5 * 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the 11 * "License"); you may not use this file except in compliance 12 * with the License. You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, 17 * software distributed under the License is distributed on an 18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19 * KIND, either express or implied. See the License for the 20 * specific language governing permissions and limitations 21 * under the License. 22 * 23 ***********************************************************--> 24 25 26 27<helpdocument version="1.0"> 28<meta> 29<topic id="textscalc0104060112xml" indexer="include" status="PUBLISH"> 30<title id="tit" xml-lang="en-US">Add-in for Programming in $[officename] Calc</title> 31<filename>/text/scalc/01/04060112.xhp</filename> 32</topic> 33<history> 34<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created> 35<lastedited date="2006-03-31T13:39:47">converted from old format - fpe 36dedr: fixed #i30855#</lastedited> 37</history> 38</meta> 39<body> 40<bookmark xml-lang="en-US" branch="index" id="bm_id3151076"><bookmark_value>programming; add-ins</bookmark_value> 41<bookmark_value>shared libraries; programming</bookmark_value> 42<bookmark_value>external DLL functions</bookmark_value> 43<bookmark_value>functions; $[officename] Calc add-in DLL</bookmark_value> 44<bookmark_value>add-ins; for programming</bookmark_value> 45</bookmark><comment>mw made "external..." a one level entry and deleted one "functions;..." entry</comment> 46<paragraph role="heading" id="hd_id3151076" xml-lang="en-US" level="1" l10n="U" oldref="1">Add-in for Programming in $[officename] Calc</paragraph> 47<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> 48<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 49</caseinline><defaultinline>external DLL</defaultinline></switchinline> so that the Add-In can be successfully attached.</paragraph> 50<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 51</caseinline><defaultinline>DLL</defaultinline></switchinline>. To be recognized by $[officename], the <switchinline select="sys"><caseinline select="UNIX">shared library 52</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> 53<section id="addinconcept"> 54<paragraph role="heading" id="hd_id3146981" xml-lang="en-US" level="2" l10n="U" oldref="4">The Add-In Concept</paragraph> 55<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> 56</section> 57<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 58</caseinline><defaultinline>AddIn DLL</defaultinline></switchinline></paragraph> 59<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> 60<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> 61<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> 62<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> 63<paragraph role="heading" id="hd_id3145077" xml-lang="en-US" level="2" l10n="U" oldref="11">General information about the interface</paragraph> 64<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> 65<paragraph role="paragraph" id="par_id3149899" xml-lang="en-US" l10n="U" oldref="13">The data types are defined as follows:</paragraph> 66<table id="tbl_id3159203"> 67<tablerow> 68<tablecell colspan="" rowspan=""> 69<paragraph role="paragraph" id="par_id3151302" xml-lang="en-US" l10n="U" oldref="14"> 70<emph>Data types</emph> 71</paragraph> 72</tablecell> 73<tablecell colspan="" rowspan=""> 74<paragraph role="paragraph" id="par_id3143222" xml-lang="en-US" l10n="U" oldref="15"> 75<emph>Definition</emph> 76</paragraph> 77</tablecell> 78</tablerow> 79<tablerow> 80<tablecell colspan="" rowspan=""> 81<paragraph role="paragraph" id="par_id3149384" xml-lang="en-US" l10n="U" oldref="16">CALLTYPE</paragraph> 82</tablecell> 83<tablecell colspan="" rowspan=""> 84<paragraph role="paragraph" id="par_id3146963" xml-lang="en-US" l10n="U" oldref="17">Under Windows: FAR PASCAL (_far _pascal)</paragraph> 85<paragraph role="paragraph" id="par_id3153809" xml-lang="en-US" l10n="U" oldref="18">Other: default (operating system specific default)</paragraph> 86</tablecell> 87</tablerow> 88<tablerow> 89<tablecell colspan="" rowspan=""> 90<paragraph role="paragraph" id="par_id3154734" xml-lang="en-US" l10n="U" oldref="19">USHORT</paragraph> 91</tablecell> 92<tablecell colspan="" rowspan=""> 93<paragraph role="paragraph" id="par_id3155760" xml-lang="en-US" l10n="U" oldref="20">2 Byte unsigned Integer</paragraph> 94</tablecell> 95</tablerow> 96<tablerow> 97<tablecell colspan="" rowspan=""> 98<paragraph role="paragraph" id="par_id3145320" xml-lang="en-US" l10n="U" oldref="21">DOUBLE</paragraph> 99</tablecell> 100<tablecell colspan="" rowspan=""> 101<paragraph role="paragraph" id="par_id3150956" xml-lang="en-US" l10n="U" oldref="22">8 byte platform-dependent format</paragraph> 102</tablecell> 103</tablerow> 104<tablerow> 105<tablecell colspan="" rowspan=""> 106<paragraph role="paragraph" id="par_id3146097" xml-lang="en-US" l10n="U" oldref="23">Paramtype</paragraph> 107</tablecell> 108<tablecell colspan="" rowspan=""> 109<paragraph role="paragraph" id="par_id3150432" xml-lang="en-US" l10n="U" oldref="24">Platform-dependent like int</paragraph> 110<paragraph role="paragraph" id="par_id3153955" xml-lang="en-US" l10n="U" oldref="25">PTR_DOUBLE =0 pointer to a double</paragraph> 111<paragraph role="paragraph" id="par_id3159262" xml-lang="en-US" l10n="U" oldref="26">PTR_STRING =1 pointer to a zero-terminated string</paragraph> 112<paragraph role="paragraph" id="par_id3148747" xml-lang="en-US" l10n="U" oldref="27">PTR_DOUBLE_ARR =2 pointer to a double array</paragraph> 113<paragraph role="paragraph" id="par_id3147406" xml-lang="en-US" l10n="U" oldref="28">PTR_STRING_ARR =3 pointer to a string array</paragraph> 114<paragraph role="paragraph" id="par_id3151392" xml-lang="en-US" l10n="U" oldref="29">PTR_CELL_ARR =4 pointer to a cell array</paragraph> 115<paragraph role="paragraph" id="par_id3153028" xml-lang="en-US" l10n="U" oldref="30">NONE =5</paragraph> 116</tablecell> 117</tablerow> 118</table> 119 120<paragraph role="heading" id="hd_id3156396" xml-lang="en-US" level="2" l10n="U" oldref="31"><switchinline select="sys"><caseinline select="UNIX">Shared Library 121</caseinline><defaultinline>DLL</defaultinline></switchinline> functions</paragraph> 122<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 123</caseinline><defaultinline>external DLL</defaultinline></switchinline>.</paragraph> 124<paragraph role="paragraph" id="par_id3150038" xml-lang="en-US" l10n="U" oldref="33">For all <switchinline select="sys"><caseinline select="UNIX">Shared Library 125</caseinline><defaultinline>DLL</defaultinline></switchinline> functions, the following applies:</paragraph> 126<paragraph role="paragraph" id="par_id3157876" xml-lang="en-US" l10n="U" oldref="34">void CALLTYPE fn(out, in1, in2, ...)</paragraph> 127<paragraph role="paragraph" id="par_id3147616" xml-lang="en-US" l10n="U" oldref="35">Output: Resulting value</paragraph> 128<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> 129<paragraph role="heading" id="hd_id3150653" xml-lang="en-US" level="3" l10n="U" oldref="37">GetFunctionCount()</paragraph> 130<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> 131<paragraph role="paragraph" id="par_id3150742" xml-lang="en-US" l10n="U" oldref="39"> 132<emph>Syntax</emph> 133</paragraph> 134<paragraph role="paragraph" id="par_id3148728" xml-lang="en-US" l10n="U" oldref="40">void CALLTYPE GetFunctionCount(USHORT& nCount)</paragraph> 135<paragraph role="paragraph" id="par_id3154677" xml-lang="en-US" l10n="U" oldref="41"> 136<emph>Parameter</emph> 137</paragraph> 138<paragraph role="paragraph" id="par_id3146940" xml-lang="en-US" l10n="U" oldref="42">USHORT &nCount:</paragraph> 139<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> 140<paragraph role="heading" id="hd_id3147476" xml-lang="en-US" level="3" l10n="U" oldref="44">GetFunctionData()</paragraph> 141<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> 142<paragraph role="paragraph" id="par_id3148888" xml-lang="en-US" l10n="U" oldref="46"> 143<emph>Syntax</emph> 144</paragraph> 145<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> 146<paragraph role="paragraph" id="par_id3149253" xml-lang="en-US" l10n="U" oldref="48"> 147<emph>Parameter</emph> 148</paragraph> 149<paragraph role="paragraph" id="par_id3149686" xml-lang="en-US" l10n="U" oldref="49">USHORT& nNo:</paragraph> 150<paragraph role="paragraph" id="par_id3149949" xml-lang="en-US" l10n="U" oldref="50">Input: Function number between 0 and nCount-1, inclusively.</paragraph> 151<paragraph role="paragraph" id="par_id3149546" xml-lang="en-US" l10n="U" oldref="51">char* pFuncName:</paragraph> 152<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 153</caseinline><defaultinline>DLL</defaultinline></switchinline>. This name does not determine the name used in the <emph>Function Wizard</emph>.</paragraph> 154<paragraph role="paragraph" id="par_id3153935" xml-lang="en-US" l10n="U" oldref="53">USHORT& nParamCount:</paragraph> 155<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> 156<paragraph role="paragraph" id="par_id3145143" xml-lang="en-US" l10n="U" oldref="55">Paramtype* peType:</paragraph> 157<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> 158<paragraph role="paragraph" id="par_id3153078" xml-lang="en-US" l10n="U" oldref="57">char* pInternalName:</paragraph> 159<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> 160<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> 161<paragraph role="heading" id="hd_id3148567" xml-lang="en-US" level="3" l10n="U" oldref="60">GetParameterDescription()</paragraph> 162<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> 163<paragraph role="paragraph" id="par_id3154501" xml-lang="en-US" l10n="U" oldref="62"> 164<emph>Syntax</emph> 165</paragraph> 166<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> 167<paragraph role="paragraph" id="par_id3157995" xml-lang="en-US" l10n="U" oldref="64"> 168<emph>Parameter</emph> 169</paragraph> 170<paragraph role="paragraph" id="par_id3155925" xml-lang="en-US" l10n="U" oldref="65">USHORT& nNo:</paragraph> 171<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> 172<paragraph role="paragraph" id="par_id3154326" xml-lang="en-US" l10n="U" oldref="67">USHORT& nParam:</paragraph> 173<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> 174<paragraph role="paragraph" id="par_id3147374" xml-lang="en-US" l10n="U" oldref="69">char* pName:</paragraph> 175<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> 176<paragraph role="paragraph" id="par_id3151020" xml-lang="en-US" l10n="U" oldref="71">char* pDesc:</paragraph> 177<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> 178<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> 179<paragraph role="heading" id="hd_id3148874" xml-lang="en-US" level="2" l10n="U" oldref="76">Cell areas</paragraph> 180<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> 181<paragraph role="heading" id="hd_id3156060" xml-lang="en-US" level="3" l10n="U" oldref="78">Double Array</paragraph> 182<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> 183<table id="tbl_id3150665"> 184<tablerow> 185<tablecell colspan="" rowspan=""> 186<paragraph role="paragraph" id="par_id3149388" xml-lang="en-US" l10n="U" oldref="80"> 187<emph>Offset</emph> 188</paragraph> 189</tablecell> 190<tablecell colspan="" rowspan=""> 191<paragraph role="paragraph" id="par_id3154636" xml-lang="en-US" l10n="U" oldref="81"> 192<emph>Name</emph> 193</paragraph> 194</tablecell> 195<tablecell colspan="" rowspan=""> 196<paragraph role="paragraph" id="par_id3153228" xml-lang="en-US" l10n="U" oldref="82"> 197<emph>Description</emph> 198</paragraph> 199</tablecell> 200</tablerow> 201<tablerow> 202<tablecell colspan="" rowspan=""> 203<paragraph role="paragraph" id="par_id3150685" xml-lang="en-US" l10n="U" oldref="83">0</paragraph> 204</tablecell> 205<tablecell colspan="" rowspan=""> 206<paragraph role="paragraph" id="par_id3154869" xml-lang="en-US" l10n="U" oldref="84">Col1</paragraph> 207</tablecell> 208<tablecell colspan="" rowspan=""> 209<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> 210</tablecell> 211</tablerow> 212<tablerow> 213<tablecell colspan="" rowspan=""> 214<paragraph role="paragraph" id="par_id3149783" xml-lang="en-US" l10n="U" oldref="86">2</paragraph> 215</tablecell> 216<tablecell colspan="" rowspan=""> 217<paragraph role="paragraph" id="par_id3155986" xml-lang="en-US" l10n="U" oldref="87">Row1</paragraph> 218</tablecell> 219<tablecell colspan="" rowspan=""> 220<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> 221</tablecell> 222</tablerow> 223<tablerow> 224<tablecell colspan="" rowspan=""> 225<paragraph role="paragraph" id="par_id3153721" xml-lang="en-US" l10n="U" oldref="89">4</paragraph> 226</tablecell> 227<tablecell colspan="" rowspan=""> 228<paragraph role="paragraph" id="par_id3154317" xml-lang="en-US" l10n="U" oldref="90">Tab1</paragraph> 229</tablecell> 230<tablecell colspan="" rowspan=""> 231<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> 232</tablecell> 233</tablerow> 234<tablerow> 235<tablecell colspan="" rowspan=""> 236<paragraph role="paragraph" id="par_id3163820" xml-lang="en-US" l10n="U" oldref="92">6</paragraph> 237</tablecell> 238<tablecell colspan="" rowspan=""> 239<paragraph role="paragraph" id="par_id3149710" xml-lang="en-US" l10n="U" oldref="93">Col2</paragraph> 240</tablecell> 241<tablecell colspan="" rowspan=""> 242<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> 243</tablecell> 244</tablerow> 245<tablerow> 246<tablecell colspan="" rowspan=""> 247<paragraph role="paragraph" id="par_id3145083" xml-lang="en-US" l10n="U" oldref="95">8</paragraph> 248</tablecell> 249<tablecell colspan="" rowspan=""> 250<paragraph role="paragraph" id="par_id3156310" xml-lang="en-US" l10n="U" oldref="96">Row2</paragraph> 251</tablecell> 252<tablecell colspan="" rowspan=""> 253<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> 254</tablecell> 255</tablerow> 256<tablerow> 257<tablecell colspan="" rowspan=""> 258<paragraph role="paragraph" id="par_id3156133" xml-lang="en-US" l10n="U" oldref="98">10</paragraph> 259</tablecell> 260<tablecell colspan="" rowspan=""> 261<paragraph role="paragraph" id="par_id3153218" xml-lang="en-US" l10n="U" oldref="99">Tab2</paragraph> 262</tablecell> 263<tablecell colspan="" rowspan=""> 264<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> 265</tablecell> 266</tablerow> 267<tablerow> 268<tablecell colspan="" rowspan=""> 269<paragraph role="paragraph" id="par_id3151270" xml-lang="en-US" l10n="U" oldref="101">12</paragraph> 270</tablecell> 271<tablecell colspan="" rowspan=""> 272<paragraph role="paragraph" id="par_id3152934" xml-lang="en-US" l10n="U" oldref="102">Count</paragraph> 273</tablecell> 274<tablecell colspan="" rowspan=""> 275<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> 276</tablecell> 277</tablerow> 278<tablerow> 279<tablecell colspan="" rowspan=""> 280<paragraph role="paragraph" id="par_id3150879" xml-lang="en-US" l10n="U" oldref="104">14</paragraph> 281</tablecell> 282<tablecell colspan="" rowspan=""> 283<paragraph role="paragraph" id="par_id3156002" xml-lang="en-US" l10n="U" oldref="105">Col</paragraph> 284</tablecell> 285<tablecell colspan="" rowspan=""> 286<paragraph role="paragraph" id="par_id3147276" xml-lang="en-US" l10n="U" oldref="106">Column number of the element. Numbering starts at 0.</paragraph> 287</tablecell> 288</tablerow> 289<tablerow> 290<tablecell colspan="" rowspan=""> 291<paragraph role="paragraph" id="par_id3151295" xml-lang="en-US" l10n="U" oldref="107">16</paragraph> 292</tablecell> 293<tablecell colspan="" rowspan=""> 294<paragraph role="paragraph" id="par_id3150261" xml-lang="en-US" l10n="U" oldref="108">Row</paragraph> 295</tablecell> 296<tablecell colspan="" rowspan=""> 297<paragraph role="paragraph" id="par_id3155851" xml-lang="en-US" l10n="U" oldref="109">Row number of the element; numbering starts at 0.</paragraph> 298</tablecell> 299</tablerow> 300<tablerow> 301<tablecell colspan="" rowspan=""> 302<paragraph role="paragraph" id="par_id3153150" xml-lang="en-US" l10n="U" oldref="110">18</paragraph> 303</tablecell> 304<tablecell colspan="" rowspan=""> 305<paragraph role="paragraph" id="par_id3153758" xml-lang="en-US" l10n="U" oldref="111">Tab</paragraph> 306</tablecell> 307<tablecell colspan="" rowspan=""> 308<paragraph role="paragraph" id="par_id3150154" xml-lang="en-US" l10n="U" oldref="112">Table number of the element; numbering starts at 0.</paragraph> 309</tablecell> 310</tablerow> 311<tablerow> 312<tablecell colspan="" rowspan=""> 313<paragraph role="paragraph" id="par_id3149289" xml-lang="en-US" l10n="U" oldref="113">20</paragraph> 314</tablecell> 315<tablecell colspan="" rowspan=""> 316<paragraph role="paragraph" id="par_id3156010" xml-lang="en-US" l10n="U" oldref="114">Error</paragraph> 317</tablecell> 318<tablecell colspan="" rowspan=""> 319<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> 320</tablecell> 321</tablerow> 322<tablerow> 323<tablecell colspan="" rowspan=""> 324<paragraph role="paragraph" id="par_id3147493" xml-lang="en-US" l10n="U" oldref="116">22</paragraph> 325</tablecell> 326<tablecell colspan="" rowspan=""> 327<paragraph role="paragraph" id="par_id3149200" xml-lang="en-US" l10n="U" oldref="117">Value</paragraph> 328</tablecell> 329<tablecell colspan="" rowspan=""> 330<paragraph role="paragraph" id="par_id3151174" xml-lang="en-US" l10n="U" oldref="118">8 byte IEEE variable of type double/floating point</paragraph> 331</tablecell> 332</tablerow> 333<tablerow> 334<tablecell colspan="" rowspan=""> 335<paragraph role="paragraph" id="par_id3154688" xml-lang="en-US" l10n="U" oldref="119">30</paragraph> 336</tablecell> 337<tablecell colspan="" rowspan=""> 338<paragraph role="paragraph" id="par_id3159337" xml-lang="en-US" l10n="U" oldref="120">...</paragraph> 339</tablecell> 340<tablecell colspan="" rowspan=""> 341<paragraph role="paragraph" id="par_id3155388" xml-lang="en-US" l10n="U" oldref="121">Next element</paragraph> 342</tablecell> 343</tablerow> 344</table> 345 346<paragraph role="heading" id="hd_id3154935" xml-lang="en-US" level="3" l10n="U" oldref="122">String Array</paragraph> 347<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> 348<table id="tbl_id3146992"> 349<tablerow> 350<tablecell colspan="" rowspan=""> 351<paragraph role="paragraph" id="par_id3149908" xml-lang="en-US" l10n="U" oldref="124"> 352<emph>Offset</emph> 353</paragraph> 354</tablecell> 355<tablecell colspan="" rowspan=""> 356<paragraph role="paragraph" id="par_id3159165" xml-lang="en-US" l10n="U" oldref="125"> 357<emph>Name</emph> 358</paragraph> 359</tablecell> 360<tablecell colspan="" rowspan=""> 361<paragraph role="paragraph" id="par_id3159150" xml-lang="en-US" l10n="U" oldref="126"> 362<emph>Description</emph> 363</paragraph> 364</tablecell> 365</tablerow> 366<tablerow> 367<tablecell colspan="" rowspan=""> 368<paragraph role="paragraph" id="par_id3149769" xml-lang="en-US" l10n="U" oldref="127">0</paragraph> 369</tablecell> 370<tablecell colspan="" rowspan=""> 371<paragraph role="paragraph" id="par_id3150509" xml-lang="en-US" l10n="U" oldref="128">Col1</paragraph> 372</tablecell> 373<tablecell colspan="" rowspan=""> 374<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> 375</tablecell> 376</tablerow> 377<tablerow> 378<tablecell colspan="" rowspan=""> 379<paragraph role="paragraph" id="par_id3145418" xml-lang="en-US" l10n="U" oldref="130">2</paragraph> 380</tablecell> 381<tablecell colspan="" rowspan=""> 382<paragraph role="paragraph" id="par_id3147512" xml-lang="en-US" l10n="U" oldref="131">Row1</paragraph> 383</tablecell> 384<tablecell colspan="" rowspan=""> 385<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> 386</tablecell> 387</tablerow> 388<tablerow> 389<tablecell colspan="" rowspan=""> 390<paragraph role="paragraph" id="par_id3155362" xml-lang="en-US" l10n="U" oldref="133">4</paragraph> 391</tablecell> 392<tablecell colspan="" rowspan=""> 393<paragraph role="paragraph" id="par_id3151051" xml-lang="en-US" l10n="U" oldref="134">Tab1</paragraph> 394</tablecell> 395<tablecell colspan="" rowspan=""> 396<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> 397</tablecell> 398</tablerow> 399<tablerow> 400<tablecell colspan="" rowspan=""> 401<paragraph role="paragraph" id="par_id3149158" xml-lang="en-US" l10n="U" oldref="136">6</paragraph> 402</tablecell> 403<tablecell colspan="" rowspan=""> 404<paragraph role="paragraph" id="par_id3166437" xml-lang="en-US" l10n="U" oldref="137">Col2</paragraph> 405</tablecell> 406<tablecell colspan="" rowspan=""> 407<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> 408</tablecell> 409</tablerow> 410<tablerow> 411<tablecell colspan="" rowspan=""> 412<paragraph role="paragraph" id="par_id3166450" xml-lang="en-US" l10n="U" oldref="139">8</paragraph> 413</tablecell> 414<tablecell colspan="" rowspan=""> 415<paragraph role="paragraph" id="par_id3152877" xml-lang="en-US" l10n="U" oldref="140">Row2</paragraph> 416</tablecell> 417<tablecell colspan="" rowspan=""> 418<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> 419</tablecell> 420</tablerow> 421<tablerow> 422<tablecell colspan="" rowspan=""> 423<paragraph role="paragraph" id="par_id3159270" xml-lang="en-US" l10n="U" oldref="142">10</paragraph> 424</tablecell> 425<tablecell colspan="" rowspan=""> 426<paragraph role="paragraph" id="par_id3154107" xml-lang="en-US" l10n="U" oldref="143">Tab2</paragraph> 427</tablecell> 428<tablecell colspan="" rowspan=""> 429<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> 430</tablecell> 431</tablerow> 432<tablerow> 433<tablecell colspan="" rowspan=""> 434<paragraph role="paragraph" id="par_id3149924" xml-lang="en-US" l10n="U" oldref="145">12</paragraph> 435</tablecell> 436<tablecell colspan="" rowspan=""> 437<paragraph role="paragraph" id="par_id3154858" xml-lang="en-US" l10n="U" oldref="146">Count</paragraph> 438</tablecell> 439<tablecell colspan="" rowspan=""> 440<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> 441</tablecell> 442</tablerow> 443<tablerow> 444<tablecell colspan="" rowspan=""> 445<paragraph role="paragraph" id="par_id3148467" xml-lang="en-US" l10n="U" oldref="148">14</paragraph> 446</tablecell> 447<tablecell colspan="" rowspan=""> 448<paragraph role="paragraph" id="par_id3151126" xml-lang="en-US" l10n="U" oldref="149">Col</paragraph> 449</tablecell> 450<tablecell colspan="" rowspan=""> 451<paragraph role="paragraph" id="par_id3154334" xml-lang="en-US" l10n="U" oldref="150">Column number of the element. Numbering starts at 0.</paragraph> 452</tablecell> 453</tablerow> 454<tablerow> 455<tablecell colspan="" rowspan=""> 456<paragraph role="paragraph" id="par_id3149416" xml-lang="en-US" l10n="U" oldref="151">16</paragraph> 457</tablecell> 458<tablecell colspan="" rowspan=""> 459<paragraph role="paragraph" id="par_id3150631" xml-lang="en-US" l10n="U" oldref="152">Row</paragraph> 460</tablecell> 461<tablecell colspan="" rowspan=""> 462<paragraph role="paragraph" id="par_id3150424" xml-lang="en-US" l10n="U" oldref="153">Row number of the element; numbering starts at 0.</paragraph> 463</tablecell> 464</tablerow> 465<tablerow> 466<tablecell colspan="" rowspan=""> 467<paragraph role="paragraph" id="par_id3154797" xml-lang="en-US" l10n="U" oldref="154">18</paragraph> 468</tablecell> 469<tablecell colspan="" rowspan=""> 470<paragraph role="paragraph" id="par_id3143274" xml-lang="en-US" l10n="U" oldref="155">Tab</paragraph> 471</tablecell> 472<tablecell colspan="" rowspan=""> 473<paragraph role="paragraph" id="par_id3149513" xml-lang="en-US" l10n="U" oldref="156">Table number of the element; numbering starts at 0.</paragraph> 474</tablecell> 475</tablerow> 476<tablerow> 477<tablecell colspan="" rowspan=""> 478<paragraph role="paragraph" id="par_id3145306" xml-lang="en-US" l10n="U" oldref="157">20</paragraph> 479</tablecell> 480<tablecell colspan="" rowspan=""> 481<paragraph role="paragraph" id="par_id3153948" xml-lang="en-US" l10n="U" oldref="158">Error</paragraph> 482</tablecell> 483<tablecell colspan="" rowspan=""> 484<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> 485</tablecell> 486</tablerow> 487<tablerow> 488<tablecell colspan="" rowspan=""> 489<paragraph role="paragraph" id="par_id3153311" xml-lang="en-US" l10n="U" oldref="160">22</paragraph> 490</tablecell> 491<tablecell colspan="" rowspan=""> 492<paragraph role="paragraph" id="par_id3148695" xml-lang="en-US" l10n="U" oldref="161">Len</paragraph> 493</tablecell> 494<tablecell colspan="" rowspan=""> 495<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> 496</tablecell> 497</tablerow> 498<tablerow> 499<tablecell colspan="" rowspan=""> 500<paragraph role="paragraph" id="par_id3153772" xml-lang="en-US" l10n="U" oldref="163">24</paragraph> 501</tablecell> 502<tablecell colspan="" rowspan=""> 503<paragraph role="paragraph" id="par_id3153702" xml-lang="en-US" l10n="U" oldref="164">String</paragraph> 504</tablecell> 505<tablecell colspan="" rowspan=""> 506<paragraph role="paragraph" id="par_id3154474" xml-lang="en-US" l10n="U" oldref="165">String with closing zero byte</paragraph> 507</tablecell> 508</tablerow> 509<tablerow> 510<tablecell colspan="" rowspan=""> 511<paragraph role="paragraph" id="par_id3156269" xml-lang="en-US" l10n="U" oldref="166">24+Len</paragraph> 512</tablecell> 513<tablecell colspan="" rowspan=""> 514<paragraph role="paragraph" id="par_id3154825" xml-lang="en-US" l10n="U" oldref="167">...</paragraph> 515</tablecell> 516<tablecell colspan="" rowspan=""> 517<paragraph role="paragraph" id="par_id3147097" xml-lang="en-US" l10n="U" oldref="168">Next element</paragraph> 518</tablecell> 519</tablerow> 520</table> 521 522<paragraph role="heading" id="hd_id3159091" xml-lang="en-US" level="3" l10n="U" oldref="169">Cell Array</paragraph> 523<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> 524<table id="tbl_id3150942"> 525<tablerow> 526<tablecell colspan="" rowspan=""> 527<paragraph role="paragraph" id="par_id3154664" xml-lang="en-US" l10n="U" oldref="171"> 528<emph>Offset</emph> 529</paragraph> 530</tablecell> 531<tablecell colspan="" rowspan=""> 532<paragraph role="paragraph" id="par_id3154566" xml-lang="en-US" l10n="U" oldref="172"> 533<emph>Name</emph> 534</paragraph> 535</tablecell> 536<tablecell colspan="" rowspan=""> 537<paragraph role="paragraph" id="par_id3146073" xml-lang="en-US" l10n="U" oldref="173"> 538<emph>Description</emph> 539</paragraph> 540</tablecell> 541</tablerow> 542<tablerow> 543<tablecell colspan="" rowspan=""> 544<paragraph role="paragraph" id="par_id3154117" xml-lang="en-US" l10n="U" oldref="174">0</paragraph> 545</tablecell> 546<tablecell colspan="" rowspan=""> 547<paragraph role="paragraph" id="par_id3150988" xml-lang="en-US" l10n="U" oldref="175">Col1</paragraph> 548</tablecell> 549<tablecell colspan="" rowspan=""> 550<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> 551</tablecell> 552</tablerow> 553<tablerow> 554<tablecell colspan="" rowspan=""> 555<paragraph role="paragraph" id="par_id3153666" xml-lang="en-US" l10n="U" oldref="177">2</paragraph> 556</tablecell> 557<tablecell colspan="" rowspan=""> 558<paragraph role="paragraph" id="par_id3149560" xml-lang="en-US" l10n="U" oldref="178">Row1</paragraph> 559</tablecell> 560<tablecell colspan="" rowspan=""> 561<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> 562</tablecell> 563</tablerow> 564<tablerow> 565<tablecell colspan="" rowspan=""> 566<paragraph role="paragraph" id="par_id3150408" xml-lang="en-US" l10n="U" oldref="180">4</paragraph> 567</tablecell> 568<tablecell colspan="" rowspan=""> 569<paragraph role="paragraph" id="par_id3150593" xml-lang="en-US" l10n="U" oldref="181">Tab1</paragraph> 570</tablecell> 571<tablecell colspan="" rowspan=""> 572<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> 573</tablecell> 574</tablerow> 575<tablerow> 576<tablecell colspan="" rowspan=""> 577<paragraph role="paragraph" id="par_id3146912" xml-lang="en-US" l10n="U" oldref="183">6</paragraph> 578</tablecell> 579<tablecell colspan="" rowspan=""> 580<paragraph role="paragraph" id="par_id3153352" xml-lang="en-US" l10n="U" oldref="184">Col2</paragraph> 581</tablecell> 582<tablecell colspan="" rowspan=""> 583<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> 584</tablecell> 585</tablerow> 586<tablerow> 587<tablecell colspan="" rowspan=""> 588<paragraph role="paragraph" id="par_id3150827" xml-lang="en-US" l10n="U" oldref="186">8</paragraph> 589</tablecell> 590<tablecell colspan="" rowspan=""> 591<paragraph role="paragraph" id="par_id3148406" xml-lang="en-US" l10n="U" oldref="187">Row2</paragraph> 592</tablecell> 593<tablecell colspan="" rowspan=""> 594<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> 595</tablecell> 596</tablerow> 597<tablerow> 598<tablecell colspan="" rowspan=""> 599<paragraph role="paragraph" id="par_id3155864" xml-lang="en-US" l10n="U" oldref="189">10</paragraph> 600</tablecell> 601<tablecell colspan="" rowspan=""> 602<paragraph role="paragraph" id="par_id3153197" xml-lang="en-US" l10n="U" oldref="190">Tab2</paragraph> 603</tablecell> 604<tablecell colspan="" rowspan=""> 605<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> 606</tablecell> 607</tablerow> 608<tablerow> 609<tablecell colspan="" rowspan=""> 610<paragraph role="paragraph" id="par_id3147360" xml-lang="en-US" l10n="U" oldref="192">12</paragraph> 611</tablecell> 612<tablecell colspan="" rowspan=""> 613<paragraph role="paragraph" id="par_id3154520" xml-lang="en-US" l10n="U" oldref="193">Count</paragraph> 614</tablecell> 615<tablecell colspan="" rowspan=""> 616<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> 617</tablecell> 618</tablerow> 619<tablerow> 620<tablecell colspan="" rowspan=""> 621<paragraph role="paragraph" id="par_id3149747" xml-lang="en-US" l10n="U" oldref="195">14</paragraph> 622</tablecell> 623<tablecell colspan="" rowspan=""> 624<paragraph role="paragraph" id="par_id3147579" xml-lang="en-US" l10n="U" oldref="196">Col</paragraph> 625</tablecell> 626<tablecell colspan="" rowspan=""> 627<paragraph role="paragraph" id="par_id3154188" xml-lang="en-US" l10n="U" oldref="197">Column number of the element. Numbering starts at 0.</paragraph> 628</tablecell> 629</tablerow> 630<tablerow> 631<tablecell colspan="" rowspan=""> 632<paragraph role="paragraph" id="par_id3159209" xml-lang="en-US" l10n="U" oldref="198">16</paragraph> 633</tablecell> 634<tablecell colspan="" rowspan=""> 635<paragraph role="paragraph" id="par_id3153265" xml-lang="en-US" l10n="U" oldref="199">Row</paragraph> 636</tablecell> 637<tablecell colspan="" rowspan=""> 638<paragraph role="paragraph" id="par_id3150095" xml-lang="en-US" l10n="U" oldref="200">Row number of the element; numbering starts at 0.</paragraph> 639</tablecell> 640</tablerow> 641<tablerow> 642<tablecell colspan="" rowspan=""> 643<paragraph role="paragraph" id="par_id3151276" xml-lang="en-US" l10n="U" oldref="201">18</paragraph> 644</tablecell> 645<tablecell colspan="" rowspan=""> 646<paragraph role="paragraph" id="par_id3149177" xml-lang="en-US" l10n="U" oldref="202">Tab</paragraph> 647</tablecell> 648<tablecell colspan="" rowspan=""> 649<paragraph role="paragraph" id="par_id3146925" xml-lang="en-US" l10n="U" oldref="203">Table number of the element; numbering starts at 0.</paragraph> 650</tablecell> 651</tablerow> 652<tablerow> 653<tablecell colspan="" rowspan=""> 654<paragraph role="paragraph" id="par_id3150488" xml-lang="en-US" l10n="U" oldref="204">20</paragraph> 655</tablecell> 656<tablecell colspan="" rowspan=""> 657<paragraph role="paragraph" id="par_id3149441" xml-lang="en-US" l10n="U" oldref="205">Error</paragraph> 658</tablecell> 659<tablecell colspan="" rowspan=""> 660<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> 661</tablecell> 662</tablerow> 663<tablerow> 664<tablecell colspan="" rowspan=""> 665<paragraph role="paragraph" id="par_id3163813" xml-lang="en-US" l10n="U" oldref="207">22</paragraph> 666</tablecell> 667<tablecell colspan="" rowspan=""> 668<paragraph role="paragraph" id="par_id3159102" xml-lang="en-US" l10n="U" oldref="208">Type</paragraph> 669</tablecell> 670<tablecell colspan="" rowspan=""> 671<paragraph role="paragraph" id="par_id3149581" xml-lang="en-US" l10n="U" oldref="209">Type of cell content, 0 == Double, 1 == String</paragraph> 672</tablecell> 673</tablerow> 674<tablerow> 675<tablecell colspan="" rowspan=""> 676<paragraph role="paragraph" id="par_id3155182" xml-lang="en-US" l10n="U" oldref="210">24</paragraph> 677</tablecell> 678<tablecell colspan="" rowspan=""> 679<paragraph role="paragraph" id="par_id3153291" xml-lang="en-US" l10n="U" oldref="211">Value or Len</paragraph> 680</tablecell> 681<tablecell colspan="" rowspan=""> 682<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> 683<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> 684</tablecell> 685</tablerow> 686<tablerow> 687<tablecell colspan="" rowspan=""> 688<paragraph role="paragraph" id="par_id3145215" xml-lang="en-US" l10n="U" oldref="214">26 if type==1</paragraph> 689</tablecell> 690<tablecell colspan="" rowspan=""> 691<paragraph role="paragraph" id="par_id3155143" xml-lang="en-US" l10n="U" oldref="215">String</paragraph> 692</tablecell> 693<tablecell colspan="" rowspan=""> 694<paragraph role="paragraph" id="par_id3149298" xml-lang="en-US" l10n="U" oldref="216">If type == 1: String with closing zero byte</paragraph> 695</tablecell> 696</tablerow> 697<tablerow> 698<tablecell colspan="" rowspan=""> 699<paragraph role="paragraph" id="par_id3151322" xml-lang="en-US" l10n="U" oldref="217">32 or 26+Len</paragraph> 700</tablecell> 701<tablecell colspan="" rowspan=""> 702<paragraph role="paragraph" id="par_id3163722" xml-lang="en-US" l10n="U" oldref="218">...</paragraph> 703</tablecell> 704<tablecell colspan="" rowspan=""> 705<paragraph role="paragraph" id="par_id3151059" xml-lang="en-US" l10n="U" oldref="219">Next element</paragraph> 706</tablecell> 707</tablerow> 708</table> 709 710</body> 711</helpdocument> 712