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
<!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