I wrote a simple script to remove an element of an array but I don't
think this is the best way to go about it.
I have a list of about five elements seperated by ";"
I split the array using array.split(";" ) command and proceeded to
update the elemment by assigning the null value to the arrayindex
array[index]=""
This of course assigns null to the element
But there are two problems
1. The array size is still five instead of 4
and my list is now seperated by "," with an exta "," to go.
Can anyone suggest a more effective way of doing this?
Thank you.
think this is the best way to go about it.
I have a list of about five elements seperated by ";"
I split the array using array.split(";" ) command and proceeded to
update the elemment by assigning the null value to the arrayindex
array[index]=""
This of course assigns null to the element
But there are two problems
1. The array size is still five instead of 4
and my list is now seperated by "," with an exta "," to go.
Can anyone suggest a more effective way of doing this?
Thank you.
Comment