Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 14:28:11 +0000



Post From: Why aren't these functions working?

[2023-08-09 16:23:34]
User1293821 - Posts: 42
1. sc.LastCallToFunction - The function should get called when a chartbook is closed correct? If yes then I am sure sc.RemoveStudyFromChart is not being working because when I close a chartbook (tried save all and not), release all dlls and then re-open the chartbook the study is still applied. Have tried on a different sierra install as well.


2. I updated to pre-release 2534 and still the same issue with both sc.GetChartStudyHideStudy & sc.SetChartStudyHideStudy
SCSFExport scsf_Add_Remove(SCStudyInterfaceRef sc)

{

if (sc.SetDefaults)
{
// Set The Study Defaults
sc.GraphName = "Test Remove";
sc.GraphShortName = "Test Remove";
sc.GraphRegion = 0;
sc.AutoLoop = 1;
sc.FreeDLL = 0;
return;
}

sc.GetChartStudyHideStudy(sc.ChartNumber, 0);

// if (sc.GetStudyIDByIndex(sc.ChartNumber, 2) == 0)
// {
// n_ACSIL::s_AddStudy AddStudy;
// AddStudy.ChartNumber = sc .ChartNumber;
// AddStudy.StudyID = 2;
// AddStudy.ShortName = "New Moving Average";
// sc.AddStudyToChart(AddStudy);
// }

// if (sc.LastCallToFunction)
// {
// // sc.RemoveStudyFromChart(sc.ChartNumber, 2);
// sc.SetChartStudyHideStudy(sc.ChartNumber, 2, 1);
// }
}