split count

Results 1 to 2 of 2

Thread: split count

  1. #1
    Rob Guest

    Default split count

    Can you count splits in vbscript?<BR>If i split a variable, can I find out how many substrings were created?<BR><BR>TIA

  2. #2
    Join Date
    Dec 1969

    Default RE: split count

    Yes. For example,<BR>&#060;%<BR>str="I am OK"<BR>howmanyWords=uBound(split(str," "))+1 &#039 give you 3 words<BR>%&#062;<BR>JW<BR>megamicro.com

Posting Permissions

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