As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.
Searches an array for the first position of a specified object and deletes it. The function searches for simple objects such as strings and numbers or for complex objects such as structures. Simple object string searches are case-sensitive. This function does not support searches for COM and CORBA objects.
The updated array.
ArrayDelete(array,value)
ColdFusion (2018 release): Made the following changes:
Parameter |
Description |
|---|---|
array |
Array to search in. |
value |
Value to search for. |
<cfscript>
myArray=["London", "New York", "Paris", "Barcelona", "Berlin", "Tokyo", "Seattle"];
WriteOutput("Input array is: ");
writeDump(myArray)
// Delete "Paris"
ArrayDelete(myArray,"Paris"); // Returns True since Paris is a member of myArray
WriteOutput("Array after deleting Paris is: ");
writeDump(myArray)
</cfscript>
Sign in to your account