Sign in to follow this  
Followers 0
supersonic

Deleting items in array using for-loop

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

you should post the rest of the code and tell us more infos, errors etc.

Edited by oMBRa

Share this post


Link to post
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
Sign in to follow this  
Followers 0