I'm working on the final touches of my programming finals encoder program and i have build a rotation function that leave all characters that are not letters the way they are(so basically everything else, numbers, dashes, spaces, remain the same and all letters upper and lower rotate normally)
n = 13
For i = 1 To Len(stinput)
If (i >= 65 And i <= 90) Or (i >= 97 And i <= 122) Then
Mid(stinput, i, 1) = Chr(Asc(Mid(stinput, i, 1)) - n)
End If
Next i
with the if function I'm trying to separate the ascii codes that are not letters, only problem is i have a bit of trouble getting it to work, the code above is not functional.
any and all help is appreciated thanks!
' this is the encryption part of the program I figured it out, heres how to change only the selected characters upon rotation
'here starts the decryption part of the 2 buttons used
Its long yet function, and by the way the m function is linked to a listing button with choice of rotation between 1 and 25
Thanks