Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Outlook Task Variable

Hello,

I have two custom tasks in Outlook.  From one task, I check the value of a field in another task like this:

if oTask.UserProperties("DrawingStage") = "New" then

This works, but I also want to check a global variable from within the code of another task.  Is this possible?  Something like this:

if oTask.AGlobalVariable = 1 then

Thanks,
Joel
0
Genius123
Asked:
Genius123
1 Solution
 
Neil RussellTechnical Development LeadCommented:
No
A variable is in code, something that executes.  If its truly global and persistant then it should exist at all times your in outlook. The variable does not belong to the task but to the outlook instance.
0
 
Genius123Author Commented:
Thanks, I'll accept this as it cannot be done. Thanks for the explaination too.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now