M
Mike H.
I've created a script that is called from the Rules Wizard
as "Run My Script" on all incoming messages.
It's my own home-grown rule-processor, called MyRules. It
had originally initialized its rules during run-time,
every time it was invoked. I recently split it in two, so
that the rules would be read in from a file once when
Outlook starts up.
The "Application_Startup" subprogram (in This
OutlookSession) correctly initializes the list of rules.
But when MyRules runs, the rule list is empty. I cannot
figure out why the list is correctly initialized on
startup, but is then empty when MyRules runs.
The Rule List is declared in "Modules|Module1" as a
public, dynamic array. The element type for the Rule List
(A_Rule) is also declared as a public type:
Public Type A_Rule
:
End Type
Public RuleList() As A_Rule
Any help/insight anyone can provide will be appreciated.
Thanks,
Mike
as "Run My Script" on all incoming messages.
It's my own home-grown rule-processor, called MyRules. It
had originally initialized its rules during run-time,
every time it was invoked. I recently split it in two, so
that the rules would be read in from a file once when
Outlook starts up.
The "Application_Startup" subprogram (in This
OutlookSession) correctly initializes the list of rules.
But when MyRules runs, the rule list is empty. I cannot
figure out why the list is correctly initialized on
startup, but is then empty when MyRules runs.
The Rule List is declared in "Modules|Module1" as a
public, dynamic array. The element type for the Rule List
(A_Rule) is also declared as a public type:
Public Type A_Rule
:
End Type
Public RuleList() As A_Rule
Any help/insight anyone can provide will be appreciated.
Thanks,
Mike