Question : replace the last letter in a word

Hi:
if the word end with "l" change it to "r"
for example , the word "level" change it to "lever"
please

Answer : replace the last letter in a word


if right(myWord,1)="l" then myWord=left(myword,len(myword)-1) & "r"
Random Solutions  
 
programming4us programming4us