creating array from textbox control

rbharris

Member
Joined
May 26, 2006
Messages
14
Programming Experience
Beginner
IS there a way to create a string array from a variable that contains several lines of text?
 
sure, use the Split() method on the string and assign it to the array, for the Split() arguements you'll probably want to split it by NewLine which is ControlChars.NewLine
 
The Lines property of TextBox is an array of strings containing all the textlines.
 
Back
Top