Results 1 to 2 of 2

Thread: Combine add [ ] , and vbCrLf

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Combine add [ ] , and vbCrLf

    I want to combine and add it in the textbox.. For information I want to show vbCrLf in the textbox not adding new line. The problem in the findlabel text. I don't manually but the listbox items always changing.. How I can code for FindLabel text?


    Dim n As Long
    TextBox7.Text = ""
    For n = 0 To ListBox2.ListCount - 1
    TextBox7.Text = TextBox7.Text & "[" & ListBox2.List(n) & "]"
    If n <> ListBox2.ListCount - 1 Then TextBox7.Text = TextBox7.Text & ", "
    Next n
    TextBox7.Text = "Function FindLabel ( " & TextBox7.Text & ")" & vbCrLf & _
    "FindLabel = [Code] & vbCrLf & [N] & vbCrLf & [name]" & vbCrLf & _
    "End Function"

    Attached Images Attached Images  

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