>select count(*) from (calias) where cTAG=tcKey and deleted() into array laDel >if laDel[1]>0 >*** uncertain how your code best fixed to assumptions >endif >IF !SEEK(tcKey,cALias,cTAG) > INSERT INTO ... >ELSE > REPLACE ... >ENDIF >>
>lcdele = set("DELETED") >set dele off >IF !SEEK(tcKey,cALias,cTAG) > INSERT INTO ... >ELSE > REPLACE ... >ENDIF >if lcdele=="ON" > set dele on >endif >>