Search results for query: *

  1. keeps21

    ListDictionary Keys and Values

    Solved my problem by rewriting the code to not use ListDictionary.
  2. keeps21

    ListDictionary Keys and Values

    I have a list Dictionary. It is populated from my database, with a question ID and an answer as shown below. Dim AnswerArray As New ListDictionary() While MyDataReader.Read AnswerArray.add(MyDataReader("form_question_id"), MyDataReader("answer")) End While How can I then output both the...
  3. keeps21

    undeclared array error in included file.

    I have two files. (This is a simplified example) The first file declared variables - the second outputs the variables. The problem is that myArray is 'undeclared' when file2.aspx tries to use it. However varName is working fine. If I declare and populate myArray in the same way in file2.aspx...
  4. keeps21

    Populate an array with data from variables

    There is an unlimited number of answers. There may be one answer for each person, there may be 5, this is the reason I want to use a multidimensional array. I'm then going to display a table ------------------------------ |id|ans1|ans2|ans3|ans4|ans5| -------------------------------...
  5. keeps21

    Populate an array with data from variables

    Sorry. I'm getting myself confused. I'll try to explain what I'm trying to do a little better. I'm trying to create a multidimensional array, called MyArray I want to read from the database and add a new array into MyArray for each record in the database so that I can then use it later on in...
  6. keeps21

    Populate an array with data from variables

    Doing it this way will I then be able to create an array from the values in this list as per my original post?
  7. keeps21

    Populate an array with data from variables

    Thanks. Another thing is I need the variables to be 'populated' dynamically. The number of variables depends on the number of records returned from the database. Is it possible to create x number of variables on the fly. 'number of records returned by query number_of_records = 5 ' we'll...
  8. keeps21

    Populate an array with data from variables

    I have an array. I want to add the values of 6 variables into this array, however I can't find a way to do it. If I knew the values I'd do it like this MyArray(i)= New String { ("id"), ("ans1"), ("ans2"), ("ans3"), ("ans4"), ("ans5") } However i don't know the values, but have 6...
Back
Top