RE: how to check for rtitem has embeddedObjects but object has no objects Mike Edgewater 13.Jul.07 01:12 PM a Web browser Notes Client 6.0.2 CF2Windows 2000
Oh, I think this may be the problem. You tried:
'If ( rtitem.Type = RICHTEXT ) Or ( rtitem.Type = TEXT ) And docMain.HasEmbedded And Not(Isempty(rtitem.EmbeddedObjects)) Then
But this will always throw an error if Type is not RICHTEXT because it will still try to evaluate rtitem.EmbeddedObjects no matter what. You have to break them out into separate condition statements, like I did in my first response.