Jump to content

Deleting items in array using for-loop


Recommended Posts

Hello everybody,

it must be easy but I have no idea why this is not working:

For $j = 1 To UBound($aVIDs) - 1 Step 1
                $vTemp = _ArraySearch($aEIDs, $aVIDs[$j], 1, 0, 0, 1, 1, 0)
                If $vTemp <> -1 Then
                    _ArrayDelete($aEIDs, $vTemp)
                EndIf
            Next

This little piece of code tries to delete all valid IDs ($aVIDs) from array $aEIDs which contains exclude IDs.

Any ideas?

Greets,

-supersonic.

Edited by supersonic
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...