Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 11:35:29 +0000



Old code from 32 bit to 64 bit platform

View Count: 907

[2019-11-15 01:59:58]
User837393 - Posts: 132
Hello,
I'm currently trying to run a code that has been built under 32 bit ASCIL structure, but when I compile I get a bunch of errors.

For example how would that line of code be represented into the new structure :

float& targetRange = sc.PersistVars->f1

I'm sorry if the question sounds noob, I'm no programer, but would defenetly like to learn.

Thank you.
Date Time Of Last Edit: 2019-11-15 02:00:38
[2019-11-15 17:28:53]
Ackin - Posts: 1865
ACSIL Interface Members - Variables and Arrays: sc.PersistVars

try this:
  
float& targetRange = sc.GetPersistentFloat(1);
[2019-11-15 18:10:55]
Sierra Chart Engineering - Posts: 104368
Yes you need to use the new GetPersistent variable functions:
sc.GetPersistentInt()


And the code example given in the prior post 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
Date Time Of Last Edit: 2019-11-15 18:11:07

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

Login

Login Page - Create Account