Replace characters within a certain ASCII range from a string
? rangerepl ("0","9","year2002.dbf","?") // "year????.dbf", replace all digits ? rangerepl ("9","0","year2002.dbf","?") // "????2??2????", testing replacement from "9" to chr(255) // and from chr(0) to "0" ? rangerepl ("0","9","yearcurr.dbf","?") // "yearcurr.dbf", test leaving string untouched Tests rangerepl ("0","9","year2002.dbf","?") == "year????.dbf" rangerepl ("9","0","year2002.dbf","?") == "????2??2????" rangerepl ("0","9","yearcurr.dbf","?") == "yearcurr.dbf"