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

  • Home
  • SEARCH
  • 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 4065682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:00:53+00:00 2026-05-20T16:00:53+00:00

Dim strTest(recordSet.Count)() As String While index < recordSet.Count strTest(index)(recordset.item(index).getvalue(0).tostring, recordset.item(index).getvalue(0).tostring, recordset.item(index).getvalue(0).tostring) index +=1 End

  • 0
Dim strTest(recordSet.Count)() As String

While index < recordSet.Count
   strTest(index)(recordset.item(index).getvalue(0).tostring,
                  recordset.item(index).getvalue(0).tostring,
                  recordset.item(index).getvalue(0).tostring)
   index +=1
End While

Then once the array i populated above, i need to find the if another variable is contained in the second dimension of the second paren contains the value of my variable like this.

if strTest.Contains(someVariable) then
   extract the index and get the other two values in the array
end if

so basically is how do i perform the second block of code here.

  • 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-20T16:00:53+00:00Added an answer on May 20, 2026 at 4:00 pm
    For Each set As String() in strtest
       If set(1).Equals(someVariable) Then
         'Get set(0) and set(2)
       End If
    Next
    

    Loop through the array pulling the items as an array and check the middle item. I think that’s what your question was saying.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this: Dim myTemp As String myTemp = System.DateTime.Now().ToString(MMMddyyyy_HHmmss) & .pdf System.IO.File.Copy(myFile, c:\
Dim RS2 As iHistorian_SDK.TagRecordset '... For intI = 1 To RS2.Item.Count '.... HistEngHigh =
1 Dim x as Integer? = Nothing 2 If x = Nothing Then 3
Here is the sample: Dim TestString As String = Hello, & Chr(0) & World
I have this code: Dim pathString As String = HttpContext.Current.Request.MapPath(Banking.mdb) Dim odbconBanking As New
In VB6 you can do this: Dim a As Variant a = Array(1, 2,
The following Code does not compile Dim BasicGroups As String() = New String() {Node1,
Dim goodCustObjList As New List(Of CustomerObj) goodCustObjList = DataBLLModule.GetCustomerRecordList(String.Empty) Dim custList = From t
Dim orders = From tt In testTable _ Order By tt.Item(OrderNumber) _ Select tt.Item(OrderNumber),
Dim collet As String collet = ThisWorkbook.ColLetter(ColCount) + : + LTrim(Str(Target.Row)) Set my_r =

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.