Support Board
Date/Time: Wed, 05 Nov 2025 12:08:17 +0000
error after replacing PersisVars
View Count: 785
| [2019-11-28 11:05:43] |
| User275592 - Posts: 97 |
|
Hi, I am trying to compile an old study for the 64-bit version of SierraChart I replaced "PersistVars" by "GetPersistentInt" in the following line of code : "int& MenuID1 = sc.PersistVars->i1;" I get an error : "error C2227: left of '->i1' must point to class/struct/union/generic type" when i compile the new code "int& MenuID1 = sc.GetPersistentInt->i1;" Thank you for your help |
| [2019-11-28 13:27:04] |
| User907968 - Posts: 847 |
|
It is explained here - ACSIL Interface Members - Functions: sc.GetPersistentInt() for example - int& MenuID1 = sc.GetPersistentInt(1);
|
| [2019-11-28 15:07:37] |
| |
|
Yes the code example given in post #2 above is correct.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
| [2019-11-30 13:53:46] |
| User275592 - Posts: 97 |
|
Thank you for your help SierraChart great platform, great support and great community :-)
|
To post a message in this thread, you need to log in with your Sierra Chart account:
