Thread: Array Search
View Single Post
  #9  
Old 08-23-2009, 12:10 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by sssssssssss View Post
Another question arises, how do i add to a server array? i know how to set, serverr.whatever = {whatever, whatever} but if I want to add and delete from that, how should I go about it?
Take a look at: http://graal.net/index.php/Creation/...ject_functions

You'll find these functions which may be of use to you:
obj.add(obj2) - adds an object to an array
obj.delete(index) - deletes the object from an array at the specified index
obj.remove(obj2) - removes the first instance of the specified object from the array
obj.replace(index,obj2) - replace the object at the specified index
obj.insert(index,obj2) - insert the object at the index without replacing other indexes
Reply With Quote