Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-30-2023, 06:54 AM
skarden skarden is offline Any way to test if item in an array is in an ArrayList? Windows 10 Any way to test if item in an array is in an ArrayList? Office 2010 64bit
Novice
Any way to test if item in an array is in an ArrayList?
 
Join Date: Dec 2011
Location: Orlando, FL
Posts: 27
skarden is on a distinguished road
Unhappy

Hey Greg:

I posted it here instead of asking you directly as I didn't want to bother you. But it's GREAT to see you are still so active. Hope all is well with you.

You just confirmed what I was afraid was true. What I'm actually trying to do is create a better BuildingBlock replacement where the document name is the "Template" name and in it I have a bunch of Content Controls where I'm using the CC's Tag to store a "Category" and BB's name like this: Category~Name. (Just BTW, I'm using the CC's title to indicate if this CC holds the BB's Description, Insert Method or Text). Since there could be many entries for each Category when I parse the Category out I then store it into a dictionary (dicCats) with the Category as the Key, first using an If test of:

If Not dicCats.Exists "[Parsed Category]" Then
dicCats.Add "[Parsed Category"], "1" 'Also, BTW, the value is actually meaningless to me
End if

When I go to populate my UserForm ListBox for the Topic's Categories I can just dump in the dicCats Keys.
Reply With Quote
 

Tags
arraylist contains, dictionary, indexof



Similar Threads
Thread Thread Starter Forum Replies Last Post
Test, just a test Thomasordef Office 0 07-25-2019 10:43 AM
Student's t-test (T.TEST): how to get p value? seanspotatobusiness Excel 1 07-20-2018 05:46 AM
Any way to test if item in an array is in an ArrayList? How do I make a checkbox or dropdown item reference data in that specific section of the data array? dhare Excel Programming 2 02-24-2016 12:36 PM
Any way to test if item in an array is in an ArrayList? Copying data related to one item to worksheet with many instances of the same item nmp13 Excel 3 02-06-2016 02:13 AM
Any way to test if item in an array is in an ArrayList? Convert String Array to Integer Array from a User Input? tinfanide Excel Programming 4 12-26-2012 08:56 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft