Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 22:52:40 +0000



Post From: ACSIL/Most efficient way to...

[2017-01-06 18:58:42]
Merlin - Posts: 83
I just noticed there is a third way to do this, which might be the best option.
ACSIL allows a study to store and retrieve persistent variables:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt

What I didn't realize until now, is that Sierra also provides functions for one study to access the persistent variables of another study:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetStudyPersistentIntFromChart

This is a better solution than global variables, because it doesn't require sc.FreeDLL=0, which is a pain to work with when debugging.
The code example in the GetStudyPersistent docs should give you everything you need to make this work.
Cheers!