Three-Part HashTable Question

C

Chuck Insight

Please help. Let's say I have the following within a web application:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ Page Explicit = "True" Language="VB" Debug="True" %>
<%@ Import Namespace="System" %>
<%@ Import namespace="System.Collections" %>
<%@ Import namespace="Microsoft.VisualBasic" %>
<HTML><HEAD>
<Script runat='server'>
Function Fill_It As Integer
Dim Sample As Integer = 0
Dim New_Number As Integer
For Sample = 1 to 10
Sample = Sample + 1
Next Sample
Return New_Number
End Function

Sub Increment()
Dim Counter As Integer
If Counter <= 10 then
Counter = Counter + 1
End If
End Sub
' How can I programmatically populate the values of a HashTable
' with New_Number returned from the Fill_It Function?
' My desire looks something like:
</Script></HEAD>
<Body>
<%
Dim MyHT As HashTable = New HashTable()
For Each Sample
MyHT.Add(New_Number)
Next Sample
' What will display individually selected items from a HashTable?
%>
?????
</Body>
</HTML>

Thanks very much for everything,
Chuck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top