|
-
Nov 19th, 2007, 04:38 PM
#1
Thread Starter
New Member
Validation question!
Hi guys,
I have an array (person) and I want to validate it. The input box comes up and asks the user to enter a number. If the user enters a number less than 0 I want it to display a message box saying "Invalid number" and then not add the invalid number to the listbox.
I would then like it to return to the input box asking for the person age and continue doing so until they enter a number of 0 or more.
Could someone please adapt this coding to help; I've being trying all night
Do
age(person) = InputBox("Enter person's age")
Loop While age(person) < 0
lstage.AddItem age(person)
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
|