Support Board
Date/Time: Tue, 15 Apr 2025 12:50:25 +0000
Post From: sc.GetStudyIDByIndex / sc.GetStudyIDByName always return 0
[2025-04-11 09:00:29] |
User431178 - Posts: 646 |
int studyNumber = sc.AddStudyToChart(addStudy); int actualStudyNumber = sc.GetStudyIDByIndex(pChartNumber, studyNumber); - sc.AddStudyToChart returns only 0 or 1 when I use it (not that it is important here). - The use of sc.GetStudyIDByIndex is wrong, studyNumber argument should be 1 based index (based on position in study window list) - see docs ACSIL Interface Members - Functions: sc.GetStudyIDByIndex() - The newly added study won't be avaiable until after it is added/calculated, which will be after your study function returns. In other words if you iterate through the indexes, starting at 1, your newly added study will not show up until the next time you call your study function. |