Visual Basic Question
Results 1 to 3 of 3

Thread: Visual Basic Question

  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    63

    Visual Basic Question

    HELP!! hahaha, If your reading this thank you. Here is my question, im writing a decode program in VB. Basically I want the following...
    (example)
    a = 1
    b = 2

    now, originally i was using cases. the output would give me the following....

    a <-- assuming that this is a text box
    1 -----> output of the above

    b<-- assuming that this is a text box
    2 ----->output of the above

    But it will only work with single Letters, I want to be able to out put the following

    ab <--- input
    12 ---- output

    My friend said that i need to be able to read character by character so please how do i do that? or if you have any advice or questions let me know, im stressin out hard. thank you everyone ahead of time.
    Im Chris Bartholomew - 18 Years old

    TSeNg
    questions? Cxbartholomew@yahoo.com

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    472
    Use the Mid function:

    MyInput = "abcdefg"
    extraction = Mid(MyInput, 4, 1)

    Extraction now equals 'd'
    ---
    proactive

  3. #3
    Member
    Join Date
    Nov 2002
    Posts
    63
    Wait, I dont get it, How am i going to set that up? I dont it it to Equal D, i would want it to equal the Number, if i had ABCD, i would want the output to Equal 1234.
    Im Chris Bartholomew - 18 Years old

    TSeNg
    questions? Cxbartholomew@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •