FoxPro Programming
I need to get my email from outlook with visual foxpro. Is there a tool or class that would help me ?
Gravatar is a globally recognized avatar based on your email address. I need to get my email from outlook with visual foxpro. Is there a tool or class that would help me ?
  Denis Chassé
  All
  Nov 18, 2023 @ 02:31am

Hello all,

I know that there is at least a very cool tool that exists to deal with Excel. Is there something similar for Outlook. If not what do you gals and guys use to do it? is there a complete reference available telling me about all the methods and properties?

Regards, Denis

Gravatar is a globally recognized avatar based on your email address. re: I need to get my email from outlook with visual foxpro. Is there a tool or class that would help me ?
  Joe A
  Denis Chassé
  Dec 3, 2023 @ 08:13am

It looks like you may be trying to open Outlook emails under VFP control. Here are some lines that I used to have VFP compose an email. The lines have been lifted and will not comprise a runnable program plus nothing has been tested (except the original program it came from, years ago). But, you can find the object, "Outlook," accessible in VFP9, showing method and property options as you type in the Modify Command or Command window.

for ln = 1 to 100
	lcI = alltrim(str(ln))
	loOutlook = createobject("Outlook.Application")  
	liOutlook&lcI = loOutlook.createitem(0)  
	liOutlook&lcI..To = lcTo
	liOutlook&lcI..Cc = lcCc
	liOutlook&lcI..Subject = "Please read this email"
	liOutlook&lcI..Body = lcBody
	liOutlook&lcI..Attachments.Add(lcFileName)
        ** You'd probably have a record skip here and the 
        ** local variables reassigned
endfor

© 1996-2024