How to change the text in the text box to numbers with command button?

5 pts.
Tags:
Visual Basic 6
Visual Basic commands
I wanna change the text to numbers by using command button in Visual basic 6.0.
For eg.when i click the command button the text should convert h to 100 and e to 539 , l to 634 and o to 19.With space after each code.Hello should be converted like this 100 539 634 19
How will i do that please help me somebody.
For more details go to the following link for better 
https://lh4.googleusercontent.com/-eHL_KYWFKns/T6sY_ROLe6I/AAAAAAAAALc/p3NdS3zb7y0/s144/dfs.jpg

Software/Hardware used:
Visual basic6.0

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thank you for visiting ITKE.

We are happy to help you with solving specific IT questions, but need as
much information as possible to do so. Let us know about the problem you
are trying to solve, how you are approaching it and what work you’ve
done so far, and we can help guide you in the right direction.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    We won't do your homework. Sorry. Show us what you have tried so far, and maybe we can give you some pointers.
    69,510 pointsBadges:
    report
  • exheleon90
    well i am having the exact same problem, i used to be very fluent in vb6 but i have been out of practice for a couple of years and need some help. i am essentially trying to make a rudimentary till program i have a number pad, and when you cick a number i want it to show up in the text box, these numbers will not be used in mathamtical function, so i declared them as string in there variables to make it easier code is as follows :Dim dbl1 As Double
    Dim dbl2 As Double
    Dim dbl3 As Double
    Dim dbl4 As Double
    Dim dbl5 As Double
    Dim dbl6 As Double
    Dim dbl7 As Double
    Dim dbl8 As Double
    Dim dbl9 As String
    Dim dbl0 As Double
    Dim dbl00 As Double
    Dim strclear As String








    Private Sub cmd9_Click()
    dbl9 = 9
    End Sub
    *note; im only using number 9 as an example because i realised that declaring their variables as a double would just be a pain in the ass*
    thanks in advance for the help :)
     
    10 pointsBadges:
    report
  • carlosdl
    "thanks in advance for the help"  You have not asked for help.  How can we know what you need help with ?
    69,510 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following