Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for Carrage Return in script

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
Hello

I have some form processing where I check to make sure there is a value in a textarea field. If it is blank, I make the user enter something in the field.

I check spaces using Trim()

How can I check to see that the user just didnt press enter and make a blank line?
 
You could look for the chr(10) and/or chr(13) in your script
 
if instr(myString, vbCRLF) then ...
would tell you if they have hit enter.

I would think if you check the lenght of the
field and made sure it was greater than 1.
ex. len(myField)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top