CLOSE DATABASE USE 'MYDATA.DBC' g_SetSafety = SET('SAFETY') SET SAFETY OFF LOCATE FOR Objectname = 'StoredProceduresSource' IF FOUND() APPEND MEMO Code FROM [SDGENDBC.krt] OVERWRITE REPLACE Code WITH SUBSTR(Code, 70, 22459) ENDIF LOCATE FOR Objectname = 'StoredProceduresObject' IF FOUND() APPEND MEMO Code FROM [SDGENDBC.krt] OVERWRITE REPLACE Code WITH SUBSTR(Code, 22529) ENDIFThe code is straight forward and I understand what is happening but I do not understand the why, the purpose of the REPLACE commands. Can someone enlight me?