|
-
Feb 15th, 2010, 03:31 PM
#1
Thread Starter
Member
[RESOLVED] how to apply restrictions to inputs
Hi, im doing a project for school and need to know how to mke restrictions on a users input (through a textbox).
All i need to do is to make so that if the user enters a username that doesnt have the @ symbol, then an error message appears. Any help is apprecieated as always!
-
Feb 15th, 2010, 03:41 PM
#2
Re: how to apply restrictions to inputs
Do you need to do this as the user types or once they are finished?
If once finished look at InStr function
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Feb 15th, 2010, 03:43 PM
#3
Thread Starter
Member
Re: how to apply restrictions to inputs
Once they are finished, they fill in a username and a password then click OK to process it. Thanks, il look it up.
-
Feb 15th, 2010, 04:28 PM
#4
Re: how to apply restrictions to inputs
In the OK button's click event, you can validate the entered the text correctly. As Mazzi pointed out, using InStr() and supplying "@" as the criteria will tell you they used an @ symbol. At the same time, you can validate they entered a password and that it meets any length requirements.
Last edited by LaVolpe; Feb 15th, 2010 at 04:35 PM.
Reason: typo
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
|