Results 1 to 3 of 3

Thread: Text

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    3

    Whoops!

    Actually, change this line:

    a = a & Right(Text1.Text,Len(Text1.Text)-x)

    to the following:

    a = Right(Text1.Text,Len(Text1.Text)-x)



    Should work now.

  2. #2
    Megatron
    Guest
    VB Code:
    1. a = InStr(1, Text1, vbCrLf)
    2. a = InStr(a + 2, Text1, vbCrLf)
    3. Text1 = Mid$(Text1, a + 2, Len(Text1))

  3. #3
    Matthew Gates
    Guest
    Here's another way. Bit longer, but it works.


    VB Code:
    1. Private Sub Command1_Click()
    2.  
    3.     Dim vArray As Variant
    4.     Dim iArray As Integer
    5.     Dim sArray As String
    6.    
    7.     vArray = Split(Text1.Text, vbCrLf)
    8.    
    9.     For iArray = 2 To UBound(vArray)
    10.         sArray = sArray & vArray(iArray) & vbCrLf
    11.     Next iArray
    12.  
    13.     Text1.Text = sArray
    14.    
    15. End Sub

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