Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logical OR Question

Status
Not open for further replies.

IForgot

Programmer
Mar 20, 2002
122
US
I was refered to some VB code that I am attempting to convert to work in my VFP7 application.

set sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
tag = sItem.GetIDsFromNames("{00020386-0000-0000-C000-000000000046}", "From")
tag = tag or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = &quot;Someone <whoever@domain.com>&quot;
sItem.Subject = sItem.Subject 'to trick Outlook into thinking that something has changed
sItem.Save

This code should enable me to force Outlook (via Redemption) to send the email (created in different code) using one of Outlook's non-default Email Accounts.

Most of the code is pretty straight forward, but the line which appears to be a Logical OR remains a mystery to me.

How to get that to work in VFP7?

And, what is a PT_STRING8?

Your advice and suggestions are greatly appreciated.

Thanks,
I_Forgot
 
Try this:

tag = BITOR(tag, 0x1E)

Slighthaze = NULL
craig1442@mchsi.com
&quot;Whom computers would destroy, they must first drive mad.&quot; - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top