Copy Word Contained menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    Thanks><'s Avatar Banned
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy Word Contained

    How would i get the word contains an "@" into a text file. So far in my code for this i have quite a bit of what is needed, atleast from what i understand.

    Here is what i have so far:

    If thetextbox.Text.Contains("@") = True Then

    So any ideas on how i can get the word only that contains an @ and get that pasted somewhere. The paste doesn't have to be specific, i just need the general idea on how to get this done. Help is appreciated and will be awarded.

    Copy Word Contained
  2. #2
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now what did you ask? Read from a file:
    Code:
    		Dim neededletter As String = "@"
            Dim strA As String = ""
            Dim arrA As Array
            Dim strB As String = ""
            Dim youwanttocopythis As String = ""
            Dim file As New System.IO.StreamReader("filename.txt")
            Do Until file.EndOfStream
                strA = file.ReadLine
                arrA = strA.Split(" ")
                For b = 0 To arrA.Length - 1
                    strB = arrA.GetValue(b)
                    If strB.Contains(neededletter) Then
                        TextBox1.Text = TextBox1.Text & strB
                    End If
                Next
            Loop
    file.dispose()
    file.close()
    OR from a RichTextBox:
    Code:
            Dim neededletter As String = "@"
            Dim strA As String = ""
            Dim arrA As Array
            Dim strB As String = ""
            Dim youwanttocopythis As String = ""
            For a = 0 To RichTextBox1.Lines.Length
                strA = RichTextBox1.Lines.GetValue(a)
                arrA = strA.Split(" ")
                For b = 0 To arrA.Length - 1
                    strB = arrA.GetValue(b)
                    If strB.Contains(neededletter) Then
                        TextBox1.Text = TextBox1.Text & strB
                    End If
                Next b
            Next a
    (Both are my work)
    Last edited by visitor; 05-02-2009 at 02:46 AM.
    Hey I just met you

Similar Threads

  1. Funny profanity filter words (contains ALOT on swear words)
    By Marlo in forum World of Warcraft General
    Replies: 23
    Last Post: 08-30-2006, 05:45 PM
  2. Words Chinese farmers use.
    By Coochie in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 08-06-2006, 07:52 PM
  3. Say Words/Phrases to the Opposing Faction
    By Cypher in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 06-08-2006, 05:12 PM
  4. Say words/phrases to opposite factions
    By Matt in forum World of Warcraft Guides
    Replies: 0
    Last Post: 04-20-2006, 09:42 PM
All times are GMT -5. The time now is 10:08 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search