Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sequences within VB 1

Status
Not open for further replies.

Adamba

IS-IT--Management
Aug 3, 2001
72
GB
Hiya All,

Ive been playing with code in VB6 and have been using exactly the same code multiple times to accomplish exactly the same time and i feel it is just taking up space in my program. Is there anyway i can manipulate the Alphabet as a variable such as a number?

E.g.

1 + 1 = 2 [Wink]
a + 1 = b ?

at the moment i have a seperate piece of code to deal with each letter of the alphabet [blush]

Thanks in advance
[pc3]
Adam [glasses]
 
Adam,

Try sRes = Chr$(asc(sIn) + iInc)
where sIn is input letter and iInc is the increment integer.

Glyn.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top