|
-
Mar 18th, 2000, 07:38 AM
#1
Thread Starter
Addicted Member
This is my first shot at a simple array and the use of an InputBox. VB doesn't like the code in the Inputbox line and I get the error - expected As. I've tried all ways to correct this line... (code below)what have I done wrong?
GRAHAM
Private Sub Form_Load()
Dim I As Integer
Dim Name(3) As String
For I = 1 To 3
Name(1) = InputBox("Enter names", "Array Demo", "insert here")
Next I
'just print names on form
For I = 1 To 3
Print "Name is"; Name(I)
Next I
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|