lcExpr = EXPR lcExpr = STRTRAN(lcExpr, 'DEVICE=', '*DEVICE*=') lcExpr = STRTRAN(lcExpr, 'DRIVER=', '*DRIVER*=') lcExpr = STRTRAN(lcExpr, 'OUTPUT=', '*OUTPUT*=')By wrapping the keywords with asterisks, the VFP Report Writer doesn't recognize these words and just skips that line in the EXPR field. This way you are only stripping out specific lines and everything else stays as it was defined.