How to make the TWPTextoObj is not deleted from the text?
I'm trying like this:
wl_TextObj := WTexto.FieldLocate('my tag', '', true, [wplocGlobalSearch, wplocDontMoveCursor]);
if wl_TextObj <> nil then
begin
if wl_TextObj.GetContainedObject([wpobjImage]) <> nil then
wl_TextObj.GetContainedObject([wpobjImage]).Mode := [wpobjWithinProtected];
end;
But, doesn't work.
Help me, please.