==================================================[ START ]====
  • Visual Basic 2008, Question about Textbox1.TextLength, and Getting specific Text from Textbox1.Text, Can you help...?

    I have the following...
    --------------------------------------...
    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    TCurrentTime0.Enabled = True

    End Sub

    Private Sub TCurrentTime0_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TCurrentTime0.Tick

    CurrentTime0.Text = TimeOfDay
    CurrentTime0.TextLength = (2)

    End Sub
    End Class
    --------------------------------------...

    I need specific text from textbox1, also know in this case as CurrentTime0.Text.

    So how do you retrieve PM from CurrentTime0.text...?

    I want to read spacific locations and write them in a seperate textbox, idk, somthing like...

    CurrentTime0.TextLength(9, 10) = CurrentTimeTT.Text

    Do you understand, I need to figure out how to read and write different places of data from specific locations in a specific textbox and then write it to a seperet textbox assigned for a spacif type of text, all this on one timer...

    The timer part I can figure out, but the LengthOf part is where I'm stumped, Can you please help...?

    Thanx


  • Well, it sounds to me like what you really want is to extract some "pieces" of a string, which is what the datatype of the data in a textbox would be.

    In that case, you will probably want to use some of the more useful VB string functions (mid, left, etc)

    Check this site out :
    http://www.maconstateit.net/tutorials/VB...

    If you look under the "string functions" heading, you will see lots of useful stuff that should help you out.

    Good luck : )







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Visual Basic 2008, Question about Textbox1.TextLength, and Getting specific Text from Textbox1.Text, Help...? , Please add it free.
    ====================================================[ END ]====