Results 1 to 2 of 2

Thread: Using the Split() Function

  1. #1

    Thread Starter
    Addicted Member overhill's Avatar
    Join Date
    Mar 2000
    Location
    KS, United States
    Posts
    181
    I have a tab delimited database that I need to load into an array. Each record ends with a vbCrlf. Each record is then made up of 7 fields separated by tabs.

    I have used the Split function to create an array of all of the records. Now I need to subdivide each of these records into the seven individual fields. How can I do this?

    If it is possible, I would like to have the database in a custom type similar to this.

    Record(x).Field1
    Record(x).Field2
    Record(x).Field3
    Record(x).Field4
    Record(x).Field5
    Record(x).Field6
    Record(x).Field7

    Thanks for any help!

  2. #2
    Guest
    You could use Split() again on your tab delimitted record:

    varFields = Split(strRecord, vbTab)


    Paul

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