Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More Lotus Notes e-mail questions.
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00391154
Message ID:
00395804
Views:
40
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



...Kevin,
If you are using the TYPE() function, you also have to check to make sure the variable is not .NULL..

ovar = createobject("whatever")
? type("ovar") && prints O
ovar = .NULL.
? type("ovar") && still prints O
? isnull(ovar) && prints .T.

if type("OSendTO") = "O" and !isnull(oSendTo) then ...
Kevin Emmrich
www.jkt9000.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform