|
Dina Vanalten
Registered User
Join date: 24 Dec 2006
Posts: 268
|
04-18-2008 21:29
Hopefully I can describe this so it makes some sense.
What I want to do is have a list of say 20 items max, that I can drop the oldest entry, ripple the rest of the entries up and add a new entry at the end.
That way the list will always contain the last 20 entries.
Doe anyone know of some code that will do that or a script hiding around somewhere?
Thanks - Dina
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
04-18-2008 22:19
some_list = llList2List( some_list + new_item, -20, -1 );
|
|
Dina Vanalten
Registered User
Join date: 24 Dec 2006
Posts: 268
|
04-19-2008 08:09
Oh wow. That seems simple enough. Thanks Deanna. I'll give it a try.
- Dina
|