Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Caleb Smith   on Nov 21 In Asp.net Category.

  
Question Answered By: Willie Gomez   on Nov 21

ok here it is.....


DIM ht1 as new hashtable
Dim datarow1 As DataRow
DIM strName as string
DIM intID as integer
FOR EACH datarow1 IN dt1.Rows
strName=datarow1(0)
intID=datarow(1)
IF ht.contains(strName)
ht(strName) = ht(StrName) & "," & intID
ELSE
ht(StrName)="{" & intID

END IF
NEXT
ht(StrName)= & "}"

' Now the hash table has what you want ....

http://www.learnasp.com/freebook/learn/hashtable.aspx
shows you most of what you need to know about hashtable.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How do I roll up data as follows... Or get search suggestion and latest updates.


Tagged: