Results 1 to 3 of 3

Thread: Text handling

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    How do I split up a string into 3 sections i.e. I have a text box ( TextF ) which consists of four numbers then four letters then four numbers. How can I make it so that the first set of numbers is put in one textbox ( Text1 ), and the set of letters is put in another textbox ( Text2 ) and finally the last set of numbers are put in another textbox ( Text3 ).

    This shows the start and result I am after.

    Code:
     
    
    TextF = 9583ABNF3746
    
    '<<<<<<<code I need>>>>>>>>
    
    'this is the result I need...
    Text1 = 9583
    Text2 = ABNF
    Text3 = 3746

    can anyone help??

    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Text1=left(TextF,4)
    Text2=Mid(Textf,5,4)
    Text3 = Right(TextF(4)
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Thanx thats a big help.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

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