Hi. I would like to do the following:
I enumerate all my datasets in a collection (say in a hashtable htHashTable).
Now, I would like to use something like
dsMyDataSet = session("dsMyDataSet")
where the session variable has been set previously, but where I could use a "for each" instruction to loop among the items of my collection. I would be something like
Dim dsTemp as DataSet
For Each sTemp as String In htHashTable.Keys
dsTemp = htHashTable.Item(sTemp)
dsTemp = session(dstemp.DataSetName)
next
Of course, this does not work, as the variable dsTemp is never used as a pointer to the real dataset dsMyDataSet, and thus the assignment of the session object is not done to the dsMyDataSet object.
Does anyone have an idea on how to proceed ?
I enumerate all my datasets in a collection (say in a hashtable htHashTable).
Now, I would like to use something like
dsMyDataSet = session("dsMyDataSet")
where the session variable has been set previously, but where I could use a "for each" instruction to loop among the items of my collection. I would be something like
Dim dsTemp as DataSet
For Each sTemp as String In htHashTable.Keys
dsTemp = htHashTable.Item(sTemp)
dsTemp = session(dstemp.DataSetName)
next
Of course, this does not work, as the variable dsTemp is never used as a pointer to the real dataset dsMyDataSet, and thus the assignment of the session object is not done to the dsMyDataSet object.
Does anyone have an idea on how to proceed ?