SIR THE BELOW PROGRAMME IS NOT WORKING.THE PURPOSE OF THE PROGRAMME IS MENTIONED BELOW.PLS DO BY USING VB6 LANGUAGE COMPULSORY.
Dim studentName(10) As String
Dim num As Integer
Private Sub addName()
For num = 1 To 10
studentName(num) = InputBox("Enter the student name", "Enter Name", "", 1500, 4500)
If studentName(num) <> "" Then
Form1.Print studentName(num)
Else
End
End If
Next
End Sub
The above program accepts data entry through an input box and displays the entries in the form itself. As you can see, this program will only allows a user to enter 10 names each time he click on the start button.