Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6097595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:03:42+00:00 2026-05-23T13:03:42+00:00

How can I Compare values of two arrays to check if 1 array does

  • 0

How can I Compare values of two arrays to check if 1 array does not have an element of another array for example –

array1(0) = 85
array1(1) = 459
array1(2) = 90

array2(0) = 459
array2(1) = 90

I want to return the values that are not present in the second array? I tried with double for loops but didn’t work out to well for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:03:43+00:00Added an answer on May 23, 2026 at 1:03 pm
    Dim array1(3)
    Dim array2(2)
    
    array1(0) = 85
    array1(1) = 459
    array1(2) = 90
    
    array2(0) = 459
    array2(1) = 90
    
    Dim i 'As Integer
    Dim j 'As Integer
    Dim isFound 'As Boolean
    
    For i = 0 To UBound(array1) - 1
        isFound = False
        For j = 0 To UBound(array2) - 1
            If array1(i) = array2(j) Then
                isFound = True
            End If
        Next 'j
        If Not isFound Then
            Response.Write array1(i) & " not found<br />"
        End If
    Next 'i
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two arrays each array has some values for instance: int a[] =
Can someone suggest a way to compare the values of two dates greater than,
I have been trying to compare two arrays. Using array_intersect presents no problems. When
I have two arrays, each containing strings. The first array is a list of
consider the below script. two arrays with only three values.when i compare these two
I have two sorted arrays (can be ArrayLists, Collections, or any other data format)
A PHP question about arrays. Suppose we have two arrays: [first] => Array (
So, I'm using Jquery and have two arrays both with multiple values and I
I know we can't compare 2 floating point values using ==. We can only
is there a way l can compare two columns | fields in django like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.