Hi Kevin,
GetFirstItem returns an object variable whether it finds a NotesItem with that name or not. The difference being the object is a NULL object (VFP) or Nothing (VB/LotusScript) if it doesn't exist. You have to make the ISNULL() check when using TYPE().
Later.
>Hmmm, Have to think about this. Looking at the old code:
>
> oSendTo = loDoc.GetFirstItem("SendTo")
> IF type("oSendTo") <> "O"
>
>Wouldn't type("oSendTo") = "O" if there was already a recipient and = "U" in all other cases? I guess I need to get my Hacker's Guide out and read about Vartype() and Type().
>
>Kevin
< snipped >
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao