Template:Needs Translation/
函数名
|
Function: string llDumpList2String( list src, string separator );
|
参数:
|
返回值:返回一个字符串,该字符串是将列表src转换为条目之间带有分隔符的字符串。
|
示例
|
示例1
list mylist = ["a", "b", "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "a**b**c**d"
示例2
list mylist = [<10,5,7>, 100, "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "<10,5,7>**100**c**d"
示例3
default{
state_entry(){
list my_list = [1, 2.0, "a string", llGetOwner()];
llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");
//says: "<1><2.000000><a string><a822ff2b-ff02-461d-b45d-dcd10a2de0c2>"
}
}
|