parsing text string 
Author Message
 parsing text string

I am using VB6 and need to parse a text string that is tab delimited. I
can read through it character by character using the MID function
looking for Tabs, but this seems pretty cumbersome. Is there a function
or method that will accomplish this?   Thanks

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 parsing text string

Quote:

> I am using VB6 and need to parse a text string that is tab delimited.
I
> can read through it character by character using the MID function
> looking for Tabs, but this seems pretty cumbersome. Is there a
function
> or method that will accomplish this?   Thanks

Check the Help for Split() and/or Instr()/InstrRev()

--
Please reply via the newsgroup only

Sent via Deja.com http://www.deja.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 parsing text string
Take a look at the Split() function. It returns a one-dimensional variant
array of strings

ie:
Dim A As Variant
Dim s As String
Dim i as Integer

s = "ABC" & Chr$(9) & "DEF"
A = Split(s, Chr$(9))
For i = LBound(A) to UBound(A)
    Debug.Print A(i)
Next

Regards,
Mick

Quote:

> I am using VB6 and need to parse a text string that is tab delimited. I
> can read through it character by character using the MID function
> looking for Tabs, but this seems pretty cumbersome. Is there a function
> or method that will accomplish this?   Thanks

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Parsing a large text string into smaller strings?

2. Help parse a text string from sequential text file

3. Parse data within text strings

4. Parsing a text string (help needed)

5. Parse search string into query string?

6. Parse String

7. help for novice please - parsing a string

8. Parsing Strings?

9. Parsing strings

10. parsing a string in Outlook Custom Forms

11. parsing a long string

12. string Parsing

 

 
Powered by phpBB® Forum Software