Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 16:25:30 +0000



Post From: ACSIL: Before Save

[2015-04-06 21:04:40]
QnReally - Posts: 181
I have a few user drawn drawings in a chart managed by my own study. I would like to save those drawings into sc.StorageBlock. I am able to save them upon reload of the chart by checking for (sc.UpdateStartIndex == 0) condition.

However, I would like to save them automatically just prior to SC saving my charts with File -> Save.

I could test for sc.LastCallToFunction to be true but by then the platform is in the process of exiting and if I update the sc.StorageBlock then, it won't get saved subsequently by SC.

The workaround I have is to reload the chart just before saving and exiting the platform.

In your opinion, are there better ways to do this? If not, when I save the chartbook I would like my study to know via ACSIL that the chartbook will be saved when the current call to my study is finished.

Thanks.