SphereCommunity
List assistance - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: List assistance (/Thread-List-assistance)



List assistance - Mordaunt - 03-08-2013 03:07 AM

Not used these before and seems I am being retarded with it.
Looking for a better explanation on how to use these than is given in the revisions or than I can find examples of.

I understand these and can use them fine.
Code:
list.<src.account.name>_message.add <args>  
list.<src.account.name>_message.clear

I do not understand how to make these work and could REALLY use some user friendly examples.
Code:
list.<src.account.name>_message.index.remove
list.<src.account.name>_message.index.insert
list.<src.account.name>_message.findelem  // wtf?



RE: List assistance - Wap - 03-08-2013 03:15 AM

Code:
local.num=<list.<src.account.name>_message.findelem "abc">
if (<local.num> != -1)
    list.<src.account.name>_message.<dlocal.num>.remove
endif

Insert I didn't used, but from the explanation, it should re-write list element number [index] or doing something like this.
Code:
local.num=<list.<src.account.name>_message.findelem "abc">
if (<local.num> != -1)
    list.<src.account.name>_message.<dlocal.num>.insert "cab"
endif
?


RE: List assistance - Mordaunt - 03-08-2013 03:24 AM

Ah, thanks WAP...