Is there any method to clear an array or delete record from array.
something like array.delete() to delete all records from array or array.delete(n) where n is the the index from array that needs to be deleted.
Is there any method to clear an array or delete record from array.
something like array.delete() to delete all records from array or array.delete(n) where n is the the index from array that needs to be deleted.
To clear an array, assign and empty array to it.
We don’t have an operation to delete a value in the middle of an array. If you think you need this, consider using a temp table instead of an array and use SQL to delete from it.
You could recopy everything but the deleted element to a new array if you must.