Jump to content
Sign in to follow this  
supersonic

Deleting items in array using for-loop

Recommended Posts

supersonic

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
oMBRa

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
Yashied

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.