PDA

View Full Version : Array to String


DigitalSig
11-09-03, 05:21 AM
I have a TextBox with Array displayed in it (few lines of information).
Now I need to take each separate line of my info from this TextBox and make each separate line as a string, so I can insert it into SQL Database.
How can I do that?

Addict
11-24-03, 02:08 PM
I have a TextBox with Array displayed in it (few lines of information).
Now I need to take each separate line of my info from this TextBox and make each separate line as a string, so I can insert it into SQL Database.
How can I do that?
Why do they need to be seperate lines? Different fields in the DB? You can insert it as one string and it will preserve the breaks.

Hive
03-20-04, 06:20 PM
try "ArrrayText.ToString", where ArrayText is your...array text...lol

It's worked with me for changing IO.Streams into Strings, so it should work with that. Or just do what was said above, i just like to use the ToString function.