I think he meant you can put them on one line...

by (Login qb432l)
R

CASE "a": letter$ = "z"

'You might also consider something like the following (would save a lot of typing).

source$ = "abcdefg"
coded$ = "cdefghi"

TestCharacter$ = "e"
letter$ = MID$(coded$, INSTR(source$, TestCharacter$), 1)
PRINT letter$

'The fifth character in the source string ("e") corresponds to the fifth character in the coded string ("g").

-Bob



    
This message has been edited by qb432l on Jan 29, 2012 10:27 AM

Posted on Jan 29, 2012, 10:19 AM

Respond to this message   

Return to Index