Support Board
Date/Time: Mon, 27 Jan 2025 04:43:38 +0000
[Programming Help] - [b]sc.GetStudyIDByName[/b] - Compiler error is not a member of s_sc
View Count: 1014
[2018-08-09 22:23:08] |
Richard Chinn - Posts: 28 |
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 |
[2018-08-09 22:31:15] |
Sierra Chart Engineering - Posts: 104368 |
We will correct the documentation. For now just use this name: sc.Internal_GetStudyIDByName
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-08-19 00:24:13] |
Richard Chinn - Posts: 28 |
Hey Guys! I can't get this function (sc.GetStudyIDByName) to return the study ID. It always returns 0. I've tried it several different ways without any luck. Any chance I may be doing something wrong? I used sc.GetStudyIDByName(1, 1, 1) as a test from within my study but it still returned 0. Thanks Richard |
[2018-08-19 01:06:45] |
Richard Chinn - Posts: 28 |
I meant I used sc.GetStudyIDByName(1, sc.GetStudyName(1), 1)
|
[2018-08-21 00:14:53] |
Sierra Chart Engineering - Posts: 104368 |
This is a new function that was added but had had not yet been tested. We tested it and we discovered a problem. It is now resolved and we will have a new release out today or tomorrow.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2019-02-25 16:30:35] |
JM-JO - Posts: 38 |
Dear Sierra team, Could you complete the description of the GetStudyIDByName function ? sc.GetStudyIDByName() It is working but a description would definitely help. Date Time Of Last Edit: 2019-02-25 17:17:23
|
To post a message in this thread, you need to log in with your Sierra Chart account: