Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 10:48:47 +0000



Post From: [b]sc.GetStudyIDByName[/b] - Compiler error is not a member of s_sc

[2018-08-09 22:23:08]
Richard Chinn - Posts: 35
I tried to use the function sc.GetStudyIDByName(1, "MyStudy") but the compiler says its not a member of s_sc.

I also tried it as sc.GetStudyIdByName and as sc.scGetStudyIDByName() which I figure is just a typo in the documentation but I tried it anyway. I got the same compiler error message on all three variations.


This is from the documentation:
sc.GetStudyIDByName()
Type: Function
int sc.scGetStudyIDByName(int ChartNumber, const char* Name, const int UseShortNameIfSet);

The sc.scGetStudyIDByName() function returns the study identifier of the study identified by the Name parameter.

Parameters
ChartNumber:
Name:.
UseShortNameIfSet:.

Thanks
Richard