Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,240 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,330 people online right now. Registration is fast and FREE... Join Now!




hashtable problem

 
Reply to this topicStart new topic

hashtable problem

kaymaf
8 Dec, 2007 - 05:53 PM
Post #1

New D.I.C Head
*

Joined: 3 Oct, 2007
Posts: 24


My Contributions
hi, im having problem to retrieve the value from hashtable file. i can only retrieve the first item that i added to the data file.

so any help pls.
CODE

Dim reBook As  Hashtable = BookInfoDeserialize()'this line deserialize the data from binary file and put it back to hashtable
Dim bk As Book = CType(reBook(TextBox1.Text), Book)' this line put the info back to my book class

below are the book class properties

        TextBox2.Text = bk.AUTHOR
            TextBox3.Text = bk.PUBLISHER
            TextBox4.Text = bk.YEAR
            TextBox5.Text = bk.TITLE

any suggestion pls
it works but i can only retrieve the first item added to hashtable
thnks
kaymaf
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Hashtable Problem
8 Dec, 2007 - 07:55 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,319



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
I have asked you several times before, please use code.gif tags when posting your code.

Do not color code it.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 06:24AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month