These forums are CLOSED. Please visit the new forums HERE
Help With Lists |
|
Devon Cassidy
Registered User
Join date: 20 Mar 2004
Posts: 11
|
02-18-2005 20:57
Hello, i am a beggining programmer in SL and one thing that i am having trouble with is lists. The problem is how do I call all the information I have stored in a list without specifying one integer number in llList2String(str list, integer). Specifying one integer just strings whatever data is held in that numbered place in the list. Please help me >_<
|
Flyingroc Chung
:)
Join date: 3 Jun 2004
Posts: 329
|
02-18-2005 22:28
what do you mean by "call all information"? Do you need to do something with every element of the list? In this case, you can use a loop.
for example: CODE
to learn more about LSL looping constructs: http://secondlife.com/badgeo/wakka.php?wakka=FlowControl |
Hiro Pendragon
bye bye f0rums!
![]() Join date: 22 Jan 2004
Posts: 5,905
|
02-18-2005 22:37
Here, check out the WIKI:
http://secondlife.com/badgeo/wakka.php?wakka=lists I could repeat everything in there, or you could check it out yourself ![]() _____________________
Hiro Pendragon
------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio Visit my SL blog: http://secondtense.blogspot.com |
Spuds Milk
Registered User
Join date: 28 Sep 2004
Posts: 94
|
02-18-2005 22:58
you might be looking for llList2String or llList2CSV
you might want to check out the wiki documentation at http://secondlife.com/badgeo/wakka.php?wakka=HomePage |
Tommy Oz
Registered User
Join date: 13 Jan 2005
Posts: 56
|
02-20-2005 04:43
unfortunately, lists can NOT contain other lists:
"Lists cannot contain other lists, so using them like a multidimensional array is not possible. Instead you can use strided lists." |
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
02-20-2005 05:35
unfortunately, lists can NOT contain other lists: "Lists cannot contain other lists, so using them like a multidimensional array is not possible. Instead you can use strided lists." Not as lists but if you are using llList2CSV & llCSV2List then you can. Ever wonder why it parced rotations & vectors as single items? It's becasue the entry begins and ends with "<" & ">". If you dump your list via llList2CSV then add those to the ends then you can put that in another list (as a string). This also assumes you haven't used any "<" or ">" in your lists as these might screw things up... Haven't done extensive testing of this, haven't had much need for nesting lists (not more then 2 deep). _____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |