增加对象列表项
<h1>功能</h1>
<p>在已有的字符串列表中增加新的对象项。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>【TList<Object>】已存在的字符串列表,可传入字符串列表变量。</td>
<td>列表1(传入变量)</td>
</tr>
<tr>
<td>值</td>
<td>【TObject】要增加的对象列表项,可传入变量。</td>
<td>值(传入变量)</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>索引</td>
<td>【整型】增加后返回的索引,索引从0开始。</td>
<td>索引(创建变量)</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.该函数需与【构建字符串列表】、【获取对象列表项】、【输出字符串列表】函数搭配使用。
2.新建两个字符串列表(列表1、列表2),列表2作为对象列表,增加到列表1中;先通过【获取对象列表项】函数获取列表2中的一个列表项;然后将获取到的列表项值作为变量传入【增加对象列表项】函数中,作为新增的对象列表项,增加到列表1中(注意:新增的对象列表项只能在列表1的末尾增加);最后用【输出字符串列表】输出新增对象列表项后的列表1的所有项值。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/df123f5e484a60c67e4d750845390d2f" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/913d639304e1f0cc905a6c02859f6208" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/c4b7174ed9692f67dd0959bb7a3a4424" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/b21c0c1868e64fa5f6a5ef7e2c9f257f" alt="" /></p>
<h1>相关函数</h1>
<p>【构建字符串列表】、【获取对象列表项】、【输出字符串列表】函数</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/6234b78b1ae512ef252bea5b94dd1b49" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/514d0a0e1f7a1e90b1b7296a530d7592" title="[组件[增加对象列表项]_20210421.db">组件[增加对象列表项]_20210421.db</a></p>