This function can only be used with the Array and Associative Array variables.

Versions 15 and later

This function is now available for the Android applications.

New in version 15

This function is now available for the Android applications.

This function is now available for the Android applications.

Versions 16 and later

This function is now available for the Windows Phone applications.

New in version 16

This function is now available for the Windows Phone applications.

This function is now available for the Windows Phone applications.

Versions 17 and later

This function is now available for the iPhone/iPad applications.

This function is now available in browser code.

New in version 17

This function is now available for the iPhone/iPad applications.

This function is now available in browser code.

This function is now available for the iPhone/iPad applications.

This function is now available in browser code.

Versions 18 and later

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

New in version 18

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

Versions 21 and later

This function is now available in Apple Watch mode.

This function is now available in Universal Windows 10 App mode.

New in version 21

This function is now available in Apple Watch mode.

This function is now available in Universal Windows 10 App mode.

This function is now available in Apple Watch mode.

This function is now available in Universal Windows 10 App mode.

Example

MyArray is array of 2 strings MyArray[1] = "WINDEV" MyArray[2] = "WEBDEV" // Delete the 1st element ArrayDelete(MyArray, 1) // Deletes "WINDEV" // Display the 1st element Trace(MyArray[1]) // Displays "WEBDEV"

// Associative array Last Name - First Name aaLastNameFirstName is associative array of strings ArrayInsert(aaLastNameFirstName, "Smith", "Tommy") ArrayInsert(aaLastNameFirstName, "Montgomery", "Julia") ArrayDelete(aaLastNameFirstName, "Smith") // Deletion during a browse sLastName is string sFirstName is string FOR EACH ELEMENT sFirstName, sLastName OF aaLastNameFirstName Trace(sFirstName + ": " + sLastName) ArrayDelete(aaLastNameFirstName, CurrentElement) END

Syntax

Deleting an element from a WLanguage array or from an advanced array property Hide the details

1 or 0 for the associative arrays without duplicates.

0 to N for the associative arrays with duplicates.

<Array Name>: Associative array

Name of Associative Array variable to use.

<Element Key>: Integer

Value of key corresponding to the element to delete.

In an associative array without duplicate: If the element exists, it is deleted ; if the element does not exist, no operation is performed.

In an associative array with duplicates: If the element exists, all the <Element Key> elements are deleted ; if the element does not exist, no operation is performed.

This parameter can also correspond to the CurrentElement constant. This syntax is used to delete the current element during a FOR EACH browse.