Results 1 to 4 of 4

Thread: Split function delimiter question

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    Split function delimiter question

    Does the Split function work with more than a 1 character delimiter?

    For example..........can you use Split to split this string into an array of strings using xz as the delimiter

    abcdxzefgxzhijkxzlmn etc

  2. #2
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Re: Split function delimiter question

    Originally posted by ae_jester
    Does the Split function work with more than a 1 character delimiter?

    For example..........can you use Split to split this string into an array of strings using xz as the delimiter

    abcdxzefgxzhijkxzlmn etc

    no, one at a time

  3. #3
    jim mcnamara
    Guest
    jesus4u -

    Get a big text file and try this
    Code:
    Dim a() as string
    Dim tmp as string
    open "mybigfile.txt" for input as #1
    tmp = input(lof(1),1)
    a = Split(tmp, vbCrLf)
    vbCrLf is a two character constant.

  4. #4

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    So does that mean it works? or is vbCrLf the one exception?

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