-
May 16th, 2003, 01:45 AM
#1
Member
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
-
May 16th, 2003, 06:36 AM
#2
Use the Mid function:
MyInput = "abcdefg"
extraction = Mid(MyInput, 4, 1)
Extraction now equals 'd'
-
May 16th, 2003, 09:25 PM
#3
Member
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
-
Forum Rules
|
|