Forum Discussion

Leahy's avatar
Leahy
Contributor
6 years ago
Solved

Test if variables are passed to function

I am writing a function but need to ensure all the proper variables have been passed with the call to the function...

 

From the function.....

// Obtains a variable collection
Variables = ProjectSuite.Variables;
Variables1 = Project.Variables;

if (!(Variables.VariableExists(Emp_Num) || Variables.VariableExists(Start_Date) || Variables.VariableExists(End_Date)))
{

 

I have included a copy of the watch list....the varialbes do exist....

 

What am i doing wrong with the "Variable.Exists"  ?????