Jump to content
Sign in to follow this  

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)

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

Any ideas?



Edited by supersonic

Share this post

Link to post
Share on other sites

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.