Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 21:54:52 +0000



Feature request: provide/extend functions to get original study name, short name, and S_ID

View Count: 192

[2024-01-30 15:48:17]
User43 - Posts: 101
Currently the following functions only return the study short name when set.

sc.GetStudyName(int StudyIndex)
sc.GetStudyNameFromChart(int ChartNumber, int StudyID)
sc.GetStudyNameUsingID(unsigned int StudyID)
sc.GetStudyInternalIdentifier(int ChartNumber, int StudyID, SCString& r_StudyName)

When the short name is not set they return the original name. So programmatically I don't know what I got.
There is no way to get the study ID (S_ID).

Please provide a way to specifically obtain the
short name [if empty then return an empty string "" or a return value indicating so]
original name
study ID (S_ID)

Thanks
imagepzMEohiUV1.png / V - Attached On 2024-01-30 15:44:54 UTC - Size: 51.21 KB - 46 views
[2024-01-30 16:47:07]
User431178 - Posts: 541
For built in name:
sc.GetBuiltInStudyName(const int InternalStudyIdentifier, SCString& r_StudyName)
which uses the identifier source via sc.GetStudyInternalIdentifier

For short name:
sc.GetChartStudyShortName(int32_t ChartNumber, int32_t StudyID, SCString& r_ShortName)
Date Time Of Last Edit: 2024-01-30 16:48:43
[2024-01-30 17:55:23]
User43 - Posts: 101
Thanks,
Not straight forward but it works.

sc.GetChartStudyShortName
is not even on the acsil functions page.
and
sc.GetBuiltInStudyName
does not describe its parameters or return value

Anyhow, I got it now

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account