Split Function

Results 1 to 2 of 2

Thread: Split Function

  1. #1
    Join Date
    Dec 1969

    Default Split Function

    Hello, <BR><BR> Can I get a help Please !!!<BR> I am reading a contents from a file and am using the <BR>"," as delimiter between the words.I am want to split the <BR>sentence and populate the contents in combo.If I use <BR>split function am getting an error saying type mismatch.<BR>Tried all combinations ..but couldnot get solution. Can <BR>someone give me a solution. <BR>

  2. #2
    Rahul Guest

    Default See if this solves your problem

    &#060;%<BR>mSentence = "Let us see, if the code works, maybe or maybe not"<BR><BR>mArray = Split(mSentence,",")<BR><BR>Response.Write(mArray( 0)&mArray(1)&mArray(2))<BR>%&#062;<BR><BR>Let us see if the code works maybe or maybe not<BR><BR>You get a type mismatch error if you include the delimiter in single quotes.

Posting Permissions

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