FUNCTION ReverseIt > LPARAMETER cText > > LOCAL lcresult, lni, lnlast > lnlast = LEN(cText) > lcresult = "" > FOR lni = 1 TO lnlast > lcresult = SUBSTR(cText, lni, 1) + lcresult > NEXT > RETURN lcresult >ENDFUNCFrom Steve Black's "Text" session at DevConnections, John's would be more efficient. Some VFP optimization on StrVar = StrVar + ...