Programming Visual Basic problems?
question from Randell p ? Visual Standard programming troubles Hello there guys I seem to be to have a problem with my code, take a search Imports Program Imports Technique.CollectionsModule Module1 Sub Main () Dim As New Hashtable Objectsinmytable Objectsinmytable.Add (“Item1″, “laptop or computer”) Objectsinmytable.Add (“Item2″, ” Textbooks “) Objectsinmytable.Add (” item3 “,” Look at “) Objectsinmytable.Add (” Item4 “,” iPod “) Objectsinmytable.Add (” Product five “,” Pen “) Console.WriteLine (” the products in my table are: “) For Every single objItem In Objectsinmytable.Values ​​String Console.WriteLine (objItem) Up coming Objectsinmytable.Get rid of (” Item4 “) Console.WriteLine (” iPod taken from collections, are now the components in the table are: “) For Each and every objItem As String In Objectsinmytable.Values ​​Console.ReadLine () Next End SubEnd ModuleDie issue that is nice, but if you press enter practically nothing appears to the still left of the individual parts must be deemed, but it is not their Remember to help! wow! wonderful a single ill selected you! just w8 Finest Answer:
response from Yahoo!
try this cheers DImports Technique Imports Method.CollectionsModule Module1 Sub Main () Dim As New Hashtable Objectsinmytable Objectsinmytable.Add (“Item1″, “computer”) Objectsinmytable . Add (“Item2″, “Books”) Objectsinmytable.Include (“item3″, “Look at”) Objectsinmytable.Include (“Item4″, “iPod”) Objectsinmytable.Add (“Product 5″, “Pen”) Console . WriteLine (“the content are in my table:”) For Each objItem In Objectsinmytable.Values ​​String Console.WriteLine (objItem) Following Objectsinmytable.Get rid of (“Item4″) Console.ReadLine () Console.WriteLine (“iPod from collections taken now, the components in the table are: “) For Each and every objItem In Objectsinmytable.Values ​​String Console.WriteLine (objItem) Next Console.WriteLine (” “) Console.WriteLine (” Press any to exit “) Console. ReadLine () Finish SubEnd modules
Enter underneath your solution to this concern!
