CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #5
    Join Date
    Dec 2008
    Location
    Step Into(F11)
    Posts
    465

    Re: getting delimeted value from the list value

    actually i want to adapt the following code in c# .when it will work on vb.net . i would like to prefer to convert in C# . can you tell me
    why i am unable to get all the barcode in textbox2 from mydelimeter collection . let me know please .
    Code:
     Private Sub btshow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btshow.Click
            Dim Mydelimeter As New List(Of String)
            Dim x() As String = Split(TextBox1.Text, vbCrLf)
            For i As Integer = 0 To x.Count - 1
                Mydelimeter.Add("'" + x(i) + "',")
            Next
            For Each DEL In Mydelimeter
                TextBox2.Text = DEL
            Next
    
            'For n As Integer = Mydelimeter.Count - 1 To 0 Step -1
            '    'Console.WriteLine(Mydelimeter(i))
            '    TextBox2.Text = Mydelimeter(n)
            'Next n
        End Sub
    End Class









    issue.jpg
    Attached Images Attached Images
    Last edited by firoz.raj; April 8th, 2013 at 03:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured