如何从列表项中提取项目到非列表变量? [英] how to extract an item from a list item to non list variable?

查看:68
本文介绍了如何从列表项中提取项目到非列表变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我试图将一个custon列表项提取到一个非列表项,要提取的值本身就是一个列表.

我该如何实现?

非常感谢您的帮助..

Hi All,

I am trying to extract a custon list item to a non list item, where value to be extracted is itself a list.

How can i acheive this?

ANy help is much appreciated..

推荐答案

您好,

您可以通过将要提取的列表转换为字符串来做到这一点.

您将必须设置某种类型的标志,以使您的应用程序知道在哪里拆分每个列表项.

我觉得PIPE符号"|"是一个极好的符号,因为它在日常情况下并不经常使用....

因此,如果您的来源(自定义)列表中包含......

Hello,

You can do this by converting the list to be extracted into a string.

You will have to set some type of flag to let your application know where to split each list item.

I feel the PIPE symbol ''|'' is an excellent symbol to use as it is not used that often in everyday situations....

So if your source (custom) list contained....

<br />
<pre lang="vb">Animals<br />
   Cat<br />
   Dog<br />
   Mouse<br />
   Elephant<br />
Vehicles<br />
   Car<br />
   Bike<br />
   Plane<br />
Colors<br />
   Red<br />
   Green<br />
   Blue</pre><br />



然后,您提取的相应字符串将是.....



Then your respective extracted String would be.....

<pre lang="vb">Cat|Dog|Mouse|Elephant<br />
Car|Bike|Plane<br />
Red|Green|Blue</pre><br />


希望对您有帮助...


Hope that helps...


这篇关于如何从列表项中提取项目到非列表变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆