?IncrementAlpha("aaaaa") FUNCTION IncrementAlpha LPARAMETERS pcString lnStrLen=LEN(pcString) && get the string length. LOCAL i As Integer FOR i = 1 TO lnStrLen cCharToIncrement=SUBSTR(pcString,lnStrLen-i +1, 1) cCharToIncrement=CHR(ASC(cCharToIncrement) +1) IF cCharToIncrement > "z" cCharToIncrement = "a" STUFF(pcString,lnStrLen-i + 1, 1, cCharToIncrement) ELSE STUFF(pcString,lnStrLen-i + 1, 1, cCharToIncrement) ENDIF ENDFOR RETURN pcString ENDFUNC