How Can I tell....

Results 1 to 2 of 2

Thread: How Can I tell....

  1. #1
    Join Date
    Dec 1969

    Default How Can I tell....

    When A Variable has more that one word on it?

  2. #2
    Join Date
    Dec 1969

    Default RE: How Can I tell....

    InStr would probably be easiest:<BR><BR>StrVariable = "This is some test data"<BR><BR>If InStr(Trim(StrVariable)," ") &#062; 0 Then<BR> Response.Write "More than one word found"<BR>End If<BR><BR>This would look for a space within your string which would work in most cases but there could be cases like this:<BR><BR>"Word,Word2,Word3" <BR><BR>where you&#039;d not have a space but instead a comma separating words. Depends on how specific you want to be.<BR><BR><BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts