Strings and Arrays

Results 1 to 3 of 3

Thread: Strings and Arrays

  1. #1
    Mark L. Guest

    Default Strings and Arrays

    I&#039m creating a text area where I can count the number of words in a sentence. Do I load the sentence in an array then use ubound to count the number of records? I&#039ve tried several methods and keep getting "Type Mismatch". Any clues on how I might be able to do this?

  2. #2
    Steve Cimino Guest

    Default RE: Strings and Arrays

    s = "This is my sentence."<BR><BR>myArray = Split(s)<BR><BR>x = UBound(myArray)<BR><BR>x will be the number of words in your sentence.

  3. #3
    Join Date
    Dec 1969

    Default That should be

    x + 1 is the number of words in your sentence. (arrays are 0 based).

Posting Permissions

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