|
-
Feb 8th, 2002, 10:44 AM
#1
Thread Starter
Member
validation in array
how would i code some kind of validation into this peice of code so it only accepts numbers?? maybe case statements// help
Private Sub Command2_Click()
For this = 1 To 18
num = InputBox("Please enter your scores")
nos(this) = num
If nos(this) < 1 Then
MsgBox "Error please enter a valid number > 0"
this = this - 1
End If
Next this
For Counter = 1 To 18
Text1 = Text1 & " | " & nos(Counter)
Next Counter
End Sub
is there any way to take an array back a loop if the dat entered doesnt meet the required format.
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
|