Forum Discussion
AlexKaras
12 years agoCommunity Hero
Hi Sean,
> Project.Variables.AddVariable("t2350_CourseID","String");
> I know the query returns an integer [...]
> The problem is a mismatch on this line: Project.Variables.t2350_CourseID = localCourseID;
What if you change
Project.Variables.AddVariable("t2350_CourseID","String");
to
Project.Variables.AddVariable("t2350_CourseID","Integer");
?
P.S. BTW, I believe that you checked the value of the localCourseID variable in the debugger, aren't you?
> Project.Variables.AddVariable("t2350_CourseID","String");
> I know the query returns an integer [...]
> The problem is a mismatch on this line: Project.Variables.t2350_CourseID = localCourseID;
What if you change
Project.Variables.AddVariable("t2350_CourseID","String");
to
Project.Variables.AddVariable("t2350_CourseID","Integer");
?
P.S. BTW, I believe that you checked the value of the localCourseID variable in the debugger, aren't you?