Results 1 to 2 of 2

Thread: VBScript

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    California
    Posts
    115
    I know this is might not be the best forum to post in, but is there a quick way (in VBScript) to tell if there is more than one occurance of a "." in a string?

    Thanks.

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Ontario, Canada
    Posts
    79
    Something like this?:

    Code:
    for x = 1 to len(sString)
      if mid(sString, x, 1) = "." then y = y + 1
      if y > 1 then
        msgbox("YES")
        exit for
      endif
    next x

Posting Permissions

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



Click Here to Expand Forum to Full Width