Login Page - Create Account

Support Board


Date/Time: Sat, 14 Jun 2025 20:33:12 +0000



Post From: Reading Persistent variable in other study

[2020-06-16 13:34:38]
ForgivingComputers.com - Posts: 1066
Your code for Study 02 is not correct. Just create another persistent var for this study and then study 03 should work, assuming Study 02 is ID1.

int& NewPersistentVar = sc.GetPersistentInt(1) = 33;

If Study 02 is ID2, then you would need to change that in Study 03:

int g_Counter_Markers_Long = sc.GetPersistentIntFromChartStudy(sc.ChartNumber,2,1) ;

Study 01 has no knowledge of the new value unless you do the same thing and set the value the way study 03 does.