Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 16:43:55 +0000



Post From: Referencing to Persistent Variable by name NOT working *URGENT*

[2016-02-23 14:35:10]
User972044 - Posts: 154
You misunderstood what I was trying to say. What I am saying is you need to specify in the documentation for persistent variables that it is ESSENTIAL for autoloop to be set to 0 for 1) initial value of all persistent variables to start off as 0 and 2) persistent value to be incremented to an initial value of an user's choice only ONCE in the if (sc.Index = 0){} block and not over and over and over again. Of course one can still have autoloop be equal to 1 and have persistent variables work properly which is what I am still doing now once I found out everything but like I said for everything that you described in the documentation in persistent variables to work, you need to specify that autoloop needs to be set to 0. This is what confused me and made me have the run-around for several hours for nothing and I am sure this will be equally confusing and cause difficulties for other users who choose to use persistent variables in their codes. This is just my suggestion.

Programming is not easy; I understand that but it shouldn't be because of something that was not documented. From my many posts that described the issues, it's clear that I already went through several hours of analysis and debugging of my codes and nothing worked. I did EVERYTHING according to the documentation, I had set the initial value in "if (sc.Index == ){}" block and I constructed the persistent variables exactly the same way as documented but it was really because the documentation, like I pointed out, failed to specify that autoloop needs to be set to 0 for what I want to do to work, none of what I did worked. So this is WHY I don't consider your answer in Post #6 of telling me to go debug my codes more to be correct answers to my question which was NOT seeking for programming help; I REALLY thought there was something genuinely wrong with Sierra Charts. In the future, I and I think majority of your users would prefer to receive answers like in Post #7 above which was very helpful and finally resolved my issue. We don't mind waiting if it's going to take you some time to arrive at answers like in Post #7 as long as it's not TOO long.

And at the same time if you had specified what you stated in post #7 in the documentation for persistent variables to begin with, you wouldn't even have seen this forum post from me in the first place. Your documentation is detailed and thorough but it is NOT infallible and my suggestion to include the specification that autoloop = 0 in the persistent variable documentation is like I said before, for your future users and customers and in essence for Sierra Charts, NOT for me. I already went through the ordeal and understood everything.

Thank you for your help.
Date Time Of Last Edit: 2016-02-23 15:21:11