All pastes #749918 Raw Edit

Miscellany

public text v1 · immutable
#749918 ·published 2007-10-26 01:24 UTC
rendered paste body
' the goal here is to have a multi-line textbox and add "items" to it by putting each item on a newline, then for each of the "items" we perform an action
' example:
' #chan1
' #chan2
  
' code
           Dim channels As String = txtEggChans.Text

            Dim chans As String

            For Each chans In channels.Split(vbCrLf)
                MsgBox("channel add " + chans, MsgBoxStyle.OkOnly)
            Next


' results
' channel add #chan1
' channel add
' #chan2

' not sure if there is a better way of doing this or not but i am stumped at this point as in theory this code "should" work ?