function incrementBase35(tcString as string, tnKeyLength as integer) as string local i as integer, ; lcCaracter as string if varType(tnKeyLength) <> 'N' tnKeyLength = len(tcString) endIf tcString = padl(allTrim(tcString), tnKeyLength, '0') for i = len(tcString) to 1 step -1 lcCaracter = substr(tcString, i, 1) if lcCaracter < 'Z' *-- Change character to the next one. If it is 9, jump to A. tcString = stuff(tcString, i, 1, ; iif(lcCaracter == '9', 'A', chr(asc(lcCaracter) + 1))) exit else *-- If we get to Z, jump to 0 tcString = stuff(tcString, i, 1, '0') endIf endFor return tcString endFunc>I am trying to get the below code to increment only an ALPHA ID field.