Click here to Skip to main content
15,921,660 members

Comments by Rey Terativo (Top 1 by date)

Rey Terativo 19-Oct-12 6:03am View    
A few things:
1) Your ListBox array is declared inside a block, it should be a class variable.
2) Strings are immutable, so methods that modify strings return the modified string.
r = r.Replace("| ","|");
3) You don't need to convert the Split parameter into an array of characters. Examples:
columnreader = r.Split('|');
tokens = textline.Split(' ', '-', ';');