Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CDO to set message categories..
Message
From
04/05/2001 04:36:19
 
 
To
03/05/2001 13:22:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503148
Message ID:
00503375
Views:
16
Hi!

Try following:

loMessage.categories.Item(1)='new value'
loMessage.Object.categories.Item(1)='new value'
loMessage.categories.Items(1)='new value'


>Hi,
>I have a VFP6 application which talks to Exchange using CDO. It works great except for one thing...
>
>I am trying to programmatically change the 'categories' property of mail messages. I can read the categories but not change them.
>
>Assuming "loMessage" is my message object, "myArray=loMessage.categories" retrieves the categories into array called myArray.
>
>However, "loMessage.categories=myArray" fails.
>
>Something like "loMessage.catgeories(1)='new value'" also fails. There is plenty of sample code for Visual Basic and CDO (as usual), which suggests "loMessage.categories()(1)='new value'". What is the equivalent of these double parentheses in VFP?
>
>Has somebody else tried this?
>
>Thanks
>Phil
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform