Jump to content

Recommended Posts

Posted

Can Anyone help me i have a listview that i can search for a value in but when i have found the value i then need to search for another value in the same row but new .SubItems if it matches the First row index count then find all with both values The first value is C1 Then Room 1 if it finds this value then loop to find all with the same criteria and count them i can get the code to find all with the C1 value But not Both any ideas?

 

For a = 1 To value

If strToFind = AttributeForm.lstpanels.ListItems(a).SubItems(1) Then

 

counter2 = counter2 + 1

 

Found = True

End If

 

 

 

stringtofind First AttributeForm.lstpanels.ListItems(a).SubItems(1)

 

Then string to find next is AttributeForm.lstpanels.ListItems(a).SubItems(4)

 

C1 - Single base Room 1 GF 834 500 480 C2 - Double cup'd Room 1 GF 834 1000 480 C3TO - 3 Bay Tray Room 1 GF 834 1077 480 D1C1 - Drawer Door unit Room 1 GF 834 500 480 Pinboard

Pinboard FR sundeala 2400 x 1200 UNFRAMED

 

C1 - Single base Room 2 GF 834 500 480 C2 - Double cup'd Room 1 GF 834 1000 480 C3TO - 3 Bay Tray Room 1 GF 834 1077 480 D1C1 - Drawer Door unit Room 1 GF 834 500 480 Pinboard

Pinboard FR sundeala 2400 x 1200 UNFRAMED

 

C1 - Single base Room 1 GF 834 500 480

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...