I think VEDIT does it like that:
(in pseudo code)
// translate to upper
for(all characters in the block){
if((Cur_Char >= "a") && (Cur_Char <= "z")){
Cur_Char = Cur_Char - 32 // shift within the ASCII code
}
}
// translate to lower
for(all characters in the block){
if((Cur_Char >= "A") && (Cur_Char <= "Z")){
Cur_Char = Cur_Char + 32 // shift within the ASCII code
}
}
All other characters are distributed over the ASCII table without any order.
So it's not so easy to convert... :-(
And codes 128 to 255 are font dependent!
Maybe VEDIT works another way. But I would code it that way.
Christian