asp.net arrays and strings?

Discussion in 'Digital Media' started by parkerjr2, Apr 25, 2008.

  1. parkerjr2 Guest

    parkerjr2
    I have comma delimited data stored in 1 column in a database. I need to pull that information into an array and then split out the data into different rows. How do I assign my sql query results to a string, and then how do I split up that string?


    Thanks in advance
  2. 'This is a short interpretation of the code

    Dim dbresults as sqldatareader
    Dim dataString as string

    if dbresults.read
    dataString = dbresults(0).ToString()
    end if

    Dim dataArray() as string
    dataArray=dataString.Split(",")
Loading...

Share This Page