|
-
Apr 5th, 2002, 02:42 PM
#1
Thread Starter
Frenzied Member
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
-
Apr 5th, 2002, 02:43 PM
#2
PowerPoster
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
-
Apr 5th, 2002, 02:46 PM
#3
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.
-
Apr 5th, 2002, 02:49 PM
#4
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|