View Single Post
  #4 (permalink)  
Old August 20th, 2009, 07:01 AM
thava thava is offline
Authorized User
Points: 181, Level: 3
Points: 181, Level: 3 Points: 181, Level: 3 Points: 181, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by thava View Post
hi Leigh,

thanks for your code and meanwhile i would like to know how to delete the particular element in an array by passing index.


Exemple:
======
@name ={"kevin","petter","ram","dhas","jenstin"}


i need like below code
============
delete(@name,2);





after the result should be:

@name ={"kevin","petter","dhas","jenstin"}







Thanks,
Thava

i got solution from google to achieve above i used below code its working fine...

delete @name[2];

thanks,
thava
Reply With Quote