SCAN WHILE ! EOF() rpl = '' drpl = '' rpl = LXPOS.ACTION+ALLTRIM(LXPOS.START)+ALLTRIM(LXPOS.XDATA)+ALLTRIM(LXPOS.ENDING) drpl = ALLTRIM(LXPOS.XFIELD) REPLACE &drpl WITH rpl ENDSCANThe Start and Ending are just "(" and ")" in my dbf with the action being CTOD.