Substracting string - Tutorial

Use this board to post your code snippets - tips and tricks
2 posts Page 1 of 1
Contributors
User avatar
Livengood
Serious Programmer
Serious Programmer
Posts: 445
Joined: Tue Feb 16, 2010 6:24 am

Substracting string - Tutorial
Livengood
Well hey guys i am going to show you have to remove all text besides certain text that is in a textbox or in a text area :D, ok well to start it off heres the code.

items you need:
> 1 textbox
> 1 button
Code: Select all
Dim txtstr As String
        Dim nexttext As String
        txtstr = TextBox1.Text
        retString = str.Substring(the starting letter value, number of letters)
        TextBox1.Text = nexttext
example :
hello how are you

the h is at number 6 which is the value, and how many letters are in the word. which is 3. The first letter is 0 :)

and then try that out :D, and there you go now you know how to get rid of text :D

easy right? there you have it :D
- Livengood
* if you have questions post here*
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

wow thats easier than i thought it would be
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
2 posts Page 1 of 1
Return to “Quick Snips”