How do I fix "Argument not specified for parameter 'value' of 'Public Overridable Sub Add(key As Obj

C

Chuck Insight

I am way over my head with this one - Here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><script runat = 'server'>
Public Overridable Sub Add(key As Object, value As Object)
dim balls as hashtable = new hashtable
randomize
dim ball as integer = int(rnd * 48) + 1
dim i as integer
for i = 1 to 300
on error resume next
dim sample as arraylist = new arraylist
dim s as integer
for s = 1 to 48
s += 1
sample.add(s)
next s
if ball = 1 and sample.contains(ball) then
balls.add(ball)
sample.remove(1)
goto end
endif
end:
Next i
end sub</script></head><body></body></html>
 
S

Steve C. Orr [MVP, MCSD]

It sounds like the problem is that you aren't passing both parameters when
you're calling this method.
It requires two parameters, a Key and a Value.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top