Results 1 to 3 of 3

Thread: in a CSV string is there a way to know how many delimiters there are

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2008
    Posts
    124

    in a CSV string is there a way to know how many delimiters there are

    in a CSV string is there a way to know how many delimiters there are

    for example
    first,last,address,city

    is there a way to know how many , are in the above string

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: in a CSV string is there a way to know how many delimiters there are

    If there are commas nested in " then you can use Ubound(Split()) + 1 on one line to get column count.

    You can also treat the CSV as an ADO datasource with appropriate connection string. http://www.carlprothman.net/Default.aspx?tabid=81 The connected ADO recordset object will have field count property.

  3. #3

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