davers's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
62 (0.04 per day)
Joined:
07-April 11
Profile Views:
1,236
Last Active:
User is offline Sep 25 2014 11:22 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   davers has not set their status

Posts I've Made

  1. In Topic: Loop within a loop.

    Posted 25 Sep 2014

    Awesome n0rman! :) Thanks everyone for the help! I really appreciate it!!!

    Dave
  2. In Topic: Loop within a loop.

    Posted 25 Sep 2014

    You are correct...both cases are good. I wound up just creating a dictionary... although, it took me a bit to figure it out. Here's how I'm doing it now:
                IEnumerable<int> result2 = Enumerable.Range(1, Convert.ToInt32(myValue)).Except(hostList);
    
                List<int> intsLists = new List<int>(result2);
    
                Dictionary<string, int> dictionary = new Dictionary<string, int>();
    
                for (int i = 0; i < ListNeedToADD.Count; i++)
                {
                    dictionary.Add(ListNeedToADD[i].ToString(), intsLists[i]);
                }
    
                foreach (KeyValuePair<string, int> keyValuePair in dictionary)
                {
                    insertReportLimits(attribTable, keyValuePair.Key, keyValuePair.Value, con);
                }
    
    


    I did need to convert my IEnumerable list to just a List.. but I'm ok with that. I've tested it and it works, what do you think!

    Thanks for the reply!

    Dave

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

davers hasn't added any friends yet.

Comments

davers has no profile comments yet. Why not say hello?