cwd's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
10 (0.01 per day)
Joined:
23-March 11
Profile Views:
246
Last Active:
User is offline Nov 22 2011 06:24 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   cwd has not set their status

Posts I've Made

  1. In Topic: Find exact match of a word in a textbox if it exists

    Posted 21 Nov 2011

    Thanks guys, I figured it out now here is what I did. I am sure this isn't the best way but it will work great for what I need to do.

    Dim strText = TextBox1.Text
            Dim arrLines = Split(strText, vbCrLf)
            Dim NE As Integer = 0
    
    
            For Each strLine In arrLines
    
                TextBox2.Text = (strLine)
    
                If ComboBox1.Text = strLine = True Then
                    NE = 1
                    Exit For
                End If
    
            Next
    
    
            If NE = 0 Then
                TextBox1.AppendText(TextBox2.Text + vbCrLf)
                ' do something
            Else
                ' do something
            End If
    


    Thanks again for always helping me out.
  2. In Topic: Find exact match of a word in a textbox if it exists

    Posted 21 Nov 2011

    I would like more information on how to loop through a textbox line for line.
  3. In Topic: find the first occurrence of a certain word's position in a textbo

    Posted 15 Nov 2011

    This part is solved, thanks guys.


     Dim sStr As String
            Dim pos As Long
    
            sStr = TextBox1.Text
    
            pos = InStr(1, sStr, "X", vbTextCompare)
    
            TextBox2.Text = (pos)
    
    

    returns the char position.

    I will make a post on my next step :)

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

cwd hasn't added any friends yet.

Comments

cwd has no profile comments yet. Why not say hello?