USE myrep.frx GO TOP lcCrLf = CHR(13)+CHR(10) lcNewPS = "5" lcPS = STREXTRACT(expr, "PAPERSIZE", lcCrLf,1,1+4) REPLACE Expr WITH STRTRAN(Expr, lcPS, "PAPERSIZE=" + lcNewPS + lcCrLf) USE