|
-
Sep 27th, 2001, 10:50 AM
#1
Thread Starter
New Member
Split string function
My problem is that I have a string delimited by the "~":
Ex.
A1~1~000 9999999 999~99999~The Name of a company~99999~2800 Street Name~~MIDDLETOWN~PA~17057~UNITED STATES~PA~17057~UNITED STATES0~~~~
When I use the split function
Data() = Split(arr(r), "~")
I get this in my array
A1
1
000 9999999 999
99999
The Name of a companuy
99999
2800 Street Name
MIDDLETOWN
PA
17057
UNITED STATES
PA 'This element should be empty
17057 'This element should be empty
UNITED STATES0 'This element should be empty
Why am I geting duplicate data in different elements of my array?
I can not figure this one out!
JBush
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
|